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
|
||||
|
||||
org $1FFFF8 ; timestamp rom
|
||||
dl #$20170731
|
||||
dl #$20170801
|
||||
|
||||
;================================================================================
|
||||
|
||||
|
||||
28
hardmode.asm
28
hardmode.asm
@@ -15,3 +15,31 @@ CalculateSpikeFloorDamage:
|
||||
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
|
||||
;--------------------------------------------------------------------------------
|
||||
|
||||
@@ -202,6 +202,12 @@ NOP #2
|
||||
org $07D22B ; <- 3D22B - Bank05.asm : 12752 (LDA $D055, Y : STA $0373)
|
||||
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
|
||||
|
||||
@@ -677,6 +677,12 @@ db #$00 ; #00 = Never Locked - #$01 = Locked During Escape (default)
|
||||
org $30816A ; PC 0x18016A
|
||||
FreeItemText:
|
||||
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
|
||||
TimerStyle:
|
||||
|
||||
Reference in New Issue
Block a user