	const MASTER_BALL  ; $01
	const ULTRA_BALL   ; $02
	const BRIGHTPOWDER ; $03
	const GREAT_BALL   ; $04
	const POKE_BALL    ; $05
	const COAL         ; $06
	const BICYCLE      ; $07
	const MOON_STONE   ; $08
	const ANTIDOTE     ; $09
	const BURN_HEAL    ; $0A
	const ICE_HEAL     ; $0B
	const AWAKENING    ; $0C
	const PARLYZ_HEAL  ; $0D
	const FULL_RESTORE ; $0E
	const MAX_POTION   ; $0F
	const HYPER_POTION ; $10
	const SUPER_POTION ; $11
	const POTION       ; $12
	const ESCAPE_ROPE  ; $13
	const REPEL        ; $14
	const MAX_ELIXIR   ; $15
	const FIRE_STONE   ; $16
	const THUNDERSTONE ; $17
	const WATER_STONE  ; $18
	const POISON_GUARD ; $19
	const HP_UP        ; $1A
	const PROTEIN      ; $1B
	const IRON         ; $1C
	const CARBOS       ; $1D
	const LUCKY_PUNCH  ; $1E
	const CALCIUM      ; $1F
	const RARE_CANDY   ; $20
	const X_ACCURACY   ; $21
	const LEAF_STONE   ; $22
	const METAL_POWDER ; $23
	const NUGGET       ; $24
	const POKE_DOLL    ; $25
	const FULL_HEAL    ; $26
	const REVIVE       ; $27
	const MAX_REVIVE   ; $28
	const GUARD_SPEC   ; $29
	const SUPER_REPEL  ; $2A
	const MAX_REPEL    ; $2B
	const DIRE_HIT     ; $2C
	const BURN_GUARD   ; $2D
	const FRESH_WATER  ; $2E
	const SODA_POP     ; $2F
	const LEMONADE     ; $30
	const X_ATTACK     ; $31
	const FREEZE_GUARD ; $32
	const X_DEFEND     ; $33
	const X_SPEED      ; $34
	const X_SPECIAL    ; $35
	const COIN_CASE    ; $36
	const ITEMFINDER   ; $37
	const HEART_SCALE  ; $38
	const EXP_SHARE    ; $39
	const OLD_ROD      ; $3A
	const GOOD_ROD     ; $3B
	const SILVER_LEAF  ; $3C
	const SUPER_ROD    ; $3D
	const PP_UP        ; $3E
	const ETHER        ; $3F
	const MAX_ETHER    ; $40
	const ELIXIR       ; $41
	const CAGE_CARD_1  ; $42
	const RIJON_PASS   ; $43
	const FERRY_TICKET ; $44
	const CAGE_CARD_2  ; $45
	const CAGE_CARD_3  ; $46
	const CAGE_CARD_4  ; $47
	const MOOMOO_MILK  ; $48
	const QUICK_CLAW   ; $49
	const PECHA_BERRY  ; $4A
	const GOLD_LEAF    ; $4B
	const SOFT_SAND    ; $4C
	const SHARP_BEAK   ; $4D
	const CHERI_BERRY  ; $4E
	const ASPEAR_BERRY ; $4F
	const RAWST_BERRY  ; $50
	const POISON_BARB  ; $51
	const KINGS_ROCK   ; $52
	const PERSIM_BERRY ; $53
	const CHESTO_BERRY ; $54
	const RED_APRICORN ; $55
	const TINYMUSHROOM ; $56
	const BIG_MUSHROOM ; $57
	const SILVERPOWDER ; $58
	const BLU_APRICORN ; $59
	const SLEEP_GUARD  ; $5A
	const AMULET_COIN  ; $5B
	const YLW_APRICORN ; $5C
	const GRN_APRICORN ; $5D
	const CLEANSE_TAG  ; $5E
	const MYSTIC_WATER ; $5F
	const TWISTEDSPOON ; $60
	const WHT_APRICORN ; $61
	const BLACKBELT    ; $62
	const BLK_APRICORN ; $63
	const PRZ_GUARD    ; $64
	const PNK_APRICORN ; $65
	const BLACKGLASSES ; $66
	const SLOWPOKETAIL ; $67
	const PINK_BOW     ; $68
	const STICK        ; $69
	const SMOKE_BALL   ; $6A
	const NEVERMELTICE ; $6B
	const MAGNET       ; $6C
	const LUM_BERRY    ; $6D
	const PEARL        ; $6E
	const BIG_PEARL    ; $6F
	const EVERSTONE    ; $70
	const SPELL_TAG    ; $71
	const SILVER_EGG   ; $72
	const CRYSTAL_EGG  ; $73
	const RUBY_EGG     ; $74
	const MIRACLE_SEED ; $75
	const GOLD_EGG     ; $76
	const FOCUS_BAND   ; $77
	const CONFUSEGUARD ; $78
	const ENERGYPOWDER ; $79
	const ENERGY_ROOT  ; $7A
	const HEAL_POWDER  ; $7B
	const REVIVAL_HERB ; $7C
	const HARD_STONE   ; $7D
	const LUCKY_EGG    ; $7E
	const EMERALD_EGG  ; $7F
	const PRISM_KEY    ; $80
	const RED_ORB      ; $81
	const GREEN_ORB    ; $82
	const STARDUST     ; $83
	const STAR_PIECE   ; $84
	const MANSION_KEY  ; $85
	const BLUE_ORB     ; $86
	const SAPPHIRE_EGG ; $87
	const CURO_SHARD   ; $88
	const BEDROOM_KEY  ; $89
	const CHARCOAL     ; $8A
	const BERRY_JUICE  ; $8B
	const SCOPE_LENS   ; $8C
	const MEGAPHONE    ; $8D
	const CIGARETTE    ; $8E
	const METAL_COAT   ; $8F
	const DRAGON_FANG  ; $90
	const CAGE_CARD_5  ; $91
	const LEFTOVERS    ; $92
	const CAGE_CARD_6  ; $93
	const EAGULOU_BALL ; $94
	const GIANT_ROCK   ; $95
	const LEPPA_BERRY  ; $96
	const DRAGON_SCALE ; $97
	const BERSERK_GENE ; $98
	const BLUE_FLUTE   ; $99
	const X_SP_DEF     ; $9A
	const CAGE_KEY     ; $9B
	const SACRED_ASH   ; $9C
	const REAPER_CLOTH ; $9D
	const GOLD_TOKEN   ; $9E
	const ORE_CASE     ; $9F
	const DIVE_BALL    ; $A0
	const FAST_BALL    ; $A1
	const SMELTER      ; $A2
	const LIGHT_BALL   ; $A3
	const FRIEND_BALL  ; $A4
	const EVIOLITE     ; $A5
	const MACHO_BRACE  ; $A6
	const BURNT_BERRY  ; $A7
	const HYPER_SHARE  ; $A8
	const SUN_STONE    ; $A9
	const POLKADOT_BOW ; $AA
	const DYNAMITE     ; $AB
	const UP_GRADE     ; $AC
	const ORAN_BERRY   ; $AD
	const SITRUS_BERRY ; $AE
	const DAWN_STONE   ; $AF
	const GOLD_DUST    ; $B0
	const PARK_BALL    ; $B1
	const IRON_PICKAXE ; $B2
	const SHINY_STONE  ; $B3
	const BRICK_PIECE  ; $B4
	const RED_FLUTE    ; $B5
	const YELLOW_FLUTE ; $B6
	const BLACK_FLUTE  ; $B7
	const WHITE_FLUTE  ; $B8
	const GREEN_FLUTE  ; $B9
	const ORANGE_FLUTE ; $BA
	const SOOT_SACK    ; $BB
	const PURPLE_FLUTE ; $BC
	const SHOP_TICKET  ; $BD
	const MINING_PICK  ; $BE
	const TM_CASE      ; $BF
	const SAFE_GOGGLES ; $C0
	const RED_JEWEL    ; $C1
	const BLUE_JEWEL   ; $C2
	const BROWN_JEWEL  ; $C3
	const WHITE_JEWEL  ; $C4
	const PRISM_JEWEL  ; $C5
	const BIG_NUGGET   ; $C6
	const HEAT_ROCK    ; $C7
	const DAMP_ROCK    ; $C8
	const SMOOTH_ROCK  ; $C9
	const ICY_ROCK     ; $CA
	const LIGHT_CLAY   ; $CB
	const SHELL_BELL   ; $CC
	const KEG_OF_BEER  ; $CD
	const FIRE_RING    ; $CE
	const GRASS_RING   ; $CF
	const WATER_RING   ; $D0
	const THUNDER_RING ; $D1
	const SHINY_RING   ; $D2
	const DAWN_RING    ; $D3
	const DUSK_RING    ; $D4
	const MOON_RING    ; $D5
	const DUSK_STONE   ; $D6
	const EXPERT_BELT  ; $D7
	const TRADE_STONE  ; $D8
	const SHINY_BALL   ; $D9
	const ORE          ; $DA
	const BURGER       ; $DB
	const MUSCLE_BAND  ; $DC
	const FRIES        ; $DD
	const FOSSIL_CASE  ; $DE
	const SILK         ; $DF
	const MAGMARIZER   ; $E0
	const ELECTIRIZER  ; $E1
	const PRISM_SCALE  ; $E2
	const DUBIOUS_DISC ; $E3
	const RAZOR_CLAW   ; $E4
	const RAZOR_FANG   ; $E5
	const PROTECTOR    ; $E6
	const ORNGAPRICORN ; $E7
	const CYANAPRICORN ; $E8
	const GREYAPRICORN ; $E9
	const PRPLAPRICORN ; $EA
	const SHNYAPRICORN ; $EB
	const WISE_GLASSES ; $EC
	const MYSTERY_TCKT ; $ED
	const ORPHAN_CARD  ; $EE
	const QR_READER    ; $EF
	const GAS_MASK	   ; $F0
	const FAKE_ID      ; $F1
	const FLUFFY_COAT  ; $F2
	const ROOF_CARD    ; $F3
	const LAB_CARD	   ; $F4
	const GRAPPLE_HOOK ; $F5
	const QUICK_BALL   ; $F6
	const DUSK_BALL    ; $F7
	const REPEAT_BALL  ; $F8
	const TIMER_BALL   ; $F9
	const MAGNET_PASS  ; $FA
	const TIME_MACHINE ; $FB
	const TOKENTRACKER ; $FC
	const POWER_HERB   ; $FD
	const ITEM_FE      ; $FE
	const SPECIAL_ITEM
	
