Config refactor to split dungeon generation and the mod's universal features.

This commit is contained in:
LadyAliceMargatroid 2025-01-11 01:49:35 -08:00
parent d690b69a26
commit 83d0d8a737
44 changed files with 2001 additions and 1664 deletions

View file

@ -73,7 +73,7 @@ namespace ScarletMansion.GamePatch.Managers {
}
public void OnDungeonComplete(Dungeon dungeon) {
Anger(PluginConfig.Instance.minIndoorEnemySpawnCountValue);
Anger(Plugin.GetConfigDungeon.GetMinIndoorEnemySpawnCount);
}
public void TriggerAngerLightBrief(float duration){

View file

@ -12,6 +12,7 @@ using ScarletMansion.GamePatch;
using ScarletMansion.GamePatch.Components;
using static LethalLevelLoader.ExtendedEvent;
using ScarletMansion.GamePatch.Managers;
using ScarletMansion.Configs;
namespace ScarletMansion {
@ -266,7 +267,7 @@ namespace ScarletMansion {
public void RequestEvilSkinApply(NetworkObjectReference reference, string enemyName) {
if (PluginConfig.Instance.paintingEnemyEvilSkinValue && ScarletBedroom.ENEMY_EVIL_LIST.Contains(enemyName)) {
if (ConfigMain.Instance.paintingEnemyEvilSkinValue && ScarletBedroom.ENEMY_EVIL_LIST.Contains(enemyName)) {
RequestEvilSkinApplyClientRpc(reference);
}
}