#ifndef GUARD_CONSTANTS_ITEM_H
#define GUARD_CONSTANTS_ITEM_H

#define NUMBER_OF_ITEM_IDS 0xF0

#define ITEM_TYPE_THROWABLE 0
#define ITEM_TYPE_ROCK 1
#define ITEM_TYPE_BERRY_SEED 2
#define ITEM_TYPE_APPLE_GUMMI 3
#define ITEM_TYPE_HOLD_ITEM 4
#define ITEM_TYPE_TM 5
#define ITEM_TYPE_MONEY 6
#define ITEM_TYPE_MISC 8
#define ITEM_TYPE_ORB 9
#define ITEM_TYPE_LINK_BOX 10
#define ITEM_TYPE_USED_TM 11

#define ITEM_CATEGORY_NOTHING 0
#define ITEM_CATEGORY_THROWABLE 1
#define ITEM_CATEGORY_ROCKS 2
#define ITEM_CATEGORY_RIBBONS 3
#define ITEM_CATEGORY_FOOD 4
#define ITEM_CATEGORY_HEALING 5
#define ITEM_CATEGORY_CHESTNUT 6
#define ITEM_CATEGORY_MONEY_WISH_STONE 7
#define ITEM_CATEGORY_MISC 8
#define ITEM_CATEGORY_TM 9
#define ITEM_CATEGORY_LINK_BOX 10
#define ITEM_CATEGORY_SPECS 11
#define ITEM_CATEGORY_SCARFS 12
#define ITEM_CATEGORY_ORBS 13

