1-- OPENTOMB INVENTORY ITEM LIST 2-- by Lwmte, Sep 2014 3 4-------------------------------------------------------------------------------- 5-- Defines global inventory items. 6-- Since different versions of TR feature different weapons yet originating from 7-- the previous one (e. g., Automags originating from Magnums, MP5 originating 8-- from M16, etc.), it unifies similar weapons from various games under ancestor 9-- name. For example, ITEM_MAGNUM count either for magnums, automags, desert 10-- eagle and revolver. 11-------------------------------------------------------------------------------- 12 13ITEM_PISTOL = 10 14ITEM_SHOTGUN = 11 15ITEM_MAGNUM = 12 -- TR2: Automags, TR3/5: Desert eagle, TR4/5: Revolver 16ITEM_UZI = 13 17ITEM_M16 = 14 -- TR3: MP5, TR5: H&K 18ITEM_GRENADEGUN = 15 19ITEM_ROCKETGUN = 16 20ITEM_HARPOONGUN = 17 21ITEM_CROSSBOW = 18 -- TR5: Grappling gun 22 23ITEM_MAGNUM_LASERSIGHT = 1220 -- Extra item index for revolver + lasersight (TR4-5) 24ITEM_CROSSBOW_LASERSIGHT = 1820 -- Extra item index for crossbow + lasersight (TR4) 25ITEM_M16_LASERSIGHT = 1420 -- Extra item index for H&K gun + lasersight (TR5) 26 27ITEM_LASERSIGHT = 20 -- Exist only in TR4-5. 28ITEM_BINOCULARS = 21 -- Exist only in TR4-5. 29ITEM_SILENCER = 22 -- Exist only in TR5, not used. 30 31ITEM_PISTOL_AMMO = 30 32ITEM_SHOTGUN_NORMAL_AMMO = 31 -- Equal to generic shotgun ammo in TR1-3. 33ITEM_SHOTGUN_WIDESHOT_AMMO = 32 34ITEM_MAGNUM_AMMO = 33 35ITEM_UZI_AMMO = 34 36ITEM_M16_AMMO = 35 37ITEM_GRENADEGUN_NORMAL_AMMO = 36 -- Equal to generic grenadegun ammo in TR3. 38ITEM_GRENADEGUN_SUPER_AMMO = 37 39ITEM_GRENADEGUN_FLASH_AMMO = 38 40ITEM_ROCKETGUN_AMMO = 39 -- Equal to generic grenadegun ammo in TR2. 41ITEM_HARPOONGUN_AMMO = 40 42ITEM_CROSSBOW_NORMAL_AMMO = 41 43ITEM_CROSSBOW_POISON_AMMO = 42 44ITEM_CROSSBOW_EXPLOSIVE_AMMO = 43 45 46ITEM_FLARES = 45 47ITEM_SINGLE_FLARE = 46 48ITEM_TORCH = 47 -- Only exists in TR4-5. 49 50ITEM_SMALL_MEDIPACK = 50 51ITEM_LARGE_MEDIPACK = 51 52 53-------------------------------------------------------------------------------- 54-- Defines level-specific inventory items. 55-- Despite the fact that these items change across level versions, they usually 56-- share the same slots under some common names listed in objects.h file. On a 57-- later stage, names are specified for each level via script. Hence, we can 58-- safely redefine these items here and assign names to them via per-level 59-- script file later. 60-------------------------------------------------------------------------------- 61 62ITEM_KEY_1 = 60 63ITEM_KEY_2 = 61 64ITEM_KEY_3 = 62 65ITEM_KEY_4 = 63 -- This is the last key slot for TR1-3. 66ITEM_KEY_5 = 64 67ITEM_KEY_6 = 65 68ITEM_KEY_7 = 66 69ITEM_KEY_8 = 67 70ITEM_KEY_9 = 68 71ITEM_KEY_10 = 69 72ITEM_KEY_11 = 70 73ITEM_KEY_12 = 71 -- This is the last key slot for TR4-5. 74 75ITEM_PUZZLE_1 = 80 76ITEM_PUZZLE_2 = 81 77ITEM_PUZZLE_3 = 82 78ITEM_PUZZLE_4 = 83 -- This is the last puzzle slot for TR1-3. 79ITEM_PUZZLE_5 = 84 80ITEM_PUZZLE_6 = 85 81ITEM_PUZZLE_7 = 86 82ITEM_PUZZLE_8 = 87 83ITEM_PUZZLE_9 = 88 84ITEM_PUZZLE_10 = 89 85ITEM_PUZZLE_11 = 90 86ITEM_PUZZLE_12 = 91 -- This is the last puzzle slot for TR4-5. 87 88-- Pickup items are generic slots for items that are neither keys nor 89-- puzzles. 90 91ITEM_PICKUP_1 = 100 92ITEM_PICKUP_2 = 101 93ITEM_PICKUP_3 = 102 94ITEM_PICKUP_4 = 103 95ITEM_PICKUP_5 = 104 96ITEM_PICKUP_6 = 105 97 98-- Quest items are usually global for each game (e. g., Scion for TR1, 99-- Dagger of Xian for TR2, etc.), but occasionally, same quest item 100-- slot may share several items which were removed from inventory 101-- before. 102 103ITEM_QUEST_1 = 110 104ITEM_QUEST_2 = 111 105ITEM_QUEST_3 = 112 106ITEM_QUEST_4 = 113 107ITEM_QUEST_5 = 114 108ITEM_QUEST_6 = 115 109ITEM_QUEST_7 = 116 110ITEM_QUEST_8 = 117 111 112-- Secret items only exist in TR2 and TR5, plus they appear in first 113-- level of TR4. In TR2, there are three secret items, while in TR4 and 114-- TR5, there is only one secret item slot. 115 116ITEM_SECRET_1 = 120 117ITEM_SECRET_2 = 121 118ITEM_SECRET_3 = 122 119 120-------------------------------------------------------------------------------- 121-- Defines TR4-5-specific items. 122-- TR4 and TR5 introduced a lot of unique pick-up objects, which never existed 123-- in earlier games. Therefore, to ease out conditional checks, we specify all 124-- these items after all other items are specified. 125-------------------------------------------------------------------------------- 126 127-- Combo items only exist in TR4-5, and they produce corresponding 128-- full item when combined. Both TR4-5 contain combo variations only 129-- for first 8 puzzle and key items. 130 131ITEM_PUZZLE_1_COMBO_A = 130 132ITEM_PUZZLE_1_COMBO_B = 131 133ITEM_PUZZLE_2_COMBO_A = 132 134ITEM_PUZZLE_2_COMBO_B = 133 135ITEM_PUZZLE_3_COMBO_A = 134 136ITEM_PUZZLE_3_COMBO_B = 135 137ITEM_PUZZLE_4_COMBO_A = 136 138ITEM_PUZZLE_4_COMBO_B = 137 139ITEM_PUZZLE_5_COMBO_A = 138 140ITEM_PUZZLE_5_COMBO_B = 139 141ITEM_PUZZLE_6_COMBO_A = 140 142ITEM_PUZZLE_6_COMBO_B = 141 143ITEM_PUZZLE_7_COMBO_A = 142 144ITEM_PUZZLE_7_COMBO_B = 143 145ITEM_PUZZLE_8_COMBO_A = 144 146ITEM_PUZZLE_8_COMBO_B = 145 147 148ITEM_KEY_1_COMBO_A = 150 149ITEM_KEY_1_COMBO_B = 151 150ITEM_KEY_2_COMBO_A = 152 151ITEM_KEY_2_COMBO_B = 153 152ITEM_KEY_3_COMBO_A = 154 153ITEM_KEY_3_COMBO_B = 155 154ITEM_KEY_4_COMBO_A = 156 155ITEM_KEY_4_COMBO_B = 157 156ITEM_KEY_5_COMBO_A = 158 157ITEM_KEY_5_COMBO_B = 159 158ITEM_KEY_6_COMBO_A = 160 159ITEM_KEY_6_COMBO_B = 161 160ITEM_KEY_7_COMBO_A = 162 161ITEM_KEY_7_COMBO_B = 163 162ITEM_KEY_8_COMBO_A = 164 163ITEM_KEY_8_COMBO_B = 165 164 165ITEM_PICKUP_1_COMBO_A = 170 166ITEM_PICKUP_1_COMBO_B = 171 167ITEM_PICKUP_2_COMBO_A = 172 168ITEM_PICKUP_2_COMBO_B = 173 169ITEM_PICKUP_3_COMBO_A = 174 170ITEM_PICKUP_3_COMBO_B = 175 171ITEM_PICKUP_4_COMBO_A = 176 172ITEM_PICKUP_4_COMBO_B = 177 173 174-- Waterskin items are kind of combo items, but with very specific 175-- kind of action - you can pour the water from one to another. 176 177ITEM_WATERSKIN_SMALL_0 = 180 178ITEM_WATERSKIN_SMALL_1 = 181 179ITEM_WATERSKIN_SMALL_2 = 182 180ITEM_WATERSKIN_SMALL_3 = 183 181ITEM_WATERSKIN_LARGE_0 = 184 182ITEM_WATERSKIN_LARGE_1 = 185 183ITEM_WATERSKIN_LARGE_2 = 186 184ITEM_WATERSKIN_LARGE_3 = 187 185ITEM_WATERSKIN_LARGE_4 = 188 186ITEM_WATERSKIN_LARGE_5 = 189 187 188-- Crowbar item is a specific pick-up for TR4-5 only. Despite the fact 189-- that it also was present in TR3, it counted there as simple puzzle 190-- piece (and that's the reason why it was used with usual Lara puzzle 191-- insertion animation). 192 193ITEM_CROWBAR = 190 194 195-- Examine items are present only in TR4. 196 197ITEM_EXAMINE_1 = 200 198ITEM_EXAMINE_2 = 201 199ITEM_EXAMINE_3 = 202 200 201-- Chloroform and cloth is only present in TR5. 202 203ITEM_CHLOROFORM = 210 204ITEM_CLOTH = 211 205ITEM_CHLOROFORM_CLOTH = 212 206