diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2021-10-15 19:56:57 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2021-10-15 19:56:57 -0400 |
commit | f5d5b14b14273c7ac13e7ddf62c50e34f691ea2a (patch) | |
tree | 213548ae29fbdb44974614b20eae9ea8864b8a91 | |
parent | 860fdb3b70f5384a081822e42c50f5ac63fb0437 (diff) | |
download | witness-tutorializer-f5d5b14b14273c7ac13e7ddf62c50e34f691ea2a.tar.gz witness-tutorializer-f5d5b14b14273c7ac13e7ddf62c50e34f691ea2a.tar.bz2 witness-tutorializer-f5d5b14b14273c7ac13e7ddf62c50e34f691ea2a.zip |
Treehouse pivots are now laser redirect
-rw-r--r-- | Source/Panels.h | 7 | ||||
-rw-r--r-- | Source/Randomizer.cpp | 8 |
2 files changed, 15 insertions, 0 deletions
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<int> leftForwardRightPanels = { | |||
67 | 0x17E52, // Treehouse Green 4 | 67 | 0x17E52, // Treehouse Green 4 |
68 | }; | 68 | }; |
69 | 69 | ||
70 | std::vector<int> treehousePivots = { | ||
71 | 0x17DD1, // Treehouse Left Orange 9 | ||
72 | 0x17CE3, // Treehouse Right Orange 4 | ||
73 | 0x17DB7, // Treehouse Right Orange 10 | ||
74 | 0x17E52, // Treehouse Green 4 | ||
75 | }; | ||
76 | |||
70 | std::vector<int> utmPerspective = { | 77 | std::vector<int> utmPerspective = { |
71 | 0x288EA, // UTM Perspective 1 | 78 | 0x288EA, // UTM Perspective 1 |
72 | 0x288FC, // UTM Perspective 2 | 79 | 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() { | |||
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 }); |