From 2bf4c2375f79f392d70cca938d6ddf3e9c74d776 Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 14 Jan 2025 11:22:58 +0000 Subject: [PATCH] updated condition object and presetBatch types --- Core/Models/Eft/Bot/GenerateBotsRequestData.cs | 6 +++--- Core/Models/Spt/Config/BotConfig.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Core/Models/Eft/Bot/GenerateBotsRequestData.cs b/Core/Models/Eft/Bot/GenerateBotsRequestData.cs index ab5946a9..b9af521e 100644 --- a/Core/Models/Eft/Bot/GenerateBotsRequestData.cs +++ b/Core/Models/Eft/Bot/GenerateBotsRequestData.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Core.Models.Utils; namespace Core.Models.Eft.Bot; @@ -6,10 +6,10 @@ namespace Core.Models.Eft.Bot; public class GenerateBotsRequestData : IRequestData { [JsonPropertyName("conditions")] - public List? Conditions { get; set; } + public List? Conditions { get; set; } } -public class Condition +public class GenerateCondition { /// /// e.g. assault/pmcBot/bossKilla diff --git a/Core/Models/Spt/Config/BotConfig.cs b/Core/Models/Spt/Config/BotConfig.cs index 5ca80ef9..1ccf7089 100644 --- a/Core/Models/Spt/Config/BotConfig.cs +++ b/Core/Models/Spt/Config/BotConfig.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text.Json.Serialization; using Core.Models.Common; using Core.Models.Eft.Common.Tables; @@ -12,7 +12,7 @@ public class BotConfig : BaseConfig /** How many variants of each bot should be generated on raid start */ [JsonPropertyName("presetBatch")] - public PresetBatch PresetBatch { get; set; } + public Dictionary PresetBatch { get; set; } /** Bot roles that should not have PMC types (pmcBEAR/pmcUSEC) added as enemies to */ [JsonPropertyName("botsToNotAddPMCsAsEnemiesTo")]