2017-12-27 06:29:15 +00:00
|
|
|
; item_attributes struct members (see data/items/attributes.asm)
|
2021-03-04 23:13:33 +00:00
|
|
|
rsreset
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF ITEMATTR_PRICE rw
|
2021-03-04 23:13:33 +00:00
|
|
|
rsset ITEMATTR_PRICE
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF ITEMATTR_PRICE_LO rb
|
|
|
|
DEF ITEMATTR_PRICE_HI rb
|
|
|
|
DEF ITEMATTR_EFFECT rb
|
|
|
|
DEF ITEMATTR_PARAM rb
|
|
|
|
DEF ITEMATTR_PERMISSIONS rb
|
|
|
|
DEF ITEMATTR_POCKET rb
|
|
|
|
DEF ITEMATTR_HELP rb
|
|
|
|
DEF ITEMATTR_STRUCT_LENGTH EQU _RS
|
2017-12-26 04:45:54 +00:00
|
|
|
|
2018-01-11 17:00:01 +00:00
|
|
|
; item types
|
2018-01-31 16:38:45 +00:00
|
|
|
const_def 1
|
2018-01-11 17:00:01 +00:00
|
|
|
const ITEM ; 1
|
|
|
|
const KEY_ITEM ; 2
|
|
|
|
const BALL ; 3
|
|
|
|
const TM_HM ; 4
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF NUM_ITEM_TYPES EQU const_value - 1
|
2017-12-26 04:45:54 +00:00
|
|
|
|
|
|
|
; item menu types
|
2018-04-01 15:01:51 +00:00
|
|
|
; UseItem.dw indexes (see engine/items/pack.asm)
|
|
|
|
; UseRegisteredItem.SwitchTo indexes (see engine/overworld/select_menu.asm)
|
2020-07-08 20:20:15 +00:00
|
|
|
const_def
|
|
|
|
const ITEMMENU_NOUSE ; 0
|
|
|
|
const_skip 3
|
|
|
|
const ITEMMENU_CURRENT ; 4
|
|
|
|
const ITEMMENU_PARTY ; 5
|
|
|
|
const ITEMMENU_CLOSE ; 6
|
2017-12-26 04:45:54 +00:00
|
|
|
|
|
|
|
; item actions
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF CANT_SELECT_F EQU 6
|
|
|
|
DEF CANT_TOSS_F EQU 7
|
2018-01-26 03:19:24 +00:00
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF NO_LIMITS EQU 0
|
|
|
|
DEF CANT_SELECT EQU 1 << CANT_SELECT_F
|
|
|
|
DEF CANT_TOSS EQU 1 << CANT_TOSS_F
|
2017-12-26 04:45:54 +00:00
|
|
|
|
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
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF NUM_POCKETS EQU const_value
|
2018-01-11 17:00:01 +00:00
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF MAX_ITEMS EQU 20
|
|
|
|
DEF MAX_BALLS EQU 12
|
|
|
|
DEF MAX_KEY_ITEMS EQU 25
|
|
|
|
DEF MAX_PC_ITEMS EQU 50
|
2018-01-11 17:00:01 +00:00
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF MAX_ITEM_STACK EQU 99
|
2020-07-13 17:05:05 +00:00
|
|
|
|
2017-12-26 04:45:54 +00:00
|
|
|
; mail
|
2022-09-15 00:49:58 +00:00
|
|
|
DEF MAIL_LINE_LENGTH EQU $10
|
|
|
|
DEF MAIL_MSG_LENGTH EQU $20
|
|
|
|
DEF MAILBOX_CAPACITY EQU 10
|
|
|
|
DEF MAIL_STRUCT_LENGTH EQU $2f ; mailmsg struct
|
|
|
|
DEF MAIL_STRUCT_LENGTH_JP EQU $2a ; mailmsg_jp struct
|
2017-12-26 04:45:54 +00:00
|
|
|
|
2023-03-30 02:51:49 +00:00
|
|
|
; mail languages
|
|
|
|
const_def
|
|
|
|
const MAIL_LANG_ENGLISH
|
|
|
|
const MAIL_LANG_FRENCH
|
|
|
|
const MAIL_LANG_GERMAN
|
|
|
|
const MAIL_LANG_ITALIAN
|
|
|
|
const MAIL_LANG_SPANISH
|
|
|
|
|
2017-12-26 04:45:54 +00:00
|
|
|
; held item effects
|
|
|
|
const_def
|
|
|
|
const HELD_NONE
|
|
|
|
const HELD_BERRY
|
|
|
|
const HELD_2
|
|
|
|
const HELD_LEFTOVERS
|
2020-07-08 20:20:15 +00:00
|
|
|
const_skip
|
2017-12-26 04:45:54 +00:00
|
|
|
const HELD_5
|
|
|
|
const HELD_RESTORE_PP
|
2020-07-08 20:20:15 +00:00
|
|
|
const_skip
|
2017-12-26 04:45:54 +00:00
|
|
|
const HELD_CLEANSE_TAG
|
|
|
|
|
2020-07-08 20:20:15 +00:00
|
|
|
const_next 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
|
|
|
|
|
2020-07-08 20:20:15 +00:00
|
|
|
const_next 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
|
|
|
|
|
2020-07-08 20:20:15 +00:00
|
|
|
const_next 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
|
|
|
|
|
2020-07-08 20:20:15 +00:00
|
|
|
const_next 40
|
|
|
|
const_skip
|
|
|
|
const_skip
|
2017-12-26 04:45:54 +00:00
|
|
|
const HELD_METAL_POWDER
|
|
|
|
|
2020-07-08 20:20:15 +00:00
|
|
|
const_next 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
|
|
|
|
|
2020-07-08 20:20:15 +00:00
|
|
|
const_next 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
|
2020-07-08 20:20:15 +00:00
|
|
|
const_skip
|
2017-12-26 04:45:54 +00:00
|
|
|
const HELD_FOCUS_BAND
|