diff --git a/MosswartMassacre/CharacterStats.cs b/MosswartMassacre/CharacterStats.cs index 5862dc2..ab4d396 100644 --- a/MosswartMassacre/CharacterStats.cs +++ b/MosswartMassacre/CharacterStats.cs @@ -6,6 +6,8 @@ using Decal.Adapter; using Decal.Adapter.Wrappers; using Newtonsoft.Json; +using Mag.Shared.Constants; + namespace MosswartMassacre { public struct AllegianceInfoRecord @@ -341,6 +343,10 @@ namespace MosswartMassacre } // --- Build payload --- + int effectiveStrength = cf.EffectiveAttribute[CharFilterAttributeType.Strength]; + int carryingCapacityAugs = cf.GetCharProperty((int)IntValueKey.AugmentationIncreasedCarryingCapacity); + int encumbranceCapacity = (150 * effectiveStrength) + (carryingCapacityAugs * 30 * effectiveStrength); + var payload = new { type = "character_stats", @@ -354,6 +360,9 @@ namespace MosswartMassacre unassigned_xp = cf.UnassignedXP, skill_credits = cf.SkillPoints, deaths = cf.Deaths, + burden = cf.Burden, + burden_units = cf.BurdenUnits, + encumbrance_capacity = encumbranceCapacity, luminance_earned = luminanceEarned >= 0 ? (long?)luminanceEarned : null, luminance_total = luminanceTotal >= 0 ? (long?)luminanceTotal : null, current_title = currentTitle >= 0 ? (int?)currentTitle : null, diff --git a/MosswartMassacre/bin/Release/MosswartMassacre.dll b/MosswartMassacre/bin/Release/MosswartMassacre.dll index 5d5f46d..5148b02 100644 Binary files a/MosswartMassacre/bin/Release/MosswartMassacre.dll and b/MosswartMassacre/bin/Release/MosswartMassacre.dll differ