Smith item requires 10 rupees now

This commit is contained in:
sporchia
2018-10-20 12:34:07 -04:00
parent 52e34b2839
commit 9b3fe2d355

View File

@@ -142,12 +142,27 @@ GetSmithSword:
LDA.l SmithItemMode : BNE + LDA.l SmithItemMode : BNE +
JML.l Smithy_DoesntHaveSword ; Classic Smithy JML.l Smithy_DoesntHaveSword ; Classic Smithy
+ +
LDA.l SmithItem : TAY
STZ $02E9 ; Item from NPC REP #$20 : LDA $7EF360 : CMP #$000A : SEP #$20 : !BGE .buy
PHX : JSL Link_ReceiveItem : PLX .cant_afford
REP #$20 : LDA $7EF360 : !SUB.w #$000A : STA $7EF360 : SEP #$20 ; Take 10 rupees REP #$10
JSL ItemSet_SmithSword LDA.b #$7A
JML.l Smithy_AlreadyGotSword LDY.b #$01
JSL.l Sprite_ShowMessageUnconditional
LDA.b #$3C : STA $012E ; error sound
SEP #$10
BRA .done
.buy
LDA.l SmithItem : TAY
STZ $02E9 ; Item from NPC
PHX : JSL Link_ReceiveItem : PLX
REP #$20 : LDA $7EF360 : !SUB.w #$000A : STA $7EF360 : SEP #$20 ; Take 10 rupees
JSL ItemSet_SmithSword
.done
JML.l Smithy_AlreadyGotSword
;================================================================================ ;================================================================================
CheckMedallionSword: CheckMedallionSword:
PHB : PHX : PHY PHB : PHX : PHY