summary refs log tree commit diff stats
path: root/Source/Randomizer.cpp
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-12-09 12:19:53 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2018-12-09 12:19:53 -0800
commit9552a5df4c9d267b788211a2316e7fd86effa7d7 (patch)
treecd1c65f31ef160bbee070011934efddf22322f93 /Source/Randomizer.cpp
parent4ad724eaae7be3780b5fb891b391bbf4ef26f410 (diff)
downloadwitness-tutorializer-9552a5df4c9d267b788211a2316e7fd86effa7d7.tar.gz
witness-tutorializer-9552a5df4c9d267b788211a2316e7fd86effa7d7.tar.bz2
witness-tutorializer-9552a5df4c9d267b788211a2316e7fd86effa7d7.zip
un-fix what was not actuall broken, make challenge RNG better
Diffstat (limited to 'Source/Randomizer.cpp')
-rw-r--r--Source/Randomizer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Randomizer.cpp b/Source/Randomizer.cpp index 3078b22..baae8c3 100644 --- a/Source/Randomizer.cpp +++ b/Source/Randomizer.cpp
@@ -7,7 +7,6 @@
7 7
8 * Speed up *everything* ? Or maybe we'll just stop using this setting entirely. 8 * Speed up *everything* ? Or maybe we'll just stop using this setting entirely.
9 9
10 * Disable "power off on fail" for challenge
11 * Add setting for "Don't reset the challenge seed on new challenge" 10 * Add setting for "Don't reset the challenge seed on new challenge"
12 * Don't rerandomize anything outside of challenge on re-click 11 * Don't rerandomize anything outside of challenge on re-click
13 * Change re-randomization prevention? 12 * Change re-randomization prevention?
@@ -234,6 +233,9 @@ void Randomizer::RandomizeMountain() {
234 233
235void Randomizer::RandomizeChallenge() { 234void Randomizer::RandomizeChallenge() {
236 ChallengeRandomizer cr(_memory, Random::RandInt(1, 0x7FFFFFFF)); // 0 will trigger an "RNG not initialized" block 235 ChallengeRandomizer cr(_memory, Random::RandInt(1, 0x7FFFFFFF)); // 0 will trigger an "RNG not initialized" block
236 for (int panel : challengePanels) {
237 _memory->WritePanelData<int>(panel, POWER_OFF_ON_FAIL, {0});
238 }
237} 239}
238 240
239void Randomizer::RandomizeAudioLogs() { 241void Randomizer::RandomizeAudioLogs() {