Fix bonk torches and smithy
This commit is contained in:
@@ -57,8 +57,13 @@ GiveBonkItem:
|
|||||||
PHY : TAY
|
PHY : TAY
|
||||||
JSL ShieldCheck
|
JSL ShieldCheck
|
||||||
TYA : PLY
|
TYA : PLY
|
||||||
BCC .done
|
BCS +
|
||||||
|
|
||||||
|
STZ.w $0DD0, X
|
||||||
|
PLA : PLA : PLA ; remove the stored return address
|
||||||
|
JML $85FC9D
|
||||||
|
|
||||||
|
+
|
||||||
JSR AbsorbKeyCheck : BCC .notKey
|
JSR AbsorbKeyCheck : BCC .notKey
|
||||||
PHY : LDY.b #$24 : JSL AddInventory : PLY ; do inventory processing for a small key
|
PHY : LDY.b #$24 : JSL AddInventory : PLY ; do inventory processing for a small key
|
||||||
LDA.l CurrentSmallKeys : INC A : STA.l CurrentSmallKeys
|
LDA.l CurrentSmallKeys : INC A : STA.l CurrentSmallKeys
|
||||||
@@ -67,7 +72,6 @@ GiveBonkItem:
|
|||||||
RTL
|
RTL
|
||||||
.notKey
|
.notKey
|
||||||
PHY : TAY : JSL Link_ReceiveItem : PLY
|
PHY : TAY : JSL Link_ReceiveItem : PLY
|
||||||
.done
|
|
||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
LoadBonkItem:
|
LoadBonkItem:
|
||||||
|
|||||||
@@ -134,8 +134,10 @@ GetSmithSword:
|
|||||||
LDA.l SmithItem : TAY
|
LDA.l SmithItem : TAY
|
||||||
|
|
||||||
JSL ShieldCheck
|
JSL ShieldCheck
|
||||||
BCC .done
|
BCS +
|
||||||
|
JML $86B4A5
|
||||||
|
|
||||||
|
+
|
||||||
STZ.w ItemReceiptMethod ; Item from NPC
|
STZ.w ItemReceiptMethod ; Item from NPC
|
||||||
PHX : JSL Link_ReceiveItem : PLX
|
PHX : JSL Link_ReceiveItem : PLX
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user