Fix weapons with fire rate modifiers getting stuck waiting for energy drain #6915
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
Weapons with too high fire rate bonus can get stuck waiting for their energy drain because the fire rate isn't considered in the drain/s of the economy event.
This issue arose in the past with the Salvation. It was fixed previously by increasing the drain in the blueprint, but I found it again in a mod because mods use old blueprints to override everything.
Description of the proposed changes
Increase energy drain/s proportional to fire rate changes.
Testing done on the proposed changes
Spawn a UEF T3 artillery and 9 adjacent T3 pgens (use spawn menu's unit count selection to stack them). It should fire when the work progress bar is full instead of pausing for a few seconds (I assume that's a target check interval).
Checklist