let's dev 5/31/17

item dialog
This commit is contained in:
Karkat
2017-05-31 00:24:24 -04:00
parent 814da82003
commit 6ccc435a25
5 changed files with 139 additions and 5 deletions

View File

@@ -231,6 +231,7 @@ AddReceivedItemExpandedGetItem:
CMP GoalItemRequirement : !BLT ++ : JSL.l StatsFinalPrep : ++
BRL .done
+ CMP.b #$70 : !BLT + : CMP.b #$80 : !BGE + ; Free Map
JSL.l FreeDungeonItemNotice
AND #$0F : CMP #$08 : !BGE ++
%ValueShift()
ORA $7EF368 : STA $7EF368 ; Map 1
@@ -240,6 +241,7 @@ AddReceivedItemExpandedGetItem:
ORA $7EF369 : STA $7EF369 ; Map 2
BRL .done
+ CMP.b #$80 : !BLT + : CMP.b #$90 : !BGE + ; Free Compass
JSL.l FreeDungeonItemNotice
AND #$0F : CMP #$08 : !BGE ++
%ValueShift()
ORA $7EF364 : STA $7EF364 ; Compass 1
@@ -249,6 +251,7 @@ AddReceivedItemExpandedGetItem:
ORA $7EF365 : STA $7EF365 ; Compass 2
BRL .done
+ CMP.b #$90 : !BLT + : CMP.b #$A0 : !BGE + ; Free Big Key
JSL.l FreeDungeonItemNotice
AND #$0F : CMP #$08 : !BGE ++
%ValueShift()
ORA $7EF366 : STA $7EF366 ; Big Key 1
@@ -258,6 +261,7 @@ AddReceivedItemExpandedGetItem:
ORA $7EF367 : STA $7EF367 ; Big Key 2
BRL .done
+ CMP.b #$A0 : !BLT + : CMP.b #$B0 : !BGE + ; Free Small Key
JSL.l FreeDungeonItemNotice
AND #$0F : TAX
LDA $7EF37C, X : INC : STA $7EF37C, X ; Increment Key Count
TXA : ASL : CMP $040C : BNE ++