From d382a3137d5ab7c487cc827174e14dd861459572 Mon Sep 17 00:00:00 2001 From: LadyAliceMargatroid Date: Sun, 19 Jan 2025 19:07:18 -0800 Subject: [PATCH] Shoudn't be serializing DungeonFlow --- ScarletMansion/ScarletMansion/Configs/ConfigDungeon.cs | 7 ++++--- .../ScarletMansion/GamePatch/LoadAssetsIntoLevelPatch.cs | 1 - ScarletMansion/ScarletMansion/Plugin.cs | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ScarletMansion/ScarletMansion/Configs/ConfigDungeon.cs b/ScarletMansion/ScarletMansion/Configs/ConfigDungeon.cs index 57d6e67..9ef15e2 100644 --- a/ScarletMansion/ScarletMansion/Configs/ConfigDungeon.cs +++ b/ScarletMansion/ScarletMansion/Configs/ConfigDungeon.cs @@ -7,14 +7,15 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using UnityEngine; namespace ScarletMansion.Configs { public class ConfigDungeon : ConfigManager, IConfigDungeon where T: ConfigDungeon { - public DungeonFlow dungeon; - public DunGenExtender dunGenExtender; - public ExtendedDungeonFlow dungeonExtended; + internal DungeonFlow dungeon; + internal DunGenExtender dunGenExtender; + internal ExtendedDungeonFlow dungeonExtended; public ConfigDungeon(ConfigFile cfg) : base(cfg) { } diff --git a/ScarletMansion/ScarletMansion/GamePatch/LoadAssetsIntoLevelPatch.cs b/ScarletMansion/ScarletMansion/GamePatch/LoadAssetsIntoLevelPatch.cs index c855a0d..affb637 100644 --- a/ScarletMansion/ScarletMansion/GamePatch/LoadAssetsIntoLevelPatch.cs +++ b/ScarletMansion/ScarletMansion/GamePatch/LoadAssetsIntoLevelPatch.cs @@ -65,7 +65,6 @@ namespace ScarletMansion.GamePatch { EnemyManager.AddEnemy(entry); } else { - Plugin.logger.LogError($"{sourceEnemyName}: {enemyConfig.spawnWeightStealPercentage}"); var entryRarity = Mathf.RoundToInt(target.rarity * enemyConfig.spawnWeightStealPercentage); var prevEntry = new SpawnableEnemyWithRarity(); diff --git a/ScarletMansion/ScarletMansion/Plugin.cs b/ScarletMansion/ScarletMansion/Plugin.cs index a74a758..621326b 100644 --- a/ScarletMansion/ScarletMansion/Plugin.cs +++ b/ScarletMansion/ScarletMansion/Plugin.cs @@ -37,7 +37,7 @@ namespace ScarletMansion { public class Plugin : BaseUnityPlugin { public const string modGUID = "dev.ladyalice.scarletmansion"; private const string modName = "Scarlet Devil Mansion"; - private const string modVersion = "2.2.0"; + private const string modVersion = "2.2.2"; public readonly Harmony harmony = new Harmony(modGUID); @@ -62,6 +62,8 @@ namespace ScarletMansion { var foyerFile = new ConfigFile(Path.Combine(Paths.ConfigPath, $"{modGUID}.foyer.cfg"), true); ConfigFoyer = new ConfigDungeonFoyer(foyerFile); + ConfigFoyer.SerializerTest(); + var basementFile = new ConfigFile(Path.Combine(Paths.ConfigPath, $"{modGUID}.basement.cfg"), true); ConfigBasement = new ConfigDungeonBasement(basementFile);