Skip to content

Commit 7605fb4

Browse files
ScorelessPineFlySniper
authored andcommitted
SMZ3: Fixed Ganon sign text on AllDungeonsDefeatMotherBrain goal (ArchipelagoMW#1617)
1 parent a0eef5d commit 7605fb4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

worlds/smz3/TotalSMZ3/Patch.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def Create(self, config: Config):
122122

123123
self.WriteGanonInvicible(config.Goal)
124124
self.WritePreOpenPyramid(config.Goal)
125-
self.WriteCrystalsNeeded(self.myWorld.TowerCrystals, self.myWorld.GanonCrystals)
125+
self.WriteCrystalsNeeded(self.myWorld.TowerCrystals, self.myWorld.GanonCrystals, config.Goal)
126126
self.WriteBossesNeeded(self.myWorld.TourianBossTokens)
127127
self.WriteRngBlock()
128128

@@ -776,12 +776,15 @@ def WriteGanonInvicible(self, goal: Goal):
776776
def WriteBossesNeeded(self, tourianBossTokens):
777777
self.patches.append((Snes(0xF47200), getWordArray(tourianBossTokens)))
778778

779-
def WriteCrystalsNeeded(self, towerCrystals, ganonCrystals):
779+
def WriteCrystalsNeeded(self, towerCrystals, ganonCrystals, goal: Goal):
780780
self.patches.append((Snes(0x30805E), [towerCrystals]))
781781
self.patches.append((Snes(0x30805F), [ganonCrystals]))
782782

783783
self.stringTable.SetTowerRequirementText(f"You need {towerCrystals} crystals to enter Ganon's Tower.")
784-
self.stringTable.SetGanonRequirementText(f"You need {ganonCrystals} crystals to defeat Ganon.")
784+
if (goal == Goal.AllDungeonsDefeatMotherBrain):
785+
self.stringTable.SetGanonRequirementText(f"You need to complete all the dungeons and bosses to defeat Ganon.")
786+
else:
787+
self.stringTable.SetGanonRequirementText(f"You need {ganonCrystals} crystals to defeat Ganon.")
785788

786789
def WriteRngBlock(self):
787790
#/* Repoint RNG Block */

0 commit comments

Comments
 (0)