Added new property to profiles
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user