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/Panels.h | 7 +++++++ Source/Randomizer.cpp | 8 ++++++++ 2 files changed, 15 insertions(+) (limited to 'Source') diff --git a/Source/Panels.h b/Source/Panels.h index f73f730..b8bb248 100644 --- a/Source/Panels.h +++ b/Source/Panels.h @@ -67,6 +67,13 @@ std::vector leftForwardRightPanels = { 0x17E52, // Treehouse Green 4 }; +std::vector treehousePivots = { + 0x17DD1, // Treehouse Left Orange 9 + 0x17CE3, // Treehouse Right Orange 4 + 0x17DB7, // Treehouse Right Orange 10 + 0x17E52, // Treehouse Green 4 +}; + std::vector utmPerspective = { 0x288EA, // UTM Perspective 1 0x288FC, // UTM Perspective 2 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