initial commit

* the cut scene for 1 and 0 crystals is wrong, it always shows minimum
of 2 right now
* pretty sure the AGA door check will blow up
This commit is contained in:
sporchia
2018-09-25 22:13:35 -04:00
parent 7a204a0fb4
commit 1a6478aa27
6 changed files with 70 additions and 3 deletions

View File

@@ -46,7 +46,28 @@ CheckGanonVulnerability:
;#$05 = Require 100 Goal Items
LDA.l !GOAL_COUNTER : CMP.b #100 : !BLT .fail ; require 100 goal items
BRA .success
+ : CMP #$06 : BNE +
;#$06 = Require "NumberOfCrystalsRequired" Crystals
JSR CheckEnoughCrystals : BNE .fail
BRA .success
+
.fail : CLC : RTL
.success : SEC : RTL
;--------------------------------------------------------------------------------
;--------------------------------------------------------------------------------
GetRequriedCrystals:
BEQ + : JSL.l BreakTowerSeal_ExecuteSparkles : + ; thing we wrote over
LDA.l NumberOfCrystalsRequired : DEC #2 : TAX
RTL
;--------------------------------------------------------------------------------
CheckEnoughCrystals:
LDA InvincibleGanon : CMP #$06 : BNE .normal
.other
PHX : PHY
LDA $7EF37A : JSL CountBits ; the comparison is against 1 less
PLY : PLX
CMP.l NumberOfCrystalsRequired
RTL
.normal
LDA $7EF37A : AND.b #$7F : CMP.b #$7F ; thing we wrote over
RTL