added ability to set magic usage in spike cave
* byrna cane * magic cape
This commit is contained in:
@@ -26,7 +26,7 @@ org $3FFFFF ; <- 1FFFFF
|
|||||||
db #$00 ; expand file to 2mb
|
db #$00 ; expand file to 2mb
|
||||||
|
|
||||||
org $1FFFF8 ; timestamp rom
|
org $1FFFF8 ; timestamp rom
|
||||||
dl #$20170731
|
dl #$20170801
|
||||||
|
|
||||||
;================================================================================
|
;================================================================================
|
||||||
|
|
||||||
|
|||||||
30
hardmode.asm
30
hardmode.asm
@@ -14,4 +14,32 @@ CalculateSpikeFloorDamage:
|
|||||||
LDA $D055, Y
|
LDA $D055, Y
|
||||||
STA $0373
|
STA $0373
|
||||||
RTL
|
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
|
||||||
|
;--------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -202,6 +202,12 @@ NOP #2
|
|||||||
org $07D22B ; <- 3D22B - Bank05.asm : 12752 (LDA $D055, Y : STA $0373)
|
org $07D22B ; <- 3D22B - Bank05.asm : 12752 (LDA $D055, Y : STA $0373)
|
||||||
JSL.l CalculateSpikeFloorDamage : NOP #2
|
JSL.l CalculateSpikeFloorDamage : NOP #2
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
|
org $08DCC3 ; <- 45CC3 - ancilla_cane_spark.asm : 272 (LDA $7EF36E)
|
||||||
|
JSL.l CalculateByrnaUsage
|
||||||
|
;--------------------------------------------------------------------------------
|
||||||
|
org $07AE17 ; <- 3AE17 - Bank07.asm : 7285 (LDA $7EF36E)
|
||||||
|
JSL.l CalculateCapeUsage
|
||||||
|
;--------------------------------------------------------------------------------
|
||||||
|
|
||||||
;================================================================================
|
;================================================================================
|
||||||
; Misc Stats
|
; Misc Stats
|
||||||
|
|||||||
@@ -677,6 +677,12 @@ db #$00 ; #00 = Never Locked - #$01 = Locked During Escape (default)
|
|||||||
org $30816A ; PC 0x18016A
|
org $30816A ; PC 0x18016A
|
||||||
FreeItemText:
|
FreeItemText:
|
||||||
db #$01 ; #00 = Off - #$01 = On (default)
|
db #$01 ; #00 = Off - #$01 = On (default)
|
||||||
|
org $30816B ; PC 0x18016B
|
||||||
|
ByrnaCaveCaneOfByrnaUsage:
|
||||||
|
db #$04, #$02, #$01 ; normal, 1/2, 1/4 magic
|
||||||
|
org $30816E ; PC 0x18016E
|
||||||
|
ByrnaCaveCapeUsage:
|
||||||
|
db #$04, #$08, #$10 ; normal, 1/2, 1/4 magic
|
||||||
;================================================================================
|
;================================================================================
|
||||||
org $308190 ; PC 0x180190
|
org $308190 ; PC 0x180190
|
||||||
TimerStyle:
|
TimerStyle:
|
||||||
|
|||||||
Reference in New Issue
Block a user