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

XCGS_CIReinforcementsManager is rendered useless by living unit cap #722

Closed Xymanek closed 2 years ago

Xymanek commented 2 years ago

https://www.youtube.com/watch?v=hSga-QBOSDU

https://github.com/WOTCStrategyOverhaul/CovertInfiltration/blob/f0462725ebe1ce61fa35a9283c1bc455680de436/CovertInfiltration/Src/CovertInfiltration/Classes/XComGameState_CIReinforcementsManager.uc#L79

https://github.com/X2CommunityCore/X2WOTCCommunityHighlander/blob/55184f103e05056a941fbc3413372d3c39bed32b/X2WOTCCommunityHighlander/Src/XComGame/Classes/XComGameState_AIReinforcementSpawner.uc#L749

https://github.com/X2CommunityCore/X2WOTCCommunityHighlander/blob/55184f103e05056a941fbc3413372d3c39bed32b/X2WOTCCommunityHighlander/Src/XComGame/Classes/XComGameState_AIReinforcementSpawner.uc#L758-L761

https://github.com/X2CommunityCore/X2WOTCCommunityHighlander/blob/55184f103e05056a941fbc3413372d3c39bed32b/X2WOTCCommunityHighlander/Src/XComGame/Classes/XComGameState_AIReinforcementSpawner.uc#L876-L902

[XComGame.XComAISpawnManager]
UnitCap=50

Should set bIgnoreUnitCap = true since the counting code seems to be broken (e.g. considers xcom, cosmetic, ??? units)