Complete refactor #8

This commit is contained in:
okvdai
2023-05-14 12:53:04 +02:00
parent 2466febd4e
commit 550c899323
7 changed files with 90 additions and 87 deletions
@@ -175,7 +175,7 @@ void function UpdateStatsForTitan( string titanRef, int loadoutIndex )
int aiKills
foreach ( weaponRef in file.titanStatLoadout[ titanRef ] )
{
totalKills += getFromToneAPI(weaponRef, globalToneAPIKillData)
totalKills += getFromToneAPI(weaponRef, "weaponsLocal", "kills")
pilotKills += GetPlayerStatInt( player, "weapon_kill_stats", "pilots", weaponRef )
titanKills += GetPlayerStatInt( player, "weapon_kill_stats", "titansTotal", weaponRef )
aiKills += GetPlayerStatInt( player, "weapon_kill_stats", "ai", weaponRef )