diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2021-08-21 23:29:29 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2021-08-21 23:29:29 -0400 |
| commit | b4328af638852e57ff2d75836266d887700bee1e (patch) | |
| tree | 32c0e6b596a86da89659645964ac6c674bb938c4 /Source/Randomizer.cpp | |
| parent | 1591ee64b865c0f432ec3a178cfec80dfbae1e86 (diff) | |
| download | witness-tutorializer-b4328af638852e57ff2d75836266d887700bee1e.tar.gz witness-tutorializer-b4328af638852e57ff2d75836266d887700bee1e.tar.bz2 witness-tutorializer-b4328af638852e57ff2d75836266d887700bee1e.zip | |
Backported some of sigma's stuff
Diffstat (limited to 'Source/Randomizer.cpp')
| -rw-r--r-- | Source/Randomizer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
| diff --git a/Source/Randomizer.cpp b/Source/Randomizer.cpp index 5239cd6..8ded06e 100644 --- a/Source/Randomizer.cpp +++ b/Source/Randomizer.cpp | |||
| @@ -116,14 +116,16 @@ void Randomizer::Randomize() { | |||
| 116 | 116 | ||
| 117 | // begin_endgame_1 - Prevent actually ending the game (Wonkavator) | 117 | // begin_endgame_1 - Prevent actually ending the game (Wonkavator) |
| 118 | _memory->AddSigScan({0x83, 0x7C, 0x01, 0xD0, 0x04}, [&](int index){ | 118 | _memory->AddSigScan({0x83, 0x7C, 0x01, 0xD0, 0x04}, [&](int index){ |
| 119 | if (GLOBALS == 0x5B28C0) { // Version differences. | 119 | if (Memory::GLOBALS == 0x5B28C0) { // Version differences. |
| 120 | index += 0x75; | 120 | index += 0x75; |
| 121 | } else if (GLOBALS == 0x62D0A0) { | 121 | } else if (Memory::GLOBALS == 0x62D0A0) { |
| 122 | index += 0x86; | 122 | index += 0x86; |
| 123 | } | 123 | } |
| 124 | _memory->WriteData<byte>({index}, {0xEB}); // jz -> jmp | 124 | _memory->WriteData<byte>({index}, {0xEB}); // jz -> jmp |
| 125 | }); | 125 | }); |
| 126 | 126 | ||
| 127 | //Tutorialise(0x33AF5, 0x0A3B2); | ||
| 128 | |||
| 127 | // Tutorial Bend | 129 | // Tutorial Bend |
| 128 | for (int panel : utmPerspective) { | 130 | for (int panel : utmPerspective) { |
| 129 | Tutorialise(panel, 0x00182); | 131 | Tutorialise(panel, 0x00182); |
