mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-09 04:58:03 -05:00
parent
4ee0ddaa15
commit
d03e876289
@ -2507,10 +2507,10 @@ namespace Settings {
|
||||
// RANDTODO: Switch this back once all logic options are implemented
|
||||
// Logic.SetSelectedIndex(cvarSettings[RSK_LOGIC_RULES]);
|
||||
switch (cvarSettings[RSK_LOGIC_RULES]) {
|
||||
case 0:
|
||||
case RO_LOGIC_GLITCHLESS:
|
||||
Logic.SetSelectedIndex(0);
|
||||
break;
|
||||
case 1:
|
||||
case RO_LOGIC_NO_LOGIC:
|
||||
Logic.SetSelectedIndex(2);
|
||||
break;
|
||||
}
|
||||
|
@ -2560,7 +2560,7 @@ void GenerateRandomizerImgui() {
|
||||
CVar_Save();
|
||||
|
||||
std::unordered_map<RandomizerSettingKey, u8> cvarSettings;
|
||||
cvarSettings[RSK_LOGIC_RULES] = CVar_GetS32("gRandomizeLogicRules", 0);
|
||||
cvarSettings[RSK_LOGIC_RULES] = CVar_GetS32("gRandomizeLogicRules", RO_LOGIC_GLITCHLESS);
|
||||
cvarSettings[RSK_FOREST] = CVar_GetS32("gRandomizeForest", RO_FOREST_CLOSED);
|
||||
cvarSettings[RSK_KAK_GATE] = CVar_GetS32("gRandomizeKakarikoGate", RO_KAK_GATE_CLOSED);
|
||||
cvarSettings[RSK_DOOR_OF_TIME] = CVar_GetS32("gRandomizeDoorOfTime", RO_DOOROFTIME_CLOSED);
|
||||
@ -2890,7 +2890,7 @@ void DrawRandoEditor(bool& open) {
|
||||
//Starting Age
|
||||
//Disabled when Forest is set to Closed or under very specific conditions
|
||||
//RANDOTODO: Replace magic number checks with enums
|
||||
bool disableRandoStartingAge = (CVar_GetS32("gRandomizeLogicRules", 0) == 0) && // glitchless logic
|
||||
bool disableRandoStartingAge = (CVar_GetS32("gRandomizeLogicRules", RO_LOGIC_GLITCHLESS) == RO_LOGIC_GLITCHLESS) &&
|
||||
((CVar_GetS32("gRandomizeForest", RO_FOREST_CLOSED) == RO_FOREST_CLOSED) ||
|
||||
((CVar_GetS32("gRandomizeDoorOfTime", RO_DOOROFTIME_CLOSED) == RO_DOOROFTIME_CLOSED) &&
|
||||
(CVar_GetS32("gRandomizeShuffleOcarinas", 0) == 0))); // ocarinas not shuffled
|
||||
|
Loading…
Reference in New Issue
Block a user