added ability to set magic usage in spike cave

* byrna cane
* magic cape
This commit is contained in:
sporchia
2017-08-01 23:58:53 -04:00
parent 5a4afc775e
commit e845e41378
4 changed files with 42 additions and 2 deletions

View File

@@ -14,4 +14,32 @@ CalculateSpikeFloorDamage:
LDA $D055, Y
STA $0373
RTL
;--------------------------------------------------------------------------------
;--------------------------------------------------------------------------------
CalculateByrnaUsage:
LDA $1B : BEQ +
REP #$20 ; set 16-bit accumulator
LDA $A0 ; these are all decimal because i got them that way
CMP.w #279
SEP #$20 ; set 8-bit accumulator
BNE +
PHX : TYX
LDA.l ByrnaCaveCaneOfByrnaUsage, X : STA $00
PLX
+
LDA $7EF36E ; thing we wrote over
RTL
;--------------------------------------------------------------------------------
CalculateCapeUsage:
LDA $1B : BEQ +
REP #$20 ; set 16-bit accumulator
LDA $A0 ; these are all decimal because i got them that way
CMP.w #279
SEP #$20 ; set 8-bit accumulator
BNE +
PHX : TYX
LDA.l ByrnaCaveCapeUsage, X : STA $4C
PLX
+
LDA $7EF36E ; thing we wrote over
RTL
;--------------------------------------------------------------------------------