Converted file to tabs for consistency
This commit is contained in:
@@ -126,10 +126,10 @@ OnNewFile:
|
|||||||
DEX : DEX
|
DEX : DEX
|
||||||
BPL -
|
BPL -
|
||||||
|
|
||||||
LDX #$000E : -
|
LDX #$000E : -
|
||||||
LDA $7EF37C, X : STA $7EF4E0, X
|
LDA $7EF37C, X : STA $7EF4E0, X
|
||||||
DEX : DEX
|
DEX : DEX
|
||||||
BPL -
|
BPL -
|
||||||
|
|
||||||
SEP #$20 ; set 8-bit accumulator
|
SEP #$20 ; set 8-bit accumulator
|
||||||
;LDA #$FF : STA !RNG_ITEM_LOCK_IN ; reset rng item lock-in
|
;LDA #$FF : STA !RNG_ITEM_LOCK_IN ; reset rng item lock-in
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
; Item Downgrade Fix
|
; Item Downgrade Fix
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
ItemDowngradeFix:
|
ItemDowngradeFix:
|
||||||
JSR ItemDowngradeFixMain
|
JSR ItemDowngradeFixMain
|
||||||
JSL CountChestKeyLong
|
JSL CountChestKeyLong
|
||||||
RTL
|
RTL
|
||||||
|
|
||||||
ItemDowngradeFixMain:
|
ItemDowngradeFixMain:
|
||||||
|
|||||||
48
stats.asm
48
stats.asm
@@ -258,37 +258,37 @@ DecrementSmallKeys:
|
|||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
CountChestKeyLong: ; called from ItemDowngradeFix in itemdowngrade.asm
|
CountChestKeyLong: ; called from ItemDowngradeFix in itemdowngrade.asm
|
||||||
JSR CountChestKey
|
JSR CountChestKey
|
||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
CountChestKey: ; called by neighbor functions
|
CountChestKey: ; called by neighbor functions
|
||||||
PHA : PHX
|
PHA : PHX
|
||||||
CPY #$24 : BEQ + ; small key for this dungeon - use $040C
|
CPY #$24 : BEQ + ; small key for this dungeon - use $040C
|
||||||
CPY #$A0 : !BLT .end ; Ignore most items
|
CPY #$A0 : !BLT .end ; Ignore most items
|
||||||
CPY #$AE : !BGE .end ; Ignore reserved key and generic key
|
CPY #$AE : !BGE .end ; Ignore reserved key and generic key
|
||||||
TYA : AND.B #$0F : BNE ++ ; If this is a sewers key, instead count it as an HC key
|
TYA : AND.B #$0F : BNE ++ ; If this is a sewers key, instead count it as an HC key
|
||||||
INC
|
INC
|
||||||
++ TAX : BRA .count ; use Key id instead of $040C (Keysanity)
|
++ TAX : BRA .count ; use Key id instead of $040C (Keysanity)
|
||||||
+ LDA $040C : LSR : TAX
|
+ LDA $040C : LSR : TAX
|
||||||
.count
|
.count
|
||||||
LDA $7EF4E0, X : INC : STA $7EF4E0, X
|
LDA $7EF4E0, X : INC : STA $7EF4E0, X
|
||||||
.end
|
.end
|
||||||
PLX : PLA
|
PLX : PLA
|
||||||
RTS
|
RTS
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
CountBonkItem: ; called from GetBonkItem in bookofmudora.asm
|
CountBonkItem: ; called from GetBonkItem in bookofmudora.asm
|
||||||
LDA $A0 ; check room ID - only bonk keys in 2 rooms so we're just checking the lower byte
|
LDA $A0 ; check room ID - only bonk keys in 2 rooms so we're just checking the lower byte
|
||||||
CMP #115 : BNE + ; Desert Bonk Key
|
CMP #115 : BNE + ; Desert Bonk Key
|
||||||
LDA.L BonkKey_Desert : BRA ++
|
LDA.L BonkKey_Desert : BRA ++
|
||||||
+ : CMP #140 : BNE + ; GTower Bonk Key
|
+ : CMP #140 : BNE + ; GTower Bonk Key
|
||||||
LDA.L BonkKey_GTower : BRA ++
|
LDA.L BonkKey_GTower : BRA ++
|
||||||
+ LDA.B #$24 ; default to small key
|
+ LDA.B #$24 ; default to small key
|
||||||
++
|
++
|
||||||
CMP #$24 : BNE +
|
CMP #$24 : BNE +
|
||||||
PHY
|
PHY
|
||||||
TAY : JSR CountChestKey
|
TAY : JSR CountChestKey
|
||||||
PLY
|
PLY
|
||||||
+
|
+
|
||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
IncrementAgahnim2Sword:
|
IncrementAgahnim2Sword:
|
||||||
|
|||||||
Reference in New Issue
Block a user