summary refs log tree commit diff stats
path: root/Source/Randomizer.cpp
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-10-29 18:49:30 -0700
committerjbzdarkid <jbzdarkid@gmail.com>2018-10-29 18:49:30 -0700
commitcaddad668bd8fe0a2b4fbed410787f7134b8d701 (patch)
tree4057d766268b27797610818a98a4030e2d339e8f /Source/Randomizer.cpp
parent0e989fe5111ca879584e1594804422b9b4ae0c1a (diff)
downloadwitness-tutorializer-caddad668bd8fe0a2b4fbed410787f7134b8d701.tar.gz
witness-tutorializer-caddad668bd8fe0a2b4fbed410787f7134b8d701.tar.bz2
witness-tutorializer-caddad668bd8fe0a2b4fbed410787f7134b8d701.zip
Fix mountain elevator, fix back distance
Diffstat (limited to 'Source/Randomizer.cpp')
-rw-r--r--Source/Randomizer.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/Randomizer.cpp b/Source/Randomizer.cpp index 4d99461..508dff1 100644 --- a/Source/Randomizer.cpp +++ b/Source/Randomizer.cpp
@@ -1,20 +1,19 @@
1/* 1/*
2 * BUGS: 2 * BUGS:
3 * Tutorial back left is not protected anymore
4 * Shipwreck vault is solved reversed? 3 * Shipwreck vault is solved reversed?
5 * Verify UTM perspective?
6 * FEATURES: 4 * FEATURES:
7 * Speedrunner mode?
8 * Speed up some of the slow things (like swamp) 5 * Speed up some of the slow things (like swamp)
9 * Determine if the user has entered the seed, and re-randomize it if not 6 * Determine if the user has entered the seed, and re-randomize it if not
10 * Prevent re-randomization (?) 7 * Prevent re-randomization (?)
11 * Clear "Randomized" state on NG (?) 8 * Clear "Randomized" state on NG (?)
12 * Limit back distance to pillars (like before)
13 * Randomize audio logs -- Hard, seem to be unloaded some times? 9 * Randomize audio logs -- Hard, seem to be unloaded some times?
14 * Swap sounds in jungle (along with panels) -- maybe impossible 10 * Swap sounds in jungle (along with panels) -- maybe impossible
15 * Make orange 7 (all of oranges?) hard. Like big = hard. 11 * Make orange 7 (all of oranges?) hard. Like big = hard.
16 * Start the game if it isn't running? 12 * Start the game if it isn't running?
17 * Increase odds of mountain oranges garbage on other panels? [setting] 13 * SETTINGS:
14 * Speeds of certain things
15 * Speedrunner mode
16 * Increase odds of mountain oranges garbage on other panels
18*/ 17*/
19#include "Memory.h" 18#include "Memory.h"
20#include "Randomizer.h" 19#include "Randomizer.h"
@@ -36,7 +35,6 @@ int find(const std::vector<T> &data, T search, size_t startIndex = 0) {
36void Randomizer::Randomize() 35void Randomizer::Randomize()
37{ 36{
38 // Content swaps -- must happen before squarePanels 37 // Content swaps -- must happen before squarePanels
39 _core.Randomize(tallUpDownPanels, SWAP_LINES);
40 _core.Randomize(upDownPanels, SWAP_LINES); 38 _core.Randomize(upDownPanels, SWAP_LINES);
41 _core.Randomize(leftForwardRightPanels, SWAP_LINES); 39 _core.Randomize(leftForwardRightPanels, SWAP_LINES);
42 40
@@ -159,7 +157,7 @@ void Randomizer::RandomizeSwamp() {
159 157
160void Randomizer::RandomizeMountain() { 158void Randomizer::RandomizeMountain() {
161 _core.Randomize(lasers, SWAP_TARGETS); 159 _core.Randomize(lasers, SWAP_TARGETS);
162 _core.Randomize(pillars, SWAP_LINES); 160 _core.Randomize(pillars, SWAP_LINES | SWAP_BACK_DISTANCE);
163 _core.Randomize(mountainMultipanel, SWAP_LINES); 161 _core.Randomize(mountainMultipanel, SWAP_LINES);
164 162
165 // Read the target of keep front laser, and write it to keep back laser. 163 // Read the target of keep front laser, and write it to keep back laser.