2017-12-27 06:29:15 +00:00
|
|
|
; item_attributes struct members (see data/items/attributes.asm)
|
2017-12-26 04:45:54 +00:00
|
|
|
const_def
|
|
|
|
const ITEMATTR_PRICE
|
|
|
|
const ITEMATTR_PRICE_HI
|
|
|
|
const ITEMATTR_EFFECT
|
|
|
|
const ITEMATTR_PARAM
|
|
|
|
const ITEMATTR_PERMISSIONS
|
|
|
|
const ITEMATTR_POCKET
|
|
|
|
const ITEMATTR_HELP
|
|
|
|
ITEMATTR_STRUCT_LENGTH EQU const_value
|
|
|
|
|
2018-01-11 17:00:01 +00:00
|
|
|
; item types
|
|
|
|
const_value set 1
|
|
|
|
const ITEM ; 1
|
|
|
|
const KEY_ITEM ; 2
|
|
|
|
const BALL ; 3
|
|
|
|
const TM_HM ; 4
|
2017-12-26 04:45:54 +00:00
|
|
|
|
|
|
|
; item menu types
|
2018-01-11 17:00:01 +00:00
|
|
|
; UseItem.dw indexes (see engine/pack.asm)
|
2017-12-26 04:45:54 +00:00
|
|
|
ITEMMENU_NOUSE EQU 0
|
|
|
|
ITEMMENU_CURRENT EQU 4
|
|
|
|
ITEMMENU_PARTY EQU 5
|
|
|
|
ITEMMENU_CLOSE EQU 6
|
|
|
|
|
|
|
|
; item actions
|
|
|
|
CANT_SELECT EQU 1 << 6
|
|
|
|
CANT_TOSS EQU 1 << 7
|
|
|
|
|
|
|
|
|
2018-01-11 17:00:01 +00:00
|
|
|
; pack pockets
|
|
|
|
const_def
|
|
|
|
const ITEM_POCKET ; 0
|
|
|
|
const BALL_POCKET ; 1
|
|
|
|
const KEY_ITEM_POCKET ; 2
|
|
|
|
const TM_HM_POCKET ; 3
|
|
|
|
NUM_POCKETS EQU const_value +- 1
|
|
|
|
|
|
|
|
MAX_ITEMS EQU 20
|
|
|
|
MAX_BALLS EQU 12
|
|
|
|
MAX_KEY_ITEMS EQU 25
|
|
|
|
MAX_PC_ITEMS EQU 50
|
|
|
|
|
|
|
|
|
2017-12-26 04:45:54 +00:00
|
|
|
; mail
|
2018-01-12 03:16:17 +00:00
|
|
|
MAIL_LINE_LENGTH EQU $10
|
2017-12-26 04:45:54 +00:00
|
|
|
MAIL_MSG_LENGTH EQU $20
|
|
|
|
MAILBOX_CAPACITY EQU 10
|
|
|
|
MAIL_STRUCT_LENGTH EQU $2f ; mailmsg struct
|
|
|
|
|
|
|
|
|
|
|
|
; held item effects
|
|
|
|
const_def
|
|
|
|
const HELD_NONE
|
|
|
|
const HELD_BERRY
|
|
|
|
const HELD_2
|
|
|
|
const HELD_LEFTOVERS
|
|
|
|
const HELD_4
|
|
|
|
const HELD_5
|
|
|
|
const HELD_RESTORE_PP
|
|
|
|
const HELD_7
|
|
|
|
const HELD_CLEANSE_TAG
|
|
|
|
|
2017-12-29 16:15:01 +00:00
|
|
|
const_value set 10
|
2017-12-26 04:45:54 +00:00
|
|
|
const HELD_HEAL_POISON
|
|
|
|
const HELD_HEAL_FREEZE
|
|
|
|
const HELD_HEAL_BURN
|
|
|
|
const HELD_HEAL_SLEEP
|
|
|
|
const HELD_HEAL_PARALYZE
|
|
|
|
const HELD_HEAL_STATUS
|
|
|
|
const HELD_HEAL_CONFUSION
|
|
|
|
|
2017-12-29 16:15:01 +00:00
|
|
|
const_value set 20
|
2017-12-26 04:45:54 +00:00
|
|
|
const HELD_PREVENT_POISON
|
|
|
|
const HELD_PREVENT_BURN
|
|
|
|
const HELD_PREVENT_FREEZE
|
|
|
|
const HELD_PREVENT_SLEEP
|
|
|
|
const HELD_PREVENT_PARALYZE
|
|
|
|
const HELD_PREVENT_CONFUSE
|
|
|
|
|
2017-12-29 16:15:01 +00:00
|
|
|
const_value set 30
|
2017-12-26 04:45:54 +00:00
|
|
|
const HELD_30
|
|
|
|
const HELD_ATTACK_UP
|
|
|
|
const HELD_DEFENSE_UP
|
|
|
|
const HELD_SPEED_UP
|
|
|
|
const HELD_SP_ATTACK_UP
|
|
|
|
const HELD_SP_DEFENSE_UP
|
|
|
|
const HELD_ACCURACY_UP
|
|
|
|
const HELD_EVASION_UP
|
|
|
|
const HELD_38
|
|
|
|
|
2017-12-29 16:15:01 +00:00
|
|
|
const_value set 40
|
2017-12-26 04:45:54 +00:00
|
|
|
const HELD_40
|
|
|
|
const HELD_41
|
|
|
|
const HELD_METAL_POWDER
|
|
|
|
|
2017-12-29 16:15:01 +00:00
|
|
|
const_value set 50
|
2017-12-26 04:45:54 +00:00
|
|
|
const HELD_NORMAL_BOOST
|
|
|
|
const HELD_FIGHTING_BOOST
|
|
|
|
const HELD_FLYING_BOOST
|
|
|
|
const HELD_POISON_BOOST
|
|
|
|
const HELD_GROUND_BOOST
|
|
|
|
const HELD_ROCK_BOOST
|
|
|
|
const HELD_BUG_BOOST
|
|
|
|
const HELD_GHOST_BOOST
|
|
|
|
const HELD_FIRE_BOOST
|
|
|
|
const HELD_WATER_BOOST
|
|
|
|
const HELD_GRASS_BOOST
|
|
|
|
const HELD_ELECTRIC_BOOST
|
|
|
|
const HELD_PSYCHIC_BOOST
|
|
|
|
const HELD_ICE_BOOST
|
|
|
|
const HELD_DRAGON_BOOST
|
|
|
|
const HELD_DARK_BOOST
|
|
|
|
const HELD_STEEL_BOOST
|
|
|
|
|
2017-12-29 16:15:01 +00:00
|
|
|
const_value set 70
|
2017-12-26 04:45:54 +00:00
|
|
|
const HELD_CATCH_CHANCE
|
|
|
|
const HELD_71
|
|
|
|
const HELD_ESCAPE
|
|
|
|
const HELD_CRITICAL_UP
|
|
|
|
const HELD_QUICK_CLAW
|
|
|
|
const HELD_FLINCH
|
|
|
|
const HELD_AMULET_COIN
|
|
|
|
const HELD_BRIGHTPOWDER
|
|
|
|
const HELD_78
|
|
|
|
const HELD_FOCUS_BAND
|
|
|
|
|
|
|
|
|
|
|
|
; mart types (see engine/mart.asm)
|
|
|
|
const_def
|
|
|
|
const MARTTYPE_STANDARD
|
|
|
|
const MARTTYPE_BITTER
|
|
|
|
const MARTTYPE_BARGAIN
|
|
|
|
const MARTTYPE_PHARMACY
|
|
|
|
const MARTTYPE_ROOFTOP
|
|
|
|
|
|
|
|
; Marts indexes (see data/items/marts.asm)
|
|
|
|
const_def
|
|
|
|
const MART_CHERRYGROVE
|
|
|
|
const MART_CHERRYGROVE_DEX
|
|
|
|
const MART_VIOLET
|
|
|
|
const MART_AZALEA
|
|
|
|
const MART_CIANWOOD
|
|
|
|
const MART_GOLDENROD_2F_1
|
|
|
|
const MART_GOLDENROD_2F_2
|
|
|
|
const MART_GOLDENROD_3F
|
|
|
|
const MART_GOLDENROD_4F
|
|
|
|
const MART_GOLDENROD_5F_1
|
|
|
|
const MART_GOLDENROD_5F_2
|
|
|
|
const MART_GOLDENROD_5F_3
|
|
|
|
const MART_GOLDENROD_5F_4
|
|
|
|
const MART_OLIVINE
|
|
|
|
const MART_ECRUTEAK
|
|
|
|
const MART_MAHOGANY_1
|
|
|
|
const MART_MAHOGANY_2
|
|
|
|
const MART_BLACKTHORN
|
|
|
|
const MART_VIRIDIAN
|
|
|
|
const MART_PEWTER
|
|
|
|
const MART_CERULEAN
|
|
|
|
const MART_LAVENDER
|
|
|
|
const MART_VERMILION
|
|
|
|
const MART_CELADON_2F_1
|
|
|
|
const MART_CELADON_2F_2
|
|
|
|
const MART_CELADON_3F
|
|
|
|
const MART_CELADON_4F
|
|
|
|
const MART_CELADON_5F_1
|
|
|
|
const MART_CELADON_5F_2
|
|
|
|
const MART_FUCHSIA
|
|
|
|
const MART_SAFFRON
|
|
|
|
const MART_MT_MOON
|
|
|
|
const MART_INDIGO_PLATEAU
|
|
|
|
const MART_UNDERGROUND
|
|
|
|
|
|
|
|
|
2018-01-11 07:54:07 +00:00
|
|
|
; PartyMenuQualityPointers indexes (see data/party_menu_qualities.asm)
|
2017-12-26 04:45:54 +00:00
|
|
|
const_def
|
|
|
|
const PARTYMENUACTION_CHOOSE_POKEMON
|
|
|
|
const PARTYMENUACTION_HEALING_ITEM
|
|
|
|
const PARTYMENUACTION_SWITCH
|
|
|
|
const PARTYMENUACTION_TEACH_TMHM
|
|
|
|
const PARTYMENUACTION_MOVE
|
|
|
|
const PARTYMENUACTION_EVO_STONE
|
|
|
|
const PARTYMENUACTION_GIVE_MON
|
|
|
|
const PARTYMENUACTION_GIVE_MON_FEMALE ; unused
|
|
|
|
const PARTYMENUACTION_GIVE_ITEM
|
|
|
|
const PARTYMENUACTION_MOBILE ; mobile
|
|
|
|
; PrintPartyMenuActionText arguments (see engine/party_menu.asm)
|
|
|
|
const_value set $f0
|
|
|
|
const PARTYMENUTEXT_HEAL_PSN
|
|
|
|
const PARTYMENUTEXT_HEAL_BRN
|
|
|
|
const PARTYMENUTEXT_HEAL_FRZ
|
|
|
|
const PARTYMENUTEXT_HEAL_SLP
|
|
|
|
const PARTYMENUTEXT_HEAL_PAR
|
|
|
|
const PARTYMENUTEXT_HEAL_HP
|
|
|
|
const PARTYMENUTEXT_HEAL_ALL
|
|
|
|
const PARTYMENUTEXT_REVIVE
|
|
|
|
const PARTYMENUTEXT_LEVEL_UP
|
|
|
|
const PARTYMENUTEXT_HEAL_CONFUSION
|