mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +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
334
engine/menus/item_descriptions.asm
Normal file
334
engine/menus/item_descriptions.asm
Normal file
|
|
@ -0,0 +1,334 @@
|
|||
; This is ordered by the IDs in constants/item_constants.asm.
|
||||
; https://github.com/pret/pokered/wiki/Item-Descriptions
|
||||
|
||||
DisplayItemDescription::
|
||||
ld a, [wcf91]
|
||||
dec a
|
||||
cp a, HM01 - 1
|
||||
jr c, .ok
|
||||
sub HM01 - FLOOR_B2F
|
||||
.ok
|
||||
ld hl, ItemDescriptionPointers
|
||||
ld bc, 5
|
||||
call AddNTimes
|
||||
jp PrintText
|
||||
|
||||
ItemDescriptionPointers:
|
||||
text_far _MasterBallDescription
|
||||
text_end
|
||||
text_far _UltraBallDescription
|
||||
text_end
|
||||
text_far _GreatBallDescription
|
||||
text_end
|
||||
text_far _PokeBallDescription
|
||||
text_end
|
||||
text_far _TownMapDescription
|
||||
text_end
|
||||
text_far _BicycleDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _MoonStoneDescription
|
||||
text_end
|
||||
text_far _AntidoteDescription
|
||||
text_end
|
||||
text_far _BurnHealDescription
|
||||
text_end
|
||||
text_far _IceHealDescription
|
||||
text_end
|
||||
text_far _AwakeningDescription
|
||||
text_end
|
||||
text_far _ParlyzHealDescription
|
||||
text_end
|
||||
text_far _FullRestoreDescription
|
||||
text_end
|
||||
text_far _MaxPotionDescription
|
||||
text_end
|
||||
text_far _HyperPotionDescription
|
||||
text_end
|
||||
text_far _SuperPotionDescription
|
||||
text_end
|
||||
text_far _PotionDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _EscapeRopeDescription
|
||||
text_end
|
||||
text_far _RepelDescription
|
||||
text_end
|
||||
text_far _OldAmberDescription
|
||||
text_end
|
||||
text_far _FireStoneDescription
|
||||
text_end
|
||||
text_far _ThunderStoneDescription
|
||||
text_end
|
||||
text_far _WaterStoneDescription
|
||||
text_end
|
||||
text_far _HPUpDescription
|
||||
text_end
|
||||
text_far _ProteinDescription
|
||||
text_end
|
||||
text_far _IronDescription
|
||||
text_end
|
||||
text_far _CarbosDescription
|
||||
text_end
|
||||
text_far _CalciumDescription
|
||||
text_end
|
||||
text_far _RareCandyDescription
|
||||
text_end
|
||||
text_far _DomeFossilDescription
|
||||
text_end
|
||||
text_far _HelixFossilDescription
|
||||
text_end
|
||||
text_far _SecretKeyDescription
|
||||
text_end
|
||||
text_far _HeartStoneDescription
|
||||
text_end
|
||||
text_far _BikeVoucherDescription
|
||||
text_end
|
||||
text_far _XAccuracyDescription
|
||||
text_end
|
||||
text_far _LeafStoneDescription
|
||||
text_end
|
||||
text_far _CardKeyDescription
|
||||
text_end
|
||||
text_far _NuggetDescription
|
||||
text_end
|
||||
text_far _WingFossilDescription
|
||||
text_end
|
||||
text_far _PokeDollDescription
|
||||
text_end
|
||||
text_far _FullHealDescription
|
||||
text_end
|
||||
text_far _ReviveDescription
|
||||
text_end
|
||||
text_far _MaxReviveDescription
|
||||
text_end
|
||||
text_far _GuardSpecDescription
|
||||
text_end
|
||||
text_far _SuperRepelDescription
|
||||
text_end
|
||||
text_far _MaxRepelDescription
|
||||
text_end
|
||||
text_far _DireHitDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _FreshWaterDescription
|
||||
text_end
|
||||
text_far _SodaPopDescription
|
||||
text_end
|
||||
text_far _LemonadeDescription
|
||||
text_end
|
||||
text_far _SSTicketDescription
|
||||
text_end
|
||||
text_far _GoldTeethDescription
|
||||
text_end
|
||||
text_far _XAttackDescription
|
||||
text_end
|
||||
text_far _XDefendDescription
|
||||
text_end
|
||||
text_far _XSpeedDescription
|
||||
text_end
|
||||
text_far _XSpecialDescription
|
||||
text_end
|
||||
text_far _CoinCaseDescription
|
||||
text_end
|
||||
text_far _OaksParcelDescription
|
||||
text_end
|
||||
text_far _ItemfinderDescription
|
||||
text_end
|
||||
text_far _SilphScopeDescription
|
||||
text_end
|
||||
text_far _PokeFluteDescription
|
||||
text_end
|
||||
text_far _LiftKeyDescription
|
||||
text_end
|
||||
text_far _ExpAllDescription
|
||||
text_end
|
||||
text_far _CandyJarDescription
|
||||
text_end
|
||||
text_far _GoodRodDescription
|
||||
text_end
|
||||
text_far _FishingRodDescription
|
||||
text_end
|
||||
text_far _PPUpDescription
|
||||
text_end
|
||||
text_far _EtherDescription
|
||||
text_end
|
||||
text_far _MaxEtherDescription
|
||||
text_end
|
||||
text_far _ElixerDescription
|
||||
text_end
|
||||
text_far _MaxElixerDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription ; for the floor items - we've added items after these, so we need to stuff them in lest TM descriptions invade our personal space.
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end
|
||||
text_far _UnusedItemDescription
|
||||
text_end ; floor items end here
|
||||
text_far _IceStoneDescription
|
||||
text_end
|
||||
text_far _ProtectorDescription
|
||||
text_end
|
||||
text_far _PoisonStoneDescription
|
||||
text_end
|
||||
text_far _BlkAuguriteDescription
|
||||
text_end
|
||||
text_far _DubiousDiscDescription
|
||||
text_end
|
||||
text_far _CitrinePassDescription
|
||||
text_end
|
||||
text_far _OldSeaChartDescription
|
||||
text_end
|
||||
text_far _HM01Description
|
||||
text_end
|
||||
text_far _HM02Description
|
||||
text_end
|
||||
text_far _HM03Description
|
||||
text_end
|
||||
text_far _HM04Description
|
||||
text_end
|
||||
text_far _HM05Description
|
||||
text_end
|
||||
text_far _TM01Description
|
||||
text_end
|
||||
text_far _TM02Description
|
||||
text_end
|
||||
text_far _TM03Description
|
||||
text_end
|
||||
text_far _TM04Description
|
||||
text_end
|
||||
text_far _TM05Description
|
||||
text_end
|
||||
text_far _TM06Description
|
||||
text_end
|
||||
text_far _TM07Description
|
||||
text_end
|
||||
text_far _TM08Description
|
||||
text_end
|
||||
text_far _TM09Description
|
||||
text_end
|
||||
text_far _TM10Description
|
||||
text_end
|
||||
text_far _TM11Description
|
||||
text_end
|
||||
text_far _TM12Description
|
||||
text_end
|
||||
text_far _TM13Description
|
||||
text_end
|
||||
text_far _TM14Description
|
||||
text_end
|
||||
text_far _TM15Description
|
||||
text_end
|
||||
text_far _TM16Description
|
||||
text_end
|
||||
text_far _TM17Description
|
||||
text_end
|
||||
text_far _TM18Description
|
||||
text_end
|
||||
text_far _TM19Description
|
||||
text_end
|
||||
text_far _TM20Description
|
||||
text_end
|
||||
text_far _TM21Description
|
||||
text_end
|
||||
text_far _TM22Description
|
||||
text_end
|
||||
text_far _TM23Description
|
||||
text_end
|
||||
text_far _TM24Description
|
||||
text_end
|
||||
text_far _TM25Description
|
||||
text_end
|
||||
text_far _TM26Description
|
||||
text_end
|
||||
text_far _TM27Description
|
||||
text_end
|
||||
text_far _TM28Description
|
||||
text_end
|
||||
text_far _TM29Description
|
||||
text_end
|
||||
text_far _TM30Description
|
||||
text_end
|
||||
text_far _TM31Description
|
||||
text_end
|
||||
text_far _TM32Description
|
||||
text_end
|
||||
text_far _TM33Description
|
||||
text_end
|
||||
text_far _TM34Description
|
||||
text_end
|
||||
text_far _TM35Description
|
||||
text_end
|
||||
text_far _TM36Description
|
||||
text_end
|
||||
text_far _TM37Description
|
||||
text_end
|
||||
text_far _TM38Description
|
||||
text_end
|
||||
text_far _TM39Description
|
||||
text_end
|
||||
text_far _TM40Description
|
||||
text_end
|
||||
text_far _TM41Description
|
||||
text_end
|
||||
text_far _TM42Description
|
||||
text_end
|
||||
text_far _TM43Description
|
||||
text_end
|
||||
text_far _TM44Description
|
||||
text_end
|
||||
text_far _TM45Description
|
||||
text_end
|
||||
text_far _TM46Description
|
||||
text_end
|
||||
text_far _TM47Description
|
||||
text_end
|
||||
text_far _TM48Description
|
||||
text_end
|
||||
text_far _TM49Description
|
||||
text_end
|
||||
text_far _TM50Description
|
||||
text_end
|
||||
|
|
@ -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