FOSSIL EQU $FE

const_value set $1 ; TM01 == 1
	add_tm DYNAMICPUNCH
	add_tm HEADBUTT
	add_tm CURSE
	add_tm ROLLOUT
	add_tm NIGHT_SHADE
	add_tm TOXIC
	add_tm ZAP_CANNON
	add_tm FLASH ; 8
	add_tm HAIL
	add_tm HIDDEN_POWER
	add_tm SUNNY_DAY
	add_tm SWEET_SCENT
	add_tm SEED_BOMB
	add_tm BLIZZARD
	add_tm HYPER_BEAM
	add_tm ICY_WIND ; 16
	add_tm PROTECT
	add_tm RAIN_DANCE
	add_tm GIGA_DRAIN
	add_tm ENDURE
	add_tm FRUSTRATION
	add_tm SOLARBEAM
	add_tm IRON_TAIL
	add_tm DRAGONBREATH ; 24
	add_tm THUNDER
	add_tm EARTHQUAKE
	add_tm RETURN
	add_tm DIG
	add_tm PSYCHIC
	add_tm SHADOW_BALL
	add_tm MUD_SLAP
	add_tm DOUBLE_TEAM ; 32
	add_tm ICE_PUNCH
	add_tm SWAGGER
	add_tm SLEEP_TALK
	add_tm SLUDGE_BOMB
	add_tm SANDSTORM
	add_tm FIRE_BLAST
	add_tm SWIFT
	add_tm DEFENSE_CURL ; 40
	add_tm THUNDERPUNCH
	add_tm DREAM_EATER
	add_tm FLASH_CANNON
	add_tm REST
	add_tm ATTRACT
	add_tm THIEF
	add_tm STEEL_WING
	add_tm FIRE_PUNCH ; 48
	add_tm FURY_CUTTER
	add_tm POISON_JAB
	add_tm DARK_PULSE
	add_tm SWORDS_DANCE
	add_tm WHIRLWIND
	add_tm ENERGY_BALL
	add_tm COUNTER
	add_tm SEISMIC_TOSS ; 56
	add_tm RAZOR_LEAF
	add_tm IRON_HEAD
	add_tm AERIAL_ACE
	add_tm REFLECT
	add_tm METRONOME
	add_tm SKY_ATTACK
	add_tm THUNDER_WAVE
	add_tm DOUBLE_EDGE ; 64
	add_tm EXPLOSION
	add_tm ROCK_SLIDE
	add_tm TRI_ATTACK
	add_tm SUBSTITUTE
	add_tm SAFEGUARD
	add_tm DRAGON_CLAW
	add_tm SHADOW_CLAW
	add_tm BULK_UP ; 72
	add_tm COSMIC_POWER
	add_tm CALM_MIND
	add_tm DIZZY_PUNCH
	add_tm ANCIENTPOWER
	add_tm BODY_SLAM
	add_tm NOISE_PULSE
	add_tm HYPER_VOICE
	add_tm STORM_FRONT ; 80
	add_tm DUST_DEVIL
	add_tm WILL_O_WISP
	add_tm LIGHT_SCREEN
	add_tm THUNDERBOLT
	add_tm FLAMETHROWER
	add_tm ICE_BEAM
	add_tm MEGAHORN
	add_tm SIGNAL_BEAM ; 88
	add_tm FREEZE_BURN
	add_tm PRISM_SPRAY
	add_tm FINAL_CHANCE
	add_tm MUSTARD_GAS
	add_tm BOIL
	add_tm CRYSTAL_BOLT
	add_tm STEEL_EATER
	add_tm VOID_SPHERE ; 96
