Quick fixes for shop fighter shield and retro shop arrow
This commit is contained in:
18
newitems.asm
18
newitems.asm
@@ -202,18 +202,24 @@ ItemBehavior:
|
||||
|
||||
.fighter_shield
|
||||
SEP #$10
|
||||
LDX.b #$01
|
||||
JSR .increment_shield
|
||||
LDA.w ShopPurchaseFlag : BNE ..shop_shield
|
||||
-
|
||||
LDX.b #$01
|
||||
JSR .increment_shield
|
||||
RTS
|
||||
..shop_shield
|
||||
TYX
|
||||
LDA.l InventoryTable_properties,X : BIT.b #$02 : BNE -
|
||||
RTS
|
||||
|
||||
.red_shield
|
||||
SEP #$10
|
||||
LDA.w ShopPurchaseFlag : BNE .shop_shield
|
||||
LDA.w ShopPurchaseFlag : BNE ..shop_shield
|
||||
-
|
||||
LDX.b #$02
|
||||
JSR .increment_shield
|
||||
RTS
|
||||
.shop_shield
|
||||
..shop_shield
|
||||
TYX
|
||||
LDA.l InventoryTable_properties,X : BIT.b #$02 : BNE -
|
||||
RTS
|
||||
@@ -411,6 +417,10 @@ ItemBehavior:
|
||||
+
|
||||
RTS
|
||||
|
||||
.single_arrow
|
||||
INC.w UpdateHUD
|
||||
RTS
|
||||
|
||||
.rupoor
|
||||
REP #$20 : LDA.l CurrentRupees : !SUB RupoorDeduction : STA.l CurrentRupees : SEP #$20 ; Take 1 rupee
|
||||
RTS
|
||||
|
||||
Reference in New Issue
Block a user