Fix DoOutOfAmmoAction#4181
Conversation
|
You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-17058185106.zip |
|
You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-17169571223.zip |
perkinslr
left a comment
There was a problem hiding this comment.
Line 494 probably should try to resolve the missing ammo via this PR change, and then check again before returning. Might be worth making doOutOfAmmoAction return a bool for if it found more ammo or not. Otherwise just repeat the HasAmmo check.
N7Huntsman
left a comment
There was a problem hiding this comment.
Generally functions as intended.
However, if a colonist picks up ammo off the ground as the result of being manually commanded to reload with none in their inventory (as opposed to reloading while firing at a target), they will pick up the ammo but won't then reload with the ammo they just picked up--and it would be desirable for them to do so.
|
You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-20184730675.zip |
This should be resolved now |
|
You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-20185157926.zip |
Changes
Describe adjustments to existing features made in this merge, e.g.
Reasoning
Why did you choose to implement things this way, e.g.
Alternatives
Describe alternative implementations you have considered, e.g.
Testing
Check tests you have performed: