From 47947188225fec97281b6ff36f824c0b13f3e553 Mon Sep 17 00:00:00 2001 From: William Miller Date: Sun, 22 Oct 2023 00:12:59 -0300 Subject: [PATCH] Update Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> --- .../mod/scripts/vscripts/sh_utility_all.gnut | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut b/Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut index 1acfe2e10..2332422c2 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut @@ -1534,17 +1534,16 @@ array 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