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

Infil size upgrades do not prevent "no squad upgrades" achivement #586

Closed Xymanek closed 3 years ago

Xymanek commented 3 years ago

winning with CI gives you the achievement for never buying squad size upgrades

https://discordapp.com/channels/578606792448409610/639765230569783320/765569354699112448

Xymanek commented 3 years ago

Requires CHL hook in X2AchievementTracker:

static function FinalMissionOnSuccess()
{

// ...

    if (!class'X2StrategyGameRulesetDataStructures'.static.HasSquadSizeUpgrade()) // Beat the game on Classic+ difficulty without buying a Squad Size upgrade
    {
        `ONLINEEVENTMGR.UnlockAchievement(AT_WinGameClassicWithoutBuyingUpgrade);
    }
cannonfodder1 commented 3 years ago

I wonder, could we change something once the player enters the final mission to make HasSquadSizeUpgrade() in X2StrategyGameRulesetDataStructures return true? That would preclude the need for a highlander hook.

Xymanek commented 3 years ago

We could force-grant the squad size unlocks but that seems a very roundabout way compared to adding a very simple CHL event