about summary refs log tree commit diff stats
path: root/Source/Randomizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Randomizer.cpp')
-rw-r--r--Source/Randomizer.cpp13
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
56void Randomizer::RandomizeTutorial() { 56void Randomizer::RandomizeTutorial() {
@@ -163,7 +163,7 @@ void Randomizer::RandomizeMountain() {
163void Randomizer::RandomizeChallenge() { 163void 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
176void 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