WOTCStrategyOverhaul / CovertInfiltration

A mod that overhauls the Covert Actions system to bring back the Infiltration mechanic from Long War 2
MIT License
21 stars 8 forks source link

Cost slots and build items shortcut interaction #698

Closed Crazy-eyed1 closed 3 years ago

Crazy-eyed1 commented 3 years ago

If the player allocates supplies to negate a risk the supplies are not immediately spent. So that player is then able to go into engineering, from the build items button, to build items and if they spend supplies after allocating them to negate the risk down to an amount of supplies lower than that which is required for the risk reduction the allocate resources UI button as well as the confirm Covert Action button both get greyed out. Preventing the player from launching the covert action.

https://youtu.be/DuWr6DLnZE0

Xymanek commented 3 years ago

Unafforardble slots are cleared currently only when entering the loadout, not when coming back from the build items shortcut

https://github.com/WOTCStrategyOverhaul/CovertInfiltration/blob/c923cd266f382c55dd099d08bc235671a1bd25a1/CovertInfiltration/Src/CovertInfiltration/Classes/UICovertActionsGeoscape.uc#L1398-L1407

Xymanek commented 3 years ago

See PR for nuances with the fix