Shoudn't be serializing DungeonFlow
This commit is contained in:
parent
53240d3569
commit
d382a3137d
@ -7,14 +7,15 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
namespace ScarletMansion.Configs {
|
namespace ScarletMansion.Configs {
|
||||||
|
|
||||||
public class ConfigDungeon<T> : ConfigManager<T>, IConfigDungeon where T: ConfigDungeon<T> {
|
public class ConfigDungeon<T> : ConfigManager<T>, IConfigDungeon where T: ConfigDungeon<T> {
|
||||||
|
|
||||||
public DungeonFlow dungeon;
|
internal DungeonFlow dungeon;
|
||||||
public DunGenExtender dunGenExtender;
|
internal DunGenExtender dunGenExtender;
|
||||||
public ExtendedDungeonFlow dungeonExtended;
|
internal ExtendedDungeonFlow dungeonExtended;
|
||||||
|
|
||||||
public ConfigDungeon(ConfigFile cfg) : base(cfg) { }
|
public ConfigDungeon(ConfigFile cfg) : base(cfg) { }
|
||||||
|
|
||||||
|
@ -65,7 +65,6 @@ namespace ScarletMansion.GamePatch {
|
|||||||
EnemyManager.AddEnemy(entry);
|
EnemyManager.AddEnemy(entry);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Plugin.logger.LogError($"{sourceEnemyName}: {enemyConfig.spawnWeightStealPercentage}");
|
|
||||||
var entryRarity = Mathf.RoundToInt(target.rarity * enemyConfig.spawnWeightStealPercentage);
|
var entryRarity = Mathf.RoundToInt(target.rarity * enemyConfig.spawnWeightStealPercentage);
|
||||||
|
|
||||||
var prevEntry = new SpawnableEnemyWithRarity();
|
var prevEntry = new SpawnableEnemyWithRarity();
|
||||||
|
@ -37,7 +37,7 @@ namespace ScarletMansion {
|
|||||||
public class Plugin : BaseUnityPlugin {
|
public class Plugin : BaseUnityPlugin {
|
||||||
public const string modGUID = "dev.ladyalice.scarletmansion";
|
public const string modGUID = "dev.ladyalice.scarletmansion";
|
||||||
private const string modName = "Scarlet Devil Mansion";
|
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);
|
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);
|
var foyerFile = new ConfigFile(Path.Combine(Paths.ConfigPath, $"{modGUID}.foyer.cfg"), true);
|
||||||
ConfigFoyer = new ConfigDungeonFoyer(foyerFile);
|
ConfigFoyer = new ConfigDungeonFoyer(foyerFile);
|
||||||
|
|
||||||
|
ConfigFoyer.SerializerTest();
|
||||||
|
|
||||||
var basementFile = new ConfigFile(Path.Combine(Paths.ConfigPath, $"{modGUID}.basement.cfg"), true);
|
var basementFile = new ConfigFile(Path.Combine(Paths.ConfigPath, $"{modGUID}.basement.cfg"), true);
|
||||||
ConfigBasement = new ConfigDungeonBasement(basementFile);
|
ConfigBasement = new ConfigDungeonBasement(basementFile);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user