Mercurial > mm7
comparison Items.h @ 398:7189d0bddf07
Слияние
author | Ritor1 |
---|---|
date | Sat, 23 Feb 2013 02:12:55 +0600 |
parents | 243418228760 |
children | b509ef97807a |
comparison
equal
deleted
inserted
replaced
397:5fd328336048 | 398:7189d0bddf07 |
---|---|
13 ITEM_TEMP_BONUS = 0x8, | 13 ITEM_TEMP_BONUS = 0x8, |
14 ITEM_STOLEN = 0x100, | 14 ITEM_STOLEN = 0x100, |
15 ITEM_ENCHANTED = 0x200, | 15 ITEM_ENCHANTED = 0x200, |
16 }; | 16 }; |
17 | 17 |
18 | |
19 enum ITEM_MATERIAL | |
20 { | |
21 MATERIAL_COMMON =0, | |
22 MATERIAL_ARTEFACT = 1, | |
23 MATERIAL_RELIC = 2, | |
24 MATERIAL_SPECIAL = 3 | |
25 }; | |
18 | 26 |
19 /* 330 */ | 27 /* 330 */ |
20 enum ITEM_TYPE | 28 enum ITEM_TYPE |
21 { | 29 { |
22 ITEM_LONGSWORD_1 = 0x1, | 30 ITEM_LONGSWORD_1 = 0x1, |
56 ITEM_SPELLBOOK_LIGHT_SUN_BURST = 0x1E6, | 64 ITEM_SPELLBOOK_LIGHT_SUN_BURST = 0x1E6, |
57 ITEM_SPELLBOOK_LIGHT_DIVINE_INTERVENTION = 0x1E7, | 65 ITEM_SPELLBOOK_LIGHT_DIVINE_INTERVENTION = 0x1E7, |
58 ITEM_ARTIFACT_PUCK = 0x1F4, | 66 ITEM_ARTIFACT_PUCK = 0x1F4, |
59 ITEM_ARTIFACT_SPLITTER = 506,//1FA | 67 ITEM_ARTIFACT_SPLITTER = 506,//1FA |
60 ITEM_RELIC_MEKORIGS_HAMMER = 0x210, | 68 ITEM_RELIC_MEKORIGS_HAMMER = 0x210, |
69 ITEM_LICH_JAR = 601 | |
61 }; | 70 }; |
62 | 71 |
63 /* 331 */ | 72 /* 331 */ |
64 enum ITEM_EQUIP_TYPE | 73 enum ITEM_EQUIP_TYPE |
65 { | 74 { |
69 EQUIP_ARMOUR = 3, | 78 EQUIP_ARMOUR = 3, |
70 EQUIP_SHIELD = 4, | 79 EQUIP_SHIELD = 4, |
71 EQUIP_HELMET = 5, | 80 EQUIP_HELMET = 5, |
72 EQUIP_BELT = 6, | 81 EQUIP_BELT = 6, |
73 EQUIP_CLOAK = 7, | 82 EQUIP_CLOAK = 7, |
74 EQUIP_GAUNTLETS = 0x8, | 83 EQUIP_GAUNTLETS = 8, |
75 EQUIP_BOOTS = 0x9, | 84 EQUIP_BOOTS = 9, |
76 EQUIP_RING = 10, | 85 EQUIP_RING = 10, |
77 EQUIP_AMULET = 11, | 86 EQUIP_AMULET = 11, |
78 EQUIP_WAND = 12, | 87 EQUIP_WAND = 12, |
79 EQUIP_REAGENT = 13, | 88 EQUIP_REAGENT = 13, |
80 EQUIP_POTION = 14, | 89 EQUIP_POTION = 14, |
81 EQUIP_F = 0xF, | 90 EQUIP_SPELL_SCROLL = 15, |
82 EQUIP_BOOK = 16, | 91 EQUIP_BOOK = 16, |
83 EQUIP_11 = 17, | 92 EQUIP_MESSAGE_SCROLL = 17, |
84 EQUIP_GOLD = 18, | 93 EQUIP_GOLD = 18, |
85 EQUIP_GEM = 19, | 94 EQUIP_GEM = 19, |
86 EQUIP_NONE = 20 | 95 EQUIP_NONE = 20 |
87 }; | 96 }; |
88 | 97 |
89 | 98 |
90 | 99 |
91 /* 64 */ | 100 /* 64 */ |
112 int _439DF3_get_additional_damage(int *a2, int *a3); | 121 int _439DF3_get_additional_damage(int *a2, int *a3); |
113 | 122 |
114 | 123 |
115 | 124 |
116 unsigned int uItemID; | 125 unsigned int uItemID; |
117 int _bonus_type; | 126 int uEncantmentType; |
118 int _bonus_strength; | 127 int _bonus_strength; |
119 int uAdditionalValue; | 128 int uSpecEnchantmentType; |
120 int uNumCharges; | 129 int uNumCharges; |
121 unsigned int uAttributes; | 130 unsigned int uAttributes; |
122 unsigned __int8 uBodyAnchor; | 131 unsigned __int8 uBodyAnchor; |
123 char uMaxCharges; | 132 char uMaxCharges; |
124 char field_1A; | 133 char uHolderPlayer; |
125 char field_1B; | 134 char field_1B; |
126 unsigned __int64 uExpireTime; | 135 unsigned __int64 uExpireTime; |
127 }; | 136 }; |
128 #pragma pack(pop) | 137 #pragma pack(pop) |
129 | 138 |
225 void Initialize(); | 234 void Initialize(); |
226 void LoadPotions(); | 235 void LoadPotions(); |
227 void LoadPotionNotes(); | 236 void LoadPotionNotes(); |
228 void GenerateItem(int treasure_level, int a3, ItemGen *pItem); | 237 void GenerateItem(int treasure_level, int a3, ItemGen *pItem); |
229 void SetSpecialBonus(ItemGen *pItem); | 238 void SetSpecialBonus(ItemGen *pItem); |
230 bool _456D43_is_material_equals_3(ItemGen *pItem); | 239 bool IsMaterialSpecial(ItemGen *pItem); |
231 bool _456D5E_is_some_material(ItemGen *pItem); | 240 bool IsMaterialNonCommon(ItemGen *pItem); |
232 char *Release(); | 241 void Release(); |
233 | 242 |
234 int uAllItemsCount; | 243 int uAllItemsCount; |
235 ItemDesc pItems[800]; //4-9604h | 244 ItemDesc pItems[800]; //4-9604h |
236 ItemEnchantment pEnchantments[24]; //9604h | 245 ItemEnchantment pEnchantments[24]; //9604h |
237 ItemSpecialEnchantment pSpecialEnchantments[72]; //97E4h -9FC4h | 246 ItemSpecialEnchantment pSpecialEnchantments[72]; //97E4h -9FC4h |
265 | 274 |
266 | 275 |
267 extern ItemGen *ptr_50C9A4; | 276 extern ItemGen *ptr_50C9A4; |
268 | 277 |
269 extern struct ItemsTable *pItemsTable; | 278 extern struct ItemsTable *pItemsTable; |
279 | |
280 /* | |
281 +10 to all Resistances. 1 | |
282 +10 to all Seven Statistics. 2 | |
283 Explosive Impact! 3 | |
284 Adds 3-4 points of Cold damage. 4 | |
285 Adds 6-8 points of Cold damage. 5 | |
286 Adds 9-12 points of Cold damage. 6 | |
287 Adds 2-5 points of Electrical damage. 7 | |
288 Adds 4-10 points of Electrical damage. 8 | |
289 Adds 6-15 points of Electrical damage. 9 | |
290 Adds 1-6 points of Fire damage. 10 | |
291 Adds 2-12 points of Fire damage. 11 | |
292 Adds 3-18 points of Fire damage. 12 | |
293 Adds 5 points of Body damage. 13 | |
294 Adds 8 points of Body damage. 14 | |
295 Adds 12 points of Body damage. 15 | |
296 Drain Hit Points from target. 16 | |
297 Increases rate of Recovery. 17 | |
298 Wearer resistant to Diseases. 18 | |
299 Wearer resistant to Insanity. 19 | |
300 Wearer resistant to Paralysis. 20 | |
301 Wearer resistant to Poison. 21 | |
302 Wearer resistant to Sleep. 22 | |
303 Wearer resistant to Stone. 23 | |
304 Increased Knockback. 24 | |
305 +5 Level. 25 | |
306 Increases effect of all Air spells. 26 | |
307 Increases effect of all Body spells. 27 | |
308 Increases effect of all Dark spells. 28 | |
309 Increases effect of all Earth spells. 29 | |
310 Increases effect of all Fire spells. 30 | |
311 Increases effect of all Light spells. 31 | |
312 Increases effect of all Mind spells. 32 | |
313 Increases effect of all Spirit spells. 33 | |
314 Increases effect of all Water spells. 34 | |
315 Increases chance of Disarming. 35 | |
316 Half damage from all missile attacks. 36 | |
317 Regenerate Hit points over time. 37 | |
318 Regenerate Spell points over time. 38 | |
319 Double damage vs Demons. 39 | |
320 Double damage vs Dragons 40 | |
321 Drain Hit Points from target and Increased Weapon speed. 41 | |
322 +1 to Seven Stats, HP, SP, Armor, Resistances. 42 | |
323 +10 to Endurance, Armor, Hit points. 43 | |
324 +10 Hit points and Regenerate Hit points over time. 44 | |
325 +5 Speed and Accuracy. 45 | |
326 Adds 10-20 points of Fire damage and +25 Might. 46 | |
327 +10 Spell points and Regenerate Spell points over time. 47 | |
328 +15 Endurance and +5 Armor. 48 | |
329 +10 Intellect and Luck. 49 | |
330 +30 Fire Resistance and Regenerate Hit points over time. 50 | |
331 +10 Spell points, Speed, Intellect. 51 | |
332 +10 Endurance and Accuracy. 52 | |
333 +10 Might and Personality. 53 | |
334 +15 Endurance and Regenerate Hit points over time. 54 | |
335 +15 Luck and Regenerate Spell points over time. 55 | |
336 +5 Might and Endurance. 56 | |
337 +5 Intellect and Personality. 57 | |
338 Increased Value. 58 | |
339 Increased Weapon speed. 59 | |
340 +3 Unarmed and Dodging skills. 60 | |
341 +3 Stealing and Disarm skills. 61 | |
342 +3 ID Item and ID Monster skills. 62 | |
343 Double Damage vs. Elves. 63 | |
344 Double Damage vs. Undead. 64 | |
345 Double Damage vs. Titans. 65 | |
346 Regenerate Spell points and Hit points over time. 66 | |
347 Adds 5 points of Body damage and +2 Disarm skill. 67 | |
348 Adds 6-8 points of Cold damage and +5 Armor Class. 68 | |
349 +20 Air Resistance and Shielding. 69 | |
350 +10 Water Resistance and +2 Alchemy skill. 70 | |
351 Prevents damage from drowning. 71 | |
352 Prevents damage from falling. 72 | |
353 */ |