NUM_TMS = const_value +- 1
	add_hm CUT
	add_hm FLY
	add_hm SURF
	add_hm STRENGTH
	add_hm ROCK_SMASH
NUM_HMS = const_value - HM01

ITEM_FROM_MEM EQU $ff


; pockets
ITEM     EQU 1
KEY_ITEM EQU 2
BALL     EQU 3
TM_HM    EQU 4

; item actions
CANT_SELECT EQU 1 << 6
CANT_TOSS   EQU 1 << 7


; held item effects
	const_def

	const HELD_NONE
	const HELD_BERRY
	const HELD_POWER_HERB
	const HELD_LEFTOVERS
	const skip
	const skip
	const HELD_RESTORE_PP
	const skip
	const HELD_CLEANSE_TAG

const_value SET 10
	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

const_value SET 20
	const HELD_PREVENT_POISON
	const HELD_PREVENT_BURN
	const HELD_PREVENT_FREEZE
	const HELD_PREVENT_SLEEP
	const HELD_PREVENT_PARALYZE
	const HELD_PREVENT_CONFUSE

const_value SET 30
	const skip
	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_value SET 40
	const skip
	const skip
	const HELD_METAL_POWDER

const_value SET 50
	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
	const HELD_FAIRY_BOOST
	const HELD_GAS_BOOST
	const HELD_SOUND_BOOST
	const HELD_PHYSICAL_BOOST
	const HELD_SPECIAL_BOOST
	const HELD_SE_BOOST

