Triforce Hunt + Kill Ganon goal.

This commit is contained in:
compiling
2020-06-09 22:24:48 +10:00
committed by caitsith2
parent 6b6bce9b78
commit 5a10017747
3 changed files with 4 additions and 3 deletions

View File

@@ -41,6 +41,7 @@ RTL
Elder_Code:
{
LDA GoalItemRequirement : BEQ .despawn
LDA InvincibleGanon : CMP #$05 : BEQ .despawn
LDA TurnInGoalItems : BNE +
.despawn
STZ $0DD0, X ; despawn self

View File

@@ -43,8 +43,8 @@ CheckGanonVulnerability:
LDA $7EF2DB : AND.b #$20 : CMP #$20 : BNE .fail ; require aga2 defeated (pyramid hole open)
BRA .success
+ : CMP #$05 : BNE +
;#$05 = Require 100 Goal Items
LDA.l !GOAL_COUNTER : CMP.b #100 : !BLT .fail ; require 100 goal items
;#$05 = Require Goal Items
LDA.l !GOAL_COUNTER : CMP GoalItemRequirement : !BLT .fail ; require specified number of goal items
BRA .success
+
.fail : CLC : RTL

View File

@@ -152,7 +152,7 @@ db #$00
; #$02 = Require All Dungeons
; #$03 = Require "NumberOfCrystalsRequiredForGanon" Crystals and Aga2
; #$04 = Require "NumberOfCrystalsRequiredForGanon" Crystals
; #$05 = Require 100 Goal Items
; #$05 = Require "GoalItemRequirement" Goal Items
;--------------------------------------------------------------------------------
org $30803F ; PC 0x18003F
HammerableGanon: