Shoudn't be serializing DungeonFlow

This commit is contained in:
LadyAliceMargatroid 2025-01-19 19:07:18 -08:00
parent 53240d3569
commit d382a3137d
3 changed files with 7 additions and 5 deletions

View File

@ -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<T> : ConfigManager<T>, IConfigDungeon where T: ConfigDungeon<T> {
public DungeonFlow dungeon;
public DunGenExtender dunGenExtender;
public ExtendedDungeonFlow dungeonExtended;
internal DungeonFlow dungeon;
internal DunGenExtender dunGenExtender;
internal ExtendedDungeonFlow dungeonExtended;
public ConfigDungeon(ConfigFile cfg) : base(cfg) { }

View File

@ -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();

View File

@ -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);