diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-28 20:51:35 -0700 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-28 20:51:35 -0700 |
commit | 5f99f9e87ef23f342e89bab029cc4fc8c5ad6663 (patch) | |
tree | 992ec1c10f001a365f4fb943a50ca6a5fc436648 /Source/Randomizer.cpp | |
parent | 8b88d76b96cd0c2a4dcd9c777c651b204214c63b (diff) | |
download | witness-tutorializer-5f99f9e87ef23f342e89bab029cc4fc8c5ad6663.tar.gz witness-tutorializer-5f99f9e87ef23f342e89bab029cc4fc8c5ad6663.tar.bz2 witness-tutorializer-5f99f9e87ef23f342e89bab029cc4fc8c5ad6663.zip |
Better UI + tried audio logs
Diffstat (limited to 'Source/Randomizer.cpp')
-rw-r--r-- | Source/Randomizer.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/Randomizer.cpp b/Source/Randomizer.cpp index f7f176a..c4b3a13 100644 --- a/Source/Randomizer.cpp +++ b/Source/Randomizer.cpp | |||
@@ -3,8 +3,7 @@ | |||
3 | * Shipwreck vault is solved reversed? | 3 | * Shipwreck vault is solved reversed? |
4 | * Verify UTM perspective? | 4 | * Verify UTM perspective? |
5 | * FEATURES: | 5 | * FEATURES: |
6 | * Challenge randomization | 6 | * Randomize audio logs -- Hard, seem to be unloaded some times? |
7 | * Randomize audio logs | ||
8 | * Swap sounds in jungle (along with panels) -- maybe impossible | 7 | * Swap sounds in jungle (along with panels) -- maybe impossible |
9 | * Make orange 7 (all of oranges?) hard. Like big = hard. | 8 | * Make orange 7 (all of oranges?) hard. Like big = hard. |
10 | * Start the game if it isn't running? | 9 | * Start the game if it isn't running? |
@@ -51,6 +50,7 @@ void Randomizer::Randomize() | |||
51 | RandomizeSwamp(); | 50 | RandomizeSwamp(); |
52 | RandomizeMountain(); | 51 | RandomizeMountain(); |
53 | // RandomizeChallenge(); | 52 | // RandomizeChallenge(); |
53 | // RandomizeAudioLogs(); | ||
54 | } | 54 | } |
55 | 55 | ||
56 | void Randomizer::RandomizeTutorial() { | 56 | void Randomizer::RandomizeTutorial() { |
@@ -163,7 +163,7 @@ void Randomizer::RandomizeMountain() { | |||
163 | void Randomizer::RandomizeChallenge() { | 163 | void Randomizer::RandomizeChallenge() { |
164 | std::vector<int> randomOrder(challengePanels.size(), 0); | 164 | std::vector<int> randomOrder(challengePanels.size(), 0); |
165 | std::iota(randomOrder.begin(), randomOrder.end(), 0); | 165 | std::iota(randomOrder.begin(), randomOrder.end(), 0); |
166 | _core.RandomizeRange(randomOrder, SWAP_NONE, 1, 11); // Easy maze - Triple 2 | 166 | _core.RandomizeRange(randomOrder, SWAP_NONE, 1, 9); // Easy maze - Triple 2 |
167 | std::vector<int> triple1Target = _core.ReadPanelData<int>(0x00C80, TARGET, 1); | 167 | std::vector<int> triple1Target = _core.ReadPanelData<int>(0x00C80, TARGET, 1); |
168 | _core.WritePanelData<int>(0x00CA1, TARGET, triple1Target); | 168 | _core.WritePanelData<int>(0x00CA1, TARGET, triple1Target); |
169 | _core.WritePanelData<int>(0x00CB9, TARGET, triple1Target); | 169 | _core.WritePanelData<int>(0x00CB9, TARGET, triple1Target); |
@@ -171,4 +171,11 @@ void Randomizer::RandomizeChallenge() { | |||
171 | _core.WritePanelData<int>(0x00C59, TARGET, triple2Target); | 171 | _core.WritePanelData<int>(0x00C59, TARGET, triple2Target); |
172 | _core.WritePanelData<int>(0x00C68, TARGET, triple2Target); | 172 | _core.WritePanelData<int>(0x00C68, TARGET, triple2Target); |
173 | _core.ReassignTargets(challengePanels, randomOrder); | 173 | _core.ReassignTargets(challengePanels, randomOrder); |
174 | } | ||
175 | |||
176 | void Randomizer::RandomizeAudioLogs() { | ||
177 | std::vector<int> randomOrder(audiologs.size(), 0); | ||
178 | std::iota(randomOrder.begin(), randomOrder.end(), 0); | ||
179 | _core.Randomize(randomOrder, SWAP_NONE); | ||
180 | _core.ReassignNames(audiologs, randomOrder); | ||
174 | } \ No newline at end of file | 181 | } \ No newline at end of file |