mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Implement pedestal ganon goal
This commit is contained in:
6
Rom.py
6
Rom.py
@@ -1,5 +1,5 @@
|
||||
JAP10HASH = '03a63945398191337e896e5771f77173'
|
||||
RANDOMIZERBASEHASH = '81f4d813ffe5041853858b53d536dddc'
|
||||
RANDOMIZERBASEHASH = '31d50ce7f1dd3bc33bdc3b2e90f0104e'
|
||||
|
||||
import io
|
||||
import json
|
||||
@@ -1227,6 +1227,8 @@ def patch_rom(world, rom, player, team, enemized):
|
||||
rom.write_byte(0x18003E, 0x01) # make ganon invincible
|
||||
elif world.goal[player] in ['ganontriforcehunt', 'localganontriforcehunt']:
|
||||
rom.write_byte(0x18003E, 0x05) # make ganon invincible until enough triforce pieces are collected
|
||||
elif world.goal[player] in ['ganonpedestal']:
|
||||
rom.write_byte(0x18003E, 0x06)
|
||||
elif world.goal[player] in ['dungeons']:
|
||||
rom.write_byte(0x18003E, 0x02) # make ganon invincible until all dungeons are beat
|
||||
elif world.goal[player] in ['crystals']:
|
||||
@@ -1915,6 +1917,8 @@ def write_strings(rom, world, player, team):
|
||||
|
||||
if world.goal[player] == 'dungeons':
|
||||
tt['sign_ganon'] = 'You need to complete all the dungeons.'
|
||||
if world.goal[player] == 'ganonpedestal':
|
||||
tt['sign_ganon'] = 'You need to pull the pedestal to defeat Ganon.'
|
||||
elif world.goal[player] == "ganon":
|
||||
if world.crystals_needed_for_ganon[player] == 1:
|
||||
tt['sign_ganon'] = 'You need 1 crystal to beat Ganon and have beaten Agahnim atop Ganons Tower.'
|
||||
|
||||
Reference in New Issue
Block a user