// see https://bulbapedia.bulbagarden.net/wiki/List_of_items_by_index_number_(Rescue_Team)
#define ITEM_ID_NOTHING 0x0
#define ITEM_ID_STICK 0x1
#define ITEM_ID_IRON_THORN 0x2
#define ITEM_ID_SILVER_SPIKE 0x3
#define ITEM_ID_GOLD_FANG 0x4
#define ITEM_ID_CACNEA_SPIKE 0x5
#define ITEM_ID_CORSOLA_TWIG 0x6
#define ITEM_ID_GRAVELEROCK 0x7
#define ITEM_ID_GEO_PEBBLE 0x8
#define ITEM_ID_MOBILE_SCARF 0x9
#define ITEM_ID_HEAL_RIBBON 0xA
#define ITEM_ID_TWIST_BAND 0xB
#define ITEM_ID_SCOPE_LENS 0xC
#define ITEM_ID_PATSY_BAND 0xD
#define ITEM_ID_NOSTICK_CAP 0xE
#define ITEM_ID_PIERCE_BAND 0xF
#define ITEM_ID_JOY_RIBBON 0x10
#define ITEM_ID_X_RAY_SPECS 0x11
#define ITEM_ID_PERSIM_BAND 0x12
#define ITEM_ID_POWER_BAND 0x13
#define ITEM_ID_PECHA_SCARF 0x14
#define ITEM_ID_INSOMNISCOPE 0x15
#define ITEM_ID_WARP_SCARF 0x16
#define ITEM_ID_TIGHT_BELT 0x17
#define ITEM_ID_SNEAK_SCARF 0x18
#define ITEM_ID_GOLD_RIBBON 0x19
#define ITEM_ID_GOGGLE_SPECS 0x1A
#define ITEM_ID_DIET_RIBBON 0x1B
#define ITEM_ID_TRAP_SCARF 0x1C
#define ITEM_ID_RACKET_BAND 0x1D
#define ITEM_ID_DEF_SCARF 0x1E
#define ITEM_ID_STAMINA_BAND 0x1F
#define ITEM_ID_PLAIN_RIBBON 0x20
#define ITEM_ID_SPECIAL_BAND 0x21
#define ITEM_ID_ZINC_BAND 0x22
#define ITEM_ID_DETECT_BAND 0x23
#define ITEM_ID_ALERT_SPECS 0x24
#define ITEM_ID_DODGE_SCARF 0x25
#define ITEM_ID_BOUNCE_BAND 0x26
#define ITEM_ID_CURVE_BAND 0x27
#define ITEM_ID_WHIFF_SPECS 0x28
#define ITEM_ID_NO_AIM_SCOPE 0x29
#define ITEM_ID_LOCKON_SPECS 0x2A
#define ITEM_ID_MUNCH_BELT 0x2B
#define ITEM_ID_PASS_SCARF 0x2C
#define ITEM_ID_WEATHER_BAND 0x2D
#define ITEM_ID_FRIEND_BOW 0x2E
#define ITEM_ID_BEAUTY_SCARF 0x2F
#define ITEM_ID_SUN_RIBBON 0x30
#define ITEM_ID_LUNAR_RIBBON 0x31
#define ITEM_ID_RING_D 0x32
#define ITEM_ID_RING_E 0x33
#define ITEM_ID_RING_F 0x34
#define ITEM_ID_HEAL_SEED 0x35
#define ITEM_ID_WISH_STONE 0x36
#define ITEM_ID_ORAN_BERRY 0x37
#define ITEM_ID_SITRUS_BERRY 0x38
#define ITEM_ID_EYEDROP_SEED 0x39
#define ITEM_ID_REVIVER_SEED 0x3A
#define ITEM_ID_BLINKER_SEED 0x3B
#define ITEM_ID_DOOM_SEED 0x3C
#define ITEM_ID_ALLURE_SEED 0x3D
#define ITEM_ID_LIFE_SEED 0x3E
#define ITEM_ID_RAWST_BERRY 0x3F
#define ITEM_ID_HUNGER_SEED 0x40
#define ITEM_ID_QUICK_SEED 0x41
#define ITEM_ID_PECHA_BERRY 0x42
#define ITEM_ID_CHERI_BERRY 0x43
#define ITEM_ID_TOTTER_SEED 0x44
#define ITEM_ID_SLEEP_SEED 0x45
#define ITEM_ID_PLAIN_SEED 0x46
#define ITEM_ID_WARP_SEED 0x47
#define ITEM_ID_BLAST_SEED 0x48
#define ITEM_ID_GINSENG 0x49
#define ITEM_ID_JOY_SEED 0x4A
#define ITEM_ID_CHESTO_BERRY 0x4B
#define ITEM_ID_STUN_SEED 0x4C
#define ITEM_ID_MAX_ELIXIR 0x4D
#define ITEM_ID_PROTEIN 0x4E
#define ITEM_ID_CALCIUM 0x4F
#define ITEM_ID_IRON 0x50
#define ITEM_ID_ZINC 0x51
#define ITEM_ID_APPLE 0x52
#define ITEM_ID_BIG_APPLE 0x53
#define ITEM_ID_GRIMY_FOOD 0x54
#define ITEM_ID_HUGE_APPLE 0x55
#define ITEM_ID_WHITE_GUMMI 0x56
#define ITEM_ID_RED_GUMMI 0x57
#define ITEM_ID_BLUE_GUMMI 0x58
#define ITEM_ID_GRASS_GUMMI 0x59
#define ITEM_ID_YELLOW_GUMMI 0x5A
#define ITEM_ID_CLEAR_GUMMI 0x5B
#define ITEM_ID_ORANGE_GUMMI 0x5C
#define ITEM_ID_PINK_GUMMI 0x5D
#define ITEM_ID_BROWN_GUMMI 0x5E
#define ITEM_ID_SKY_GUMMI 0x5F
#define ITEM_ID_GOLD_GUMMI 0x60
#define ITEM_ID_GREEN_GUMMI 0x61
#define ITEM_ID_GRAY_GUMMI 0x62
#define ITEM_ID_PURPLE_GUMMI 0x63
#define ITEM_ID_ROYAL_GUMMI 0x64
#define ITEM_ID_BLACK_GUMMI 0x65
#define ITEM_ID_SILVER_GUMMI 0x66
#define ITEM_ID_BANANA 0x67
#define ITEM_ID_CHESTNUT 0x68
#define ITEM_ID_POKE 0x69   // 105 (0x69)
#define ITEM_ID_UPGRADE 0x6A
#define ITEM_ID_KINGS_ROCK 0x6B
#define ITEM_ID_THUNDERSTONE 0x6C
#define ITEM_ID_DEEPSEASCALE 0x6D
#define ITEM_ID_DEEPSEATOOTH 0x6E
#define ITEM_ID_SUN_STONE 0x6F
#define ITEM_ID_MOON_STONE 0x70
#define ITEM_ID_FIRE_STONE 0x71
#define ITEM_ID_WATER_STONE 0x72
#define ITEM_ID_METAL_COAT 0x73
#define ITEM_ID_LEAF_STONE 0x74
#define ITEM_ID_DRAGON_SCALE 0x75
#define ITEM_ID_LINK_CABLE 0x76
#define ITEM_ID_ICE_PART 0x77
#define ITEM_ID_STEEL_PART 0x78
#define ITEM_ID_ROCK_PART 0x79
#define ITEM_ID_MUSIC_BOX 0x7A
#define ITEM_ID_KEY 0x7B
#define ITEM_ID_USED_TM 0x7C
#define ITEM_ID_FOCUS_PUNCH 0x7D
#define ITEM_ID_DRAGON_CLAW 0x7E
#define ITEM_ID_WATER_PULSE 0x7F
#define ITEM_ID_CALM_MIND 0x80
#define ITEM_ID_ROAR 0x81
#define ITEM_ID_TOXIC 0x82
#define ITEM_ID_HAIL 0x83
#define ITEM_ID_BULK_UP 0x84
#define ITEM_ID_BULLET_SEED 0x85
#define ITEM_ID_HIDDEN_POWER 0x86
#define ITEM_ID_SUNNY_DAY 0x87
#define ITEM_ID_TAUNT 0x88
#define ITEM_ID_ICE_BEAM 0x89
#define ITEM_ID_BLIZZARD 0x8A
#define ITEM_ID_HYPER_BEAM 0x8B
#define ITEM_ID_LIGHT_SCREEN 0x8C
#define ITEM_ID_PROTECT 0x8D
#define ITEM_ID_RAIN_DANCE 0x8E
#define ITEM_ID_GIGA_DRAIN 0x8F
#define ITEM_ID_SAFEGUARD 0x90
#define ITEM_ID_FRUSTRATION 0x91
#define ITEM_ID_SOLARBEAM 0x92
#define ITEM_ID_IRON_TAIL 0x93
#define ITEM_ID_THUNDERBOLT 0x94
#define ITEM_ID_THUNDER 0x95
#define ITEM_ID_EARTHQUAKE 0x96
#define ITEM_ID_RETURN 0x97
#define ITEM_ID_DIG 0x98
#define ITEM_ID_PSYCHIC 0x99
#define ITEM_ID_SHADOW_BALL 0x9A
#define ITEM_ID_BRICK_BREAK 0x9B
#define ITEM_ID_DOUBLE_TEAM 0x9C
#define ITEM_ID_REFLECT 0x9D
#define ITEM_ID_SHOCK_WAVE 0x9E
#define ITEM_ID_FLAMETHROWER 0x9F
#define ITEM_ID_SLUDGE_BOMB 0xA0
#define ITEM_ID_SANDSTORM 0xA1
#define ITEM_ID_FIRE_BLAST 0xA2
#define ITEM_ID_ROCK_TOMB 0xA3
#define ITEM_ID_AERIAL_ACE 0xA4
#define ITEM_ID_TORMENT 0xA5
#define ITEM_ID_FACADE 0xA6
#define ITEM_ID_SECRET_POWER 0xA7
#define ITEM_ID_REST 0xA8
#define ITEM_ID_ATTRACT 0xA9
#define ITEM_ID_THIEF 0xAA
#define ITEM_ID_STEEL_WING 0xAB
#define ITEM_ID_SKILL_SWAP 0xAC
#define ITEM_ID_SNATCH 0xAD
#define ITEM_ID_OVERHEAT 0xAE
#define ITEM_ID_WIDE_SLASH 0xAF
#define ITEM_ID_EXCAVATE 0xB0
#define ITEM_ID_SPIN_SLASH 0xB1
#define ITEM_ID_SEE_TRAP_ORB 0xB2
#define ITEM_ID_MUG_ORB 0xB3
#define ITEM_ID_REBOUND_ORB 0xB4
#define ITEM_ID_LOB_ORB 0xB5
#define ITEM_ID_SWITCHER_ORB 0xB6
#define ITEM_ID_BLOWBACK_ORB 0xB7
#define ITEM_ID_WARP_ORB 0xB8
#define ITEM_ID_TRANSFER_ORB 0xB9
#define ITEM_ID_SLOW_ORB 0xBA
#define ITEM_ID_QUICK_ORB 0xBB
#define ITEM_ID_LUMINOUS_ORB 0xBC
#define ITEM_ID_PETRIFY_ORB 0xBD
#define ITEM_ID_STAYAWAY_ORB 0xBE
#define ITEM_ID_POUNCE_ORB 0xBF
#define ITEM_ID_TRAWL_ORB 0xC0
#define ITEM_ID_CLEANSE_ORB 0xC1
#define ITEM_ID_OBSERVER_ORB 0xC2
#define ITEM_ID_DECOY_ORB 0xC3
#define ITEM_ID_SLUMBER_ORB 0xC4
#define ITEM_ID_TOTTER_ORB 0xC5
#define ITEM_ID_TWO_EDGE_ORB 0xC6
#define ITEM_ID_SILENCE_ORB 0xC7
#define ITEM_ID_ESCAPE_ORB 0xC8
#define ITEM_ID_SCANNER_ORB 0xC9
#define ITEM_ID_RADAR_ORB 0xCA
#define ITEM_ID_DROUGHT_ORB 0xCB
#define ITEM_ID_TRAPBUST_ORB 0xCC
#define ITEM_ID_ROLLCALL_ORB 0xCD
#define ITEM_ID_INVISIFY_ORB 0xCE
#define ITEM_ID_ONE_SHOT_ORB 0xCF
#define ITEM_ID_IDENTIFY_ORB 0xD0
#define ITEM_ID_VACUUM_CUT 0xD1
#define ITEM_ID_REVIVER_ORB 0xD2
#define ITEM_ID_SHOCKER_ORB 0xD3
#define ITEM_ID_SIZEBUST_ORB 0xD4
#define ITEM_ID_ONE_ROOM_ORB 0xD5
#define ITEM_ID_FILL_IN_ORB 0xD6
#define ITEM_ID_TRAPPER_ORB 0xD7
#define ITEM_ID_POSSESS_ORB 0xD8
#define ITEM_ID_ITEMIZER_ORB 0xD9
#define ITEM_ID_HURL_ORB 0xDA
#define ITEM_ID_MOBILE_ORB 0xDB
#define ITEM_ID_TOSS_ORB 0xDC
#define ITEM_ID_STAIRS_ORB 0xDD
#define ITEM_ID_LONGTOSS_ORB 0xDE
#define ITEM_ID_PIERCE_ORB 0xDF
#define ITEM_ID_CUT 0xE0
#define ITEM_ID_FLY 0xE1
#define ITEM_ID_SURF 0xE2
#define ITEM_ID_STRENGTH 0xE3
#define ITEM_ID_FLASH 0xE4
#define ITEM_ID_ROCK_SMASH 0xE5
#define ITEM_ID_WATERFALL 0xE6
#define ITEM_ID_DIVE 0xE7
#define ITEM_ID_LINK_BOX 0xE8
#define ITEM_ID_SWITCH_BOX 0xE9
#define ITEM_ID_WEAVILE_FIG 0xEA
#define ITEM_ID_MIME_JR_FIG 0xEB
#define ITEM_ID_BEATUP_ORB 0xEC
#define ITEM_ID_G_MACHINE_6 0xED
#define ITEM_ID_G_MACHINE_7 0xEE
#define ITEM_ID_G_MACHINE_8 0xEF

#endif
