Closed Xymanek closed 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);
}
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.
We could force-grant the squad size unlocks but that seems a very roundabout way compared to adding a very simple CHL event
https://discordapp.com/channels/578606792448409610/639765230569783320/765569354699112448