Skip to content

Commit

Permalink
Update Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut
Browse files Browse the repository at this point in the history
Co-authored-by: Jack <[email protected]>
  • Loading branch information
Zanieon and ASpoonPlaysGames authored Oct 22, 2023
1 parent 25bbb37 commit 4794718
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1534,17 +1534,16 @@ array<string> function GetAvailableTitanRefs( entity player )

void function RecalculateHighestTitanFDLevel( entity player )
{
//Refresh Highest Aegis Titan since we might get all of them back to 1 if players wants
int enumCount = PersistenceGetEnumCount( "titanClasses" )
int HighestAegis = 0
int highestAegis = 0
for ( int i = 0; i < enumCount; i++ )
{
string enumName = PersistenceGetEnumItemNameForIndex( "titanClasses", i )
int AegisLevel = FD_TitanGetLevelForXP( enumName, FD_TitanGetXP( player, enumName ) )
if ( HighestAegis < AegisLevel )
int aegisLevel = FD_TitanGetLevelForXP( enumName, FD_TitanGetXP( player, enumName ) )
if ( highestAegis < aegisLevel )
HighestAegis = AegisLevel
}
player.SetPersistentVar( "fdStats.highestTitanFDLevel", HighestAegis )
player.SetPersistentVar( "fdStats.highestTitanFDLevel", highestAegis )
}

#if MP
Expand Down

0 comments on commit 4794718

Please sign in to comment.