summaryrefslogtreecommitdiff
path: root/scripts/MtMoonPokecenter.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/MtMoonPokecenter.asm')
-rw-r--r--scripts/MtMoonPokecenter.asm68
1 files changed, 7 insertions, 61 deletions
diff --git a/scripts/MtMoonPokecenter.asm b/scripts/MtMoonPokecenter.asm
index e4b881d1..302c5f19 100644
--- a/scripts/MtMoonPokecenter.asm
+++ b/scripts/MtMoonPokecenter.asm
@@ -9,6 +9,7 @@ MtMoonPokecenter_TextPointers:
dw MagikarpSalesmanText
dw MtMoonPokecenterText5
dw MtMoonTradeNurseText
+ dw MtMoonPokecenterText7
MtMoonHealNurseText:
script_pokecenter_nurse
@@ -23,72 +24,17 @@ MtMoonPokecenterText3:
MagikarpSalesmanText:
text_asm
- 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
- ldh [hMoney], a
- ldh [hMoney + 2], a
- ld a, $5
- ldh [hMoney + 1], a
- call HasEnoughMoney
- jr nc, .enoughMoney
- ld hl, .NoMoneyText
- jr .printText
-.enoughMoney
- lb bc, MAGIKARP, 5
- call GivePokemon
- jr nc, .done
- 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
+ callfar MagikarpSalesman
jp TextScriptEnd
-.Text1
- text_far _MagikarpSalesmanText1
- text_end
-
-.RefuseText
- text_far _MagikarpSalesmanNoText
- text_end
-
-.NoMoneyText
- text_far _MagikarpSalesmanNoMoneyText
- text_end
-
-.Text2
- text_far _MagikarpSalesmanText2
- text_end
-
MtMoonPokecenterText5:
text_far _MtMoonPokecenterText5
text_end
MtMoonTradeNurseText:
script_cable_club_receptionist
+
+MtMoonPokecenterText7:
+ text_asm
+ callfar PokecenterChanseyText
+ jp TextScriptEnd