Type fixings
This commit is contained in:
@@ -6,6 +6,7 @@ public class MinMax
|
||||
{
|
||||
[JsonPropertyName("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonPropertyName("max")]
|
||||
public double? Max { get; set; }
|
||||
|
||||
|
||||
@@ -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")]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user