const_value SET 70
	const HELD_CATCH_CHANCE
	const skip
	const HELD_ESCAPE
	const HELD_CRITICAL_UP
	const HELD_QUICK_CLAW
	const HELD_FLINCH
	const HELD_AMULET_COIN
	const HELD_BRIGHTPOWDER
	const skip
	const HELD_FOCUS_BAND
	const HELD_SAFE_GOGGLES
	const HELD_HEAT_ROCK
	const HELD_DAMP_ROCK
	const HELD_SMOOTH_ROCK
	const HELD_ICY_ROCK
	const HELD_LIGHT_CLAY
	const HELD_SHELL_BELL

	const_def
	const ITEMATTR_PRICE
	const ITEMATTR_PRICE_HI
	const ITEMATTR_EFFECT
	const ITEMATTR_PARAM
	const ITEMATTR_PERMISSIONS
	const ITEMATTR_POCKET
	const ITEMATTR_HELP
NUM_ITEMATTRS EQU const_value

ITEMMENU_NOUSE              EQU 0
ITEMMENU_OVERWORLD          EQU 2
ITEMMENU_RELOAD             EQU 3
ITEMMENU_CURRENT            EQU 4
ITEMMENU_PARTY              EQU 5
ITEMMENU_CLOSE              EQU 6

; wPartyMenuActionText
	const_def
	const skip
	const PARTYMENUACTION_HEALING_ITEM
	const skip
	const PARTYMENUACTION_TEACH_TM
	const skip
	const PARTYMENUACTION_EVO_STONE
	const skip
	const skip
	const skip
	const PARTYMENUACTION_MOBILE

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

FOSSIL_CASE_SIZE EQU 30

	const_def
	const ORE_ZINC
	const ORE_COPPER
	const ORE_LEAD
	const ORE_IRON
	const ORE_BRONZE
	const ORE_SILVER
	const ORE_RUTHENIUM
	const ORE_GOLD
	const ORE_COBALT
	const ORE_PRISM
	
NUM_ORES EQU const_value

	const IRONPICKMODE_ONLYIRONPICK
	const IRONPICKMODE_SMART
	const IRONPICKMODE_ONLYNORMALPICKS