From 9b3fe2d3556a6117c74de124986f3275af9f2d15 Mon Sep 17 00:00:00 2001 From: sporchia Date: Sat, 20 Oct 2018 12:34:07 -0400 Subject: [PATCH] Smith item requires 10 rupees now --- swordswap.asm | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/swordswap.asm b/swordswap.asm index 5bb0cc3..170ce66 100644 --- a/swordswap.asm +++ b/swordswap.asm @@ -142,12 +142,27 @@ GetSmithSword: LDA.l SmithItemMode : BNE + JML.l Smithy_DoesntHaveSword ; Classic Smithy + - 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 - JML.l Smithy_AlreadyGotSword + + REP #$20 : LDA $7EF360 : CMP #$000A : SEP #$20 : !BGE .buy + .cant_afford + REP #$10 + LDA.b #$7A + 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: PHB : PHX : PHY