fix to include MM spike room for OHKO
* dl is 3 bytes so split out date to 4 separate bytes.
This commit is contained in:
@@ -25,8 +25,8 @@ db #$05 ; mark sram as 32k
|
|||||||
org $3FFFFF ; <- 1FFFFF
|
org $3FFFFF ; <- 1FFFFF
|
||||||
db #$00 ; expand file to 2mb
|
db #$00 ; expand file to 2mb
|
||||||
|
|
||||||
org $1FFFF8 ; timestamp rom
|
org $1FFFF8 ; <- FFFF8 timestamp rom
|
||||||
dl #$20170801
|
db #$20, #$17, #$08, #$06 ; year/month/day
|
||||||
|
|
||||||
;================================================================================
|
;================================================================================
|
||||||
|
|
||||||
|
|||||||
22
hardmode.asm
22
hardmode.asm
@@ -16,30 +16,36 @@ CalculateSpikeFloorDamage:
|
|||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
CalculateByrnaUsage:
|
CalculateByrnaUsage:
|
||||||
LDA $1B : BEQ +
|
LDA $1B : BEQ ++
|
||||||
REP #$20 ; set 16-bit accumulator
|
REP #$20 ; set 16-bit accumulator
|
||||||
LDA $A0 ; these are all decimal because i got them that way
|
LDA $A0 ; these are all decimal because i got them that way
|
||||||
CMP.w #279
|
CMP.w #279 : BEQ + ; Spike Cave
|
||||||
|
CMP.w #179 : BEQ + ; Room in Misery Mire
|
||||||
SEP #$20 ; set 8-bit accumulator
|
SEP #$20 ; set 8-bit accumulator
|
||||||
BNE +
|
BRA ++
|
||||||
|
+
|
||||||
|
SEP #$20 ; set 8-bit accumulator
|
||||||
PHX : TYX
|
PHX : TYX
|
||||||
LDA.l ByrnaCaveCaneOfByrnaUsage, X : STA $00
|
LDA.l ByrnaCaveCaneOfByrnaUsage, X : STA $00
|
||||||
PLX
|
PLX
|
||||||
+
|
++
|
||||||
LDA $7EF36E ; thing we wrote over
|
LDA $7EF36E ; thing we wrote over
|
||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
CalculateCapeUsage:
|
CalculateCapeUsage:
|
||||||
LDA $1B : BEQ +
|
LDA $1B : BEQ ++
|
||||||
REP #$20 ; set 16-bit accumulator
|
REP #$20 ; set 16-bit accumulator
|
||||||
LDA $A0 ; these are all decimal because i got them that way
|
LDA $A0 ; these are all decimal because i got them that way
|
||||||
CMP.w #279
|
CMP.w #279 : BEQ + ; Spike Cave
|
||||||
|
CMP.w #179 : BEQ + ; Room in Misery Mire
|
||||||
SEP #$20 ; set 8-bit accumulator
|
SEP #$20 ; set 8-bit accumulator
|
||||||
BNE +
|
BRA ++
|
||||||
|
+
|
||||||
|
SEP #$20 ; set 8-bit accumulator
|
||||||
PHX : TYX
|
PHX : TYX
|
||||||
LDA.l ByrnaCaveCapeUsage, X : STA $4C
|
LDA.l ByrnaCaveCapeUsage, X : STA $4C
|
||||||
PLX
|
PLX
|
||||||
+
|
++
|
||||||
LDA $7EF36E ; thing we wrote over
|
LDA $7EF36E ; thing we wrote over
|
||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user