Track MGP

master
Liza 2024-02-22 10:20:21 +01:00
parent 520f7373e6
commit 7e0647913c
Signed by: liza
GPG Key ID: 7199F8D727D55F67
3 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,7 @@ internal sealed class InfluxStatisticsClient : IDisposable
.Tag("type", character.CharacterType.ToString())
.Tag("fc_id", character.FreeCompanyId > 0 ? character.FreeCompanyId.ToString() : null)
.Field("gil", localStats?.Gil ?? currencies.Gil)
.Field("mgp", localStats?.MGP ?? 0)
.Field("ventures", currencies.Ventures)
.Field("ceruleum_tanks", currencies.CeruleumTanks)
.Field("repair_kits", currencies.RepairKits)

View File

@ -15,4 +15,5 @@ public sealed record LocalStats
public string? MsqName { get; set; }
public uint MsqGenre { get; set; }
public int? Gil { get; set; }
public int MGP { get; set; }
}

View File

@ -199,6 +199,7 @@ internal sealed class LocalStatsCalculator : IDisposable
ClassJobLevels = ExtractClassJobLevels(playerState),
StartingTown = playerState->StartTown,
Gil = InventoryManager.Instance()->GetInventoryItemCount(1),
MGP = InventoryManager.Instance()->GetInventoryItemCount(29),
};
if (_msqQuests != null)