about summary refs log tree commit diff stats
path: root/Source/Randomizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Randomizer.cpp')
-rw-r--r--Source/Randomizer.cpp35
1 files changed, 18 insertions, 17 deletions
diff --git a/Source/Randomizer.cpp b/Source/Randomizer.cpp index 13f381a..1427f4d 100644 --- a/Source/Randomizer.cpp +++ b/Source/Randomizer.cpp
@@ -129,28 +129,28 @@ void Randomizer::Randomize() {
129 // Sig scans will be run during challenge randomization. 129 // Sig scans will be run during challenge randomization.
130 130
131 // Seed challenge first for future-proofing 131 // Seed challenge first for future-proofing
132 RandomizeChallenge(); 132 MEMORY_CATCH(RandomizeChallenge());
133 133
134 // Content swaps -- must happen before squarePanels 134 // Content swaps -- must happen before squarePanels
135 Randomize(upDownPanels, SWAP::LINES | SWAP::COLORS); 135 MEMORY_CATCH(Randomize(upDownPanels, SWAP::LINES | SWAP::COLORS));
136 Randomize(leftForwardRightPanels, SWAP::LINES | SWAP::COLORS); 136 MEMORY_CATCH(Randomize(leftForwardRightPanels, SWAP::LINES | SWAP::COLORS));
137 137
138 Randomize(squarePanels, SWAP::LINES | SWAP::COLORS); 138 MEMORY_CATCH(Randomize(squarePanels, SWAP::LINES | SWAP::COLORS));
139 139
140 // Individual area modifications 140 // Individual area modifications
141 RandomizeTutorial(); 141 MEMORY_CATCH(RandomizeTutorial());
142 RandomizeDesert(); 142 MEMORY_CATCH(RandomizeDesert());
143 RandomizeQuarry(); 143 MEMORY_CATCH(RandomizeQuarry());
144 RandomizeTreehouse(); 144 MEMORY_CATCH(RandomizeTreehouse());
145 RandomizeKeep(); 145 MEMORY_CATCH(RandomizeKeep());
146 RandomizeShadows(); 146 MEMORY_CATCH(RandomizeShadows());
147 RandomizeMonastery(); 147 MEMORY_CATCH(RandomizeMonastery());
148 RandomizeBunker(); 148 MEMORY_CATCH(RandomizeBunker());
149 RandomizeJungle(); 149 MEMORY_CATCH(RandomizeJungle());
150 RandomizeSwamp(); 150 MEMORY_CATCH(RandomizeSwamp());
151 RandomizeMountain(); 151 MEMORY_CATCH(RandomizeMountain());
152 RandomizeTown(); 152 MEMORY_CATCH(RandomizeTown());
153 RandomizeSymmetry(); 153 MEMORY_CATCH(RandomizeSymmetry());
154 // RandomizeAudioLogs(); 154 // RandomizeAudioLogs();
155} 155}
156 156
@@ -210,6 +210,7 @@ void Randomizer::RandomizeQuarry() {
210 210
211void Randomizer::RandomizeTreehouse() { 211void Randomizer::RandomizeTreehouse() {
212 // Ensure that whatever pivot panels we have are flagged as "pivotable" 212 // Ensure that whatever pivot panels we have are flagged as "pivotable"
213 // @Bug: Can return {}, be careful!
213 int panelFlags = _memory->ReadEntityData<int>(0x17DD1, STYLE_FLAGS, 1)[0]; 214 int panelFlags = _memory->ReadEntityData<int>(0x17DD1, STYLE_FLAGS, 1)[0];
214 _memory->WriteEntityData<int>(0x17DD1, STYLE_FLAGS, {panelFlags | 0x8000}); 215 _memory->WriteEntityData<int>(0x17DD1, STYLE_FLAGS, {panelFlags | 0x8000});
215 panelFlags = _memory->ReadEntityData<int>(0x17CE3, STYLE_FLAGS, 1)[0]; 216 panelFlags = _memory->ReadEntityData<int>(0x17CE3, STYLE_FLAGS, 1)[0];