-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide disabled ammo from research #3604
base: Development
Are you sure you want to change the base?
Conversation
You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-12447513714.zip |
You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-12448948333.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as intended: mortar research only shows 81mm shells when only the 81mm mortar is available, and advanced munitions hides ammo that isn't used by any gun.
{ | ||
pair.second.RemoveWhere(x => x is AmmoDef ammoDef && ammoDef.menuHidden); | ||
} | ||
input.RemoveWhere(x => x.second.NullOrEmpty()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's exactly the point of removing empty research unlock headers? So that if research ends up unlocking nothing, that it wouldn't have the text "Unlock:" with nothing after?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additions
Reasoning
Alternatives
Testing
Check tests you have performed: