aboutsummaryrefslogtreecommitdiffstats
path: root/engine
diff options
context:
space:
mode:
authorAsh Ketchum <no-reply@sl0p.foo>2026-07-15 02:27:44 +0200
committerAsh Ketchum <no-reply@sl0p.foo>2026-07-15 02:27:44 +0200
commitff80598e0b59a222f9e205e4ce92902aee684cbd (patch)
tree099c025bc20185c72677da1d533c3815d4cb48f3 /engine
parentmenu: TEACH - give the whole party an OP coverage moveset (diff)
downloadpokeyellow-ff80598e0b59a222f9e205e4ce92902aee684cbd.tar.gz
pokeyellow-ff80598e0b59a222f9e205e4ce92902aee684cbd.tar.xz
pokeyellow-ff80598e0b59a222f9e205e4ce92902aee684cbd.zip
menu: HMS - give all five HMs (Cut/Fly/Surf/Strength/Flash)
SL0P MENU now 12 entries. HMs let you use field moves anywhere to complement the warp/noclip goals.
Diffstat (limited to 'engine')
-rw-r--r--engine/slop_menu.asm23
1 files changed, 20 insertions, 3 deletions
diff --git a/engine/slop_menu.asm b/engine/slop_menu.asm
index df9e3f08..8bbbf19f 100644
--- a/engine/slop_menu.asm
+++ b/engine/slop_menu.asm
@@ -8,7 +8,7 @@
; To add an entry: add a "NAME" line to SlopMenuText, a `dw Handler` to
; SlopMenuHandlers, and bump SLOP_MENU_COUNT.
-DEF SLOP_MENU_COUNT EQU 11
+DEF SLOP_MENU_COUNT EQU 12
SECTION "Slop Menu", ROMX
@@ -32,11 +32,11 @@ SlopMenu::
hlcoord 6, 3
ld de, SlopMenuText
call PlaceString
-; ON marker for the NOWILD toggle (item 9 -> row 12)
+; ON marker for the NOWILD toggle (item 10 -> row 13)
ld a, [wSlopNoWild]
and a
jr z, .nowildOff
- hlcoord 13, 12
+ hlcoord 13, 13
ld de, SlopOnText
call PlaceString
.nowildOff
@@ -112,6 +112,7 @@ SlopMenuText:
next "DEX"
next "MAXTEAM"
next "TEACH"
+ next "HMS"
next "ITEMS"
next "NOWILD"
next "REPEL@"
@@ -126,6 +127,7 @@ SlopMenuHandlers:
dw SlopDex
dw SlopMaxTeam
dw SlopTeach
+ dw SlopGiveHMs
dw GiveItemSubmenu
dw SlopToggleNoWild
dw SlopRepel
@@ -353,6 +355,21 @@ SlopTeach:
and a
ret
+; HMS: give all five HMs (Cut/Fly/Surf/Strength/Flash)
+SlopGiveHMs:
+ ld b, HM_CUT
+.loop
+ push bc
+ ld c, 1
+ call GiveItem
+ pop bc
+ inc b
+ ld a, b
+ cp HM_FLASH + 1
+ jr nz, .loop
+ and a
+ ret
+
; MONEY: 999999 (BCD)
SlopMaxCash:
ld a, $99