From f5d5b14b14273c7ac13e7ddf62c50e34f691ea2a Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 15 Oct 2021 19:56:57 -0400 Subject: Treehouse pivots are now laser redirect --- Source/Randomizer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/Randomizer.cpp') 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() { for (int panel : squarePanels) { Tutorialise(panel, 0x00064); } + // Town Laser Redirect Control + for (int panel : treehousePivots) { + Tutorialise(panel, 0x09F98); + + // Mark the panel as pivotable. + int panelFlags = _memory->ReadEntityData(panel, STYLE_FLAGS, 1)[0]; + _memory->WriteEntityData(panel, STYLE_FLAGS, { panelFlags | 0x8000 }); + } // Disable tutorial cursor speed modifications (not working?) _memory->WriteEntityData(0x00295, CURSOR_SPEED_SCALE, { 1.0 }); -- cgit 1.4.1