Config refactor to split dungeon generation and the mod's universal features.
This commit is contained in:
parent
d690b69a26
commit
83d0d8a737
44 changed files with 2001 additions and 1664 deletions
|
|
@ -11,7 +11,7 @@ namespace ScarletMansion.GamePatch.FixValues {
|
|||
|
||||
public void Awake(){
|
||||
var weight = target.Props.Weights[1];
|
||||
var value = PluginConfig.Instance.ceilingLightsWeightValue;
|
||||
var value = Plugin.GetConfigDungeon.GetCeilingLightsWeight;
|
||||
weight.MainPathWeight = value;
|
||||
weight.BranchPathWeight = value;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using System.Text;
|
|||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using ScarletMansion.GamePatch.Components;
|
||||
using ScarletMansion.Configs;
|
||||
|
||||
namespace ScarletMansion.GamePatch.FixValues {
|
||||
public class FixFireExit : FixBaseClass<SpawnSyncedObject> {
|
||||
|
|
@ -26,7 +27,7 @@ namespace ScarletMansion.GamePatch.FixValues {
|
|||
public GameObject vanillaCube001GameObject;
|
||||
public GameObject vanillaCube002GameObject;
|
||||
|
||||
public bool EnableVanillaFireExit => !PluginConfig.Instance.useSDMFireExitsValue && vanillaSetup;
|
||||
public bool EnableVanillaFireExit => !ConfigMain.Instance.useSDMFireExitsValue && vanillaSetup;
|
||||
|
||||
public void Awake(){
|
||||
if (EnableVanillaFireExit){
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace ScarletMansion.GamePatch.FixValues {
|
|||
|
||||
public void Awake(){
|
||||
var weight = target.Props.Weights[1];
|
||||
var value = PluginConfig.Instance.hallwayLightsWeightValue;
|
||||
var value = Plugin.GetConfigDungeon.GetHallwayLightsWeight;
|
||||
weight.MainPathWeight = value;
|
||||
weight.BranchPathWeight = value;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ namespace ScarletMansion.GamePatch.FixValues
|
|||
{
|
||||
public class FixTreasureRoom : FixBaseClass<LocalPropSetBasic> {
|
||||
public void Awake(){
|
||||
var loot = PluginConfig.Instance.treasureRoomLootValue;
|
||||
var loot = Plugin.GetConfigDungeon.GetTreasureRoomLoot;
|
||||
target.propCount = new IntRange(loot.min, loot.max);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue