move storage of BOMB_LEVEL to make it play nicely with starting equipment

This commit is contained in:
2021-07-13 11:02:59 -07:00
parent e81905a517
commit bdd665db24
9 changed files with 14 additions and 15 deletions

View File

@@ -76,9 +76,9 @@ JMP .done
PHA
TYA ; load bomb upgrade item
!SUB #$B0 ; convert to bomb level
CMP.l $7EF4A8 : !BGE + ; skip if highest is lower (this is an upgrade)
LDA.l $7EF4A8 : !ADD #$B0 ; convert to item id
TAY : PLA : LDA.l $7EF4A8 ; put bomb level into the thing to write
CMP.l !BOMB_LEVEL : !BGE + ; skip if highest is lower (this is an upgrade)
LDA.l !BOMB_LEVEL : !ADD #$B0 ; convert to item id
TAY : PLA : LDA.l !BOMB_LEVEL ; put bomb level into the thing to write
JMP .done
+
PLA