From e0b26ef6255a20cba69e31114789d3f954d6ad02 Mon Sep 17 00:00:00 2001 From: silent-destroyer Date: Tue, 5 Sep 2023 19:58:32 -0400 Subject: [PATCH] Updated quick settings --- src/Data/RandomizerSettings.cs | 4 ++-- src/Patches/QuickSettings.cs | 9 ++++++--- src/TunicArchipelago.cs | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Data/RandomizerSettings.cs b/src/Data/RandomizerSettings.cs index 044e05f..2e851b1 100644 --- a/src/Data/RandomizerSettings.cs +++ b/src/Data/RandomizerSettings.cs @@ -140,8 +140,8 @@ public RandomizerSettings() { FoolTrapIntensity = FoolTrapOption.NORMAL; EnemyRandomizerEnabled = false; - EnemyDifficulty = EnemyRandomizationType.RANDOM; - EnemyGeneration = EnemyGenerationType.RANDOM; + EnemyDifficulty = EnemyRandomizationType.BALANCED; + EnemyGeneration = EnemyGenerationType.SEEDED; ExtraEnemiesEnabled = false; RandomFoxColorsEnabled = true; diff --git a/src/Patches/QuickSettings.cs b/src/Patches/QuickSettings.cs index 095126c..57af012 100644 --- a/src/Patches/QuickSettings.cs +++ b/src/Patches/QuickSettings.cs @@ -63,13 +63,16 @@ private static void QuickSettingsWindow(int windowID) { GUI.Toggle(new Rect(240f, 180f, 210f, 30f), slotData["sword_progression"].ToString() == "1", "Sword Progression"); GUI.Toggle(new Rect(10f, 220f, 175f, 30f), slotData["start_with_sword"].ToString() == "1", "Start With Sword"); GUI.Toggle(new Rect(240f, 220f, 175f, 30f), slotData["ability_shuffling"].ToString() == "1", "Shuffle Abilities"); + GUI.Toggle(new Rect(10, 260f, 175f, 30f), slotData["hexagon_quest"].ToString() == "1", "Hexagon Quest"); } - GUI.Label(new Rect(10f, 260f, 200f, 30f), $"Other Settings"); - bool DeathLink = GUI.Toggle(new Rect(10f, 300f, 125f, 30f), TunicArchipelago.Settings.DeathLinkEnabled, "Death Link"); + GUI.Label(new Rect(10f, 300f, 200f, 30f), $"Other Settings"); + bool DeathLink = GUI.Toggle(new Rect(10f, 340f, 115f, 30f), TunicArchipelago.Settings.DeathLinkEnabled, "Death Link"); TunicArchipelago.Settings.DeathLinkEnabled = DeathLink; + bool EnemyRandomizer = GUI.Toggle(new Rect(150f, 340f, 180f, 30f), TunicArchipelago.Settings.EnemyRandomizerEnabled, "Enemy Randomizer"); + TunicArchipelago.Settings.EnemyRandomizerEnabled = EnemyRandomizer; GUI.skin.label.fontSize = 20; - GUI.Label(new Rect(10f, 340f, 500f, 30f), $"More settings in options menu!"); + GUI.Label(new Rect(10f, 370f, 500f, 30f), $"More settings in options menu!"); } } diff --git a/src/TunicArchipelago.cs b/src/TunicArchipelago.cs index a538502..2912ed4 100644 --- a/src/TunicArchipelago.cs +++ b/src/TunicArchipelago.cs @@ -57,7 +57,7 @@ public override void Load() { }); if (!File.Exists(SettingsPath)) { Settings = new RandomizerSettings(); - File.WriteAllText(SettingsPath, JsonConvert.SerializeObject(Settings)); + File.WriteAllText(SettingsPath, JsonConvert.SerializeObject(Settings, Formatting.Indented)); } else { Settings = JsonConvert.DeserializeObject(File.ReadAllText(SettingsPath)); Log.LogInfo("Loaded settings from file: " + JsonConvert.DeserializeObject(File.ReadAllText(SettingsPath)));