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

Add framework to edit existing infil templates and allow non-Firaxis DLC to be detected #676

Closed cannonfodder1 closed 3 years ago

cannonfodder1 commented 3 years ago

Closes #672 Closes #673

cannonfodder1 commented 3 years ago

Why not just update class'X2Helper_Infiltration'.static.IsDLCLoaded?

Because there was only one use of that function that required both DLCs and mods to be detected. And the method to detect both involves an extremely long for-loop. But now that I'm looking at it, I realize that concern was silly because the place where this method is required is run a heck of a lot more than any other use of that function. I'll change it