Added new property to profiles

This commit is contained in:
Chomp
2025-08-23 14:34:53 +01:00
parent e219e01b9f
commit 1df80171eb
5 changed files with 8 additions and 1 deletions
@@ -91,5 +91,6 @@
"InsuredItems": [],
"Hideout": null,
"Bonuses": [],
"WishList": []
"WishList": [],
"Variables": {}
}
@@ -122,6 +122,7 @@ public class PlayerScavGenerator(
scavData.Notes = existingScavDataClone.Notes ?? new Notes { DataNotes = [] };
scavData.WishList = existingScavDataClone.WishList ?? new();
scavData.Encyclopedia = pmcDataClone.Encyclopedia ?? new();
scavData.Variables = existingScavDataClone.Variables ?? new();
// Player scavs don't have a secure
scavData = profileHelper.RemoveSecureContainer(scavData);
@@ -103,6 +103,8 @@ public record BotBase
[JsonConverter(typeof(ArrayToObjectFactoryConverter))]
public Dictionary<MongoId, int>? WishList { get; set; }
public Dictionary<MongoId, int>? Variables { get; set; }
[JsonPropertyName("moneyTransferLimitData")]
public MoneyTransferLimits MoneyTransferLimitData { get; set; }
@@ -68,6 +68,7 @@ public class CreateProfileService(
pmcData.Achievements = [];
pmcData.WishList = new();
pmcData.Variables = new();
// Process handling if the account has been forced to wipe
// BSG keeps both the achievements, prestige level and the total in-game time in a wipe
@@ -750,6 +750,8 @@ public class LocationLifecycleService(
serverPmcProfile.WishList = postRaidProfile.WishList;
serverPmcProfile.Variables = postRaidProfile.Variables;
serverPmcProfile.Info.Experience = postRaidProfile.Info.Experience;
ApplyTraderStandingAdjustments(serverPmcProfile.TradersInfo, postRaidProfile.TradersInfo);