mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 07:02:17 +13:00
Item Descriptions!
Added using this tutorial: https://github.com/pret/pokered/wiki/Item-Descriptions Credit to Rangi for the baseline code! Updated Candy Sack -> Candy Jar as discussed a while ago too.
This commit is contained in:
parent
8f77a53fc1
commit
efe2d446a1
12 changed files with 997 additions and 25 deletions
|
|
@ -337,11 +337,7 @@ StartMenu_Item::
|
|||
call PlaceUnfilledArrowMenuCursor
|
||||
xor a
|
||||
ld [wMenuItemToSwap], a
|
||||
ld a, [wcf91]
|
||||
cp BICYCLE
|
||||
jp z, .useOrTossItem
|
||||
.notBicycle1
|
||||
ld a, USE_TOSS_MENU_TEMPLATE
|
||||
ld a, USE_INFO_TOSS_MENU_TEMPLATE
|
||||
ld [wTextBoxID], a
|
||||
call DisplayTextBoxID
|
||||
ld hl, wTopMenuItemY
|
||||
|
|
@ -352,7 +348,7 @@ StartMenu_Item::
|
|||
xor a
|
||||
ld [hli], a ; current menu item ID
|
||||
inc hl
|
||||
inc a ; a = 1
|
||||
ld a, 2
|
||||
ld [hli], a ; max menu item ID
|
||||
ld a, A_BUTTON | B_BUTTON
|
||||
ld [hli], a ; menu watched keys
|
||||
|
|
@ -368,21 +364,24 @@ StartMenu_Item::
|
|||
ld [wd11e], a
|
||||
call GetItemName
|
||||
call CopyToStringBuffer
|
||||
ld a, [wCurrentMenuItem]
|
||||
cp a, 2
|
||||
jr z, .tossItem
|
||||
cp a, 1
|
||||
jp z, .infoItem
|
||||
; use item
|
||||
ld a, [wcf91]
|
||||
cp BICYCLE
|
||||
jr nz, .notBicycle2
|
||||
jr nz, .notBicycle
|
||||
ld a, [wd732]
|
||||
bit 5, a
|
||||
jr z, .useItem_closeMenu
|
||||
ld hl, CannotGetOffHereText
|
||||
call PrintText
|
||||
jp ItemMenuLoop
|
||||
.notBicycle2
|
||||
ld a, [wCurrentMenuItem]
|
||||
and a
|
||||
jr nz, .tossItem
|
||||
; use item
|
||||
ld [wPseudoItemID], a ; a must be 0 due to above conditional jump
|
||||
.notBicycle
|
||||
xor a
|
||||
ld [wPseudoItemID], a
|
||||
ld a, [wcf91]
|
||||
cp HM01
|
||||
jr nc, .useItem_partyMenu
|
||||
|
|
@ -437,6 +436,9 @@ StartMenu_Item::
|
|||
call TossItem
|
||||
.tossZeroItems
|
||||
jp ItemMenuLoop
|
||||
.infoItem
|
||||
farcall DisplayItemDescription
|
||||
jp ItemMenuLoop
|
||||
|
||||
CannotUseItemsHereText:
|
||||
text_far _CannotUseItemsHereText
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue