From 7e0647913caf7690cc3de8fcc057fb8e36ae87e4 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Thu, 22 Feb 2024 10:20:21 +0100 Subject: [PATCH] Track MGP --- Influx/Influx/InfluxStatisticsClient.cs | 1 + Influx/LocalStatistics/LocalStats.cs | 1 + Influx/LocalStatistics/LocalStatsCalculator.cs | 1 + 3 files changed, 3 insertions(+) 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)