about summary refs log tree commit diff stats
path: root/Source/Randomizer.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2021-10-15 19:56:57 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2021-10-15 19:56:57 -0400
commitf5d5b14b14273c7ac13e7ddf62c50e34f691ea2a (patch)
tree213548ae29fbdb44974614b20eae9ea8864b8a91 /Source/Randomizer.cpp
parent860fdb3b70f5384a081822e42c50f5ac63fb0437 (diff)
downloadwitness-tutorializer-f5d5b14b14273c7ac13e7ddf62c50e34f691ea2a.tar.gz
witness-tutorializer-f5d5b14b14273c7ac13e7ddf62c50e34f691ea2a.tar.bz2
witness-tutorializer-f5d5b14b14273c7ac13e7ddf62c50e34f691ea2a.zip
Treehouse pivots are now laser redirect
Diffstat (limited to 'Source/Randomizer.cpp')
-rw-r--r--Source/Randomizer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Randomizer.cpp b/Source/Randomizer.cpp index 6e6fabf..d67f153 100644 --- a/Source/Randomizer.cpp +++ b/Source/Randomizer.cpp
@@ -134,6 +134,14 @@ void Randomizer::Randomize() {
134 for (int panel : squarePanels) { 134 for (int panel : squarePanels) {
135 Tutorialise(panel, 0x00064); 135 Tutorialise(panel, 0x00064);
136 } 136 }
137 // Town Laser Redirect Control
138 for (int panel : treehousePivots) {
139 Tutorialise(panel, 0x09F98);
140
141 // Mark the panel as pivotable.
142 int panelFlags = _memory->ReadEntityData<int>(panel, STYLE_FLAGS, 1)[0];
143 _memory->WriteEntityData<int>(panel, STYLE_FLAGS, { panelFlags | 0x8000 });
144 }
137 145
138 // Disable tutorial cursor speed modifications (not working?) 146 // Disable tutorial cursor speed modifications (not working?)
139 _memory->WriteEntityData<float>(0x00295, CURSOR_SPEED_SCALE, { 1.0 }); 147 _memory->WriteEntityData<float>(0x00295, CURSOR_SPEED_SCALE, { 1.0 });