Type fixings

This commit is contained in:
CWX
2025-01-14 14:16:15 +00:00
parent 4fb0deab7d
commit b8ef700e28
4 changed files with 19 additions and 2 deletions
+1
View File
@@ -6,6 +6,7 @@ public class MinMax
{
[JsonPropertyName("type")]
public string? Type { get; set; }
[JsonPropertyName("max")]
public double? Max { get; set; }
+1
View File
@@ -11,6 +11,7 @@ public class Item
public string? Template { get; set; }
[JsonPropertyName("parentId")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public string? ParentId { get; set; }
[JsonPropertyName("slotId")]
+3
View File
@@ -131,6 +131,9 @@ public class LocationConfig : BaseConfig
/// </summary>
[JsonPropertyName("reserveRaiderSpawnChanceOverrides")]
public ReserveRaiderSpawnChanceOverrides ReserveRaiderSpawnChanceOverrides { get; set; }
[JsonPropertyName("tplsToStripChildItemsFrom")]
public List<string> TplsToStripChildItemsFrom { get; set; }
/// <summary>
/// Map ids players cannot visit
+14 -2
View File
@@ -76,7 +76,7 @@ public class PmcConfig : BaseConfig
public Dictionary<string, Dictionary<string, Dictionary<string, double>>> PmcType { get; set; }
[JsonPropertyName("maxBackpackLootTotalRub")]
public List<IMinMaxLootValue> MaxBackpackLootTotalRub { get; set; }
public List<MinMaxLootValue> MaxBackpackLootTotalRub { get; set; }
[JsonPropertyName("maxPocketLootTotalRub")]
public double MaxPocketLootTotalRub { get; set; }
@@ -115,6 +115,9 @@ public class PmcConfig : BaseConfig
[JsonPropertyName("addPrefixToSameNamePMCAsPlayerChance")]
public int? AddPrefixToSameNamePMCAsPlayerChance { get; set; }
[JsonPropertyName("lootItemLimitsRub")]
public List<MinMaxLootValue>? LootItemLimitsRub { get; set; }
}
public class HostilitySettings
@@ -164,8 +167,17 @@ public class SlotLootSettings
public List<string> Blacklist { get; set; }
}
public class IMinMaxLootValue : MinMax
public class MinMaxLootValue : MinMax
{
[JsonPropertyName("value")]
public double Value { get; set; }
[JsonPropertyName("backpack")]
public MinMax Backpack { get; set; }
[JsonPropertyName("pocket")]
public MinMax Pocket { get; set; }
[JsonPropertyName("vest")]
public MinMax Vest { get; set; }
}