From 10f9559eab8c93b94abb8ae8d1083704ad4e169a Mon Sep 17 00:00:00 2001 From: dannye <33dannye@gmail.com> Date: Wed, 20 May 2020 19:40:33 -0500 Subject: Sync with pokered --- scripts/mtmoonpokecenter2.asm | 66 ------------------------------------------- 1 file changed, 66 deletions(-) delete mode 100755 scripts/mtmoonpokecenter2.asm (limited to 'scripts/mtmoonpokecenter2.asm') diff --git a/scripts/mtmoonpokecenter2.asm b/scripts/mtmoonpokecenter2.asm deleted file mode 100755 index 6097342b..00000000 --- a/scripts/mtmoonpokecenter2.asm +++ /dev/null @@ -1,66 +0,0 @@ -MagikarpSalesman: - CheckEvent EVENT_BOUGHT_MAGIKARP, 1 - jp c, .alreadyBoughtMagikarp - ld hl, .Text1 - call PrintText - ld a, MONEY_BOX - ld [wTextBoxID], a - call DisplayTextBoxID - call YesNoChoice - ld a, [wCurrentMenuItem] - and a - jp nz, .choseNo - ; $000500 - xor a - ld [hMoney], a - ld [hMoney + 2], a - ld a, $5 - ld [hMoney + 1], a - call HasEnoughMoney - jr nc, .enoughMoney - ld hl, .NoMoneyText - jr .printText -.enoughMoney - lb bc, MAGIKARP, 5 - call GivePokemon - jr nc, .done - ; $000500 - xor a - ld [wPriceTemp], a - ld [wPriceTemp + 2], a - ld a, $5 - ld [wPriceTemp + 1], a - ld hl, wPriceTemp + 2 - ld de, wPlayerMoney + 2 - ld c, $3 - predef SubBCDPredef - ld a, MONEY_BOX - ld [wTextBoxID], a - call DisplayTextBoxID - SetEvent EVENT_BOUGHT_MAGIKARP - jr .done -.choseNo - ld hl, .RefuseText - jr .printText -.alreadyBoughtMagikarp - ld hl, .Text2 -.printText - call PrintText -.done - ret - -.Text1 - TX_FAR _MagikarpSalesmanText1 - db "@" - -.RefuseText - TX_FAR _MagikarpSalesmanNoText - db "@" - -.NoMoneyText - TX_FAR _MagikarpSalesmanNoMoneyText - db "@" - -.Text2 - TX_FAR _MagikarpSalesmanText2 - db "@" -- cgit v1.3.1-sl0p