Converted lists to hashsets where appropriate
Removed unnecessary uses of ToList() string to mongoId conversions
This commit is contained in:
@@ -54,7 +54,7 @@ public record GenerateEquipmentProperties
|
||||
/// OPTIONAL - Do not generate mods for tpls in this array
|
||||
/// </summary>
|
||||
[JsonPropertyName("generateModsBlacklist")]
|
||||
public HashSet<string>? GenerateModsBlacklist { get; set; }
|
||||
public HashSet<MongoId>? GenerateModsBlacklist { get; set; }
|
||||
|
||||
[JsonPropertyName("generatingPlayerLevel")]
|
||||
public double? GeneratingPlayerLevel { get; set; }
|
||||
|
||||
@@ -30,7 +30,7 @@ public record ModToSpawnRequest
|
||||
/// Parent slot the item will be a part of
|
||||
/// </summary>
|
||||
[JsonPropertyName("botWeaponSightWhitelist")]
|
||||
public Dictionary<MongoId, List<MongoId>>? BotWeaponSightWhitelist { get; set; }
|
||||
public Dictionary<MongoId, HashSet<MongoId>>? BotWeaponSightWhitelist { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Blacklist to prevent mods from being picked
|
||||
|
||||
Reference in New Issue
Block a user