Fix AddInventory/stats tracking with 16 bit item properties

This commit is contained in:
cassidoxa
2023-09-02 22:57:50 -04:00
parent 2cead7ae92
commit 73b2a180ba
5 changed files with 67 additions and 57 deletions

View File

@@ -103,11 +103,11 @@ RTL
;--------------------------------------------------------------------------------
OnAga2Defeated:
JSL.l Dungeon_SaveRoomData_justKeys ; thing we wrote over, make sure this is first
LDA.b #$FF : STA.w DungeonID
LDA.b #$01 : STA.l Aga2Duck
LDA.w DungeonID : CMP.b #$1A : BNE +
LDA.l DungeonsCompleted : ORA.b #$04 : STA.l DungeonsCompleted
+
LDA.b #$FF : STA.w DungeonID
JML.l IncrementAgahnim2Sword
;--------------------------------------------------------------------------------
OnFileCreation: