diff --git a/Influx/Influx/InfluxStatisticsClient.cs b/Influx/Influx/InfluxStatisticsClient.cs index 51c34ac..4fd2228 100644 --- a/Influx/Influx/InfluxStatisticsClient.cs +++ b/Influx/Influx/InfluxStatisticsClient.cs @@ -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) diff --git a/Influx/LocalStatistics/LocalStats.cs b/Influx/LocalStatistics/LocalStats.cs index f10f183..bd1b433 100644 --- a/Influx/LocalStatistics/LocalStats.cs +++ b/Influx/LocalStatistics/LocalStats.cs @@ -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; } } diff --git a/Influx/LocalStatistics/LocalStatsCalculator.cs b/Influx/LocalStatistics/LocalStatsCalculator.cs index fe590d3..44a818c 100644 --- a/Influx/LocalStatistics/LocalStatsCalculator.cs +++ b/Influx/LocalStatistics/LocalStatsCalculator.cs @@ -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)