annotate Engine/Objects/Items.h @ 2497:82d5d92a097c

for MVS2012
author Ritor1
date Thu, 18 Sep 2014 23:59:29 +0600
parents
children 68cdef6879a0
rev   line source
2497
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
1 #pragma once
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
2 #include <array>
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
3 #include <map>
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
4 #include "NZIArray.h"
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
5
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
6 enum DAMAGE_TYPE:unsigned int
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
7 {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
8 DMGT_FIRE = 0,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
9 DMGT_ELECTR = 1,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
10 DMGT_COLD = 2,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
11 DMGT_EARTH = 3,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
12 DMGT_PHISYCAL= 4,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
13 DMGT_MAGICAL = 5,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
14 DMGT_SPIRIT = 6,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
15 DMGT_MIND = 7,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
16 DMGT_BODY = 8,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
17 DMGT_LIGHT = 9,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
18 DMGT_DARK =10
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
19 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
20
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
21
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
22
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
23 /* 338 */
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
24 enum ITEM_FLAGS :unsigned int
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
25 {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
26 ITEM_IDENTIFIED = 0x1,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
27 ITEM_BROKEN = 0x2,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
28 ITEM_TEMP_BONUS = 0x8,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
29 ITEM_AURA_EFFECT_RED = 0x10,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
30 ITEM_AURA_EFFECT_BLUE = 0x20,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
31 ITEM_AURA_EFFECT_GREEN = 0x40,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
32 ITEM_AURA_EFFECT_PURPLE = 0x80,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
33 ITEM_ENCHANT_ANIMATION = 0xF0,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
34 ITEM_STOLEN = 0x100,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
35 ITEM_HARDENED = 0x200,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
36 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
37
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
38
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
39 enum ITEM_MATERIAL
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
40 {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
41 MATERIAL_COMMON =0,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
42 MATERIAL_ARTEFACT = 1,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
43 MATERIAL_RELIC = 2,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
44 MATERIAL_SPECIAL = 3
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
45 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
46
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
47 /* 330 */
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
48 enum ITEM_TYPE
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
49 {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
50 ITEM_LONGSWORD_1 = 0x1,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
51 ITEM_DAGGER_1 = 0xF,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
52 ITEM_AXE_1 = 0x17,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
53 ITEM_SPEAR_1 = 0x1F,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
54 ITEM_CROSSBOW_1 = 0x2F,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
55 ITEM_MACE_1 = 0x32,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
56 ITEM_STAFF_1 = 0x3D,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
57 ITEM_BLASTER = 64,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
58 ITEM_LASER_RIFLE = 65,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
59 ITEM_LEATHER_1 = 0x42,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
60 ITEM_CHAINMAIL_1 = 0x47,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
61 ITEM_PLATE_1 = 0x4C,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
62 ITEM_BUCKLER_1 = 0x54,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
63 ITEM_GAUNTLETS_1 = 0x6E,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
64 ITEM_BOOTS_1 = 0x73,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
65 ITEM_WAND_FIRE = 135,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
66 ITEM_WAND_STUN = 138,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
67 ITEM_WAND_INCENERATION = 0x9F,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
68 ITEM_REAGENT_WIDOWSWEEP_BERRIES = 200,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
69 ITEM_TROLL_BLOOD = 0xCA,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
70 ITEM_DRAGON_EYE = 0xCC,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
71 ITEM_HARPY_FEATHER = 0xCF,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
72 ITEM_DEVIL_ICHOR = 0xD6,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
73 ITEM_OOZE_ECTOPLASM_BOTTLE = 0xD9,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
74 ITEM_REAGENT_PHILOSOPHERS_STONE = 219,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
75 ITEM_POTION_BOTTLE = 220,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
76 ITEM_POTION_CATALYST = 221,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
77 ITEM_POTION_CURE_WOUNDS = 222,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
78 ITEM_POTION_CURE_DISEASE = 225,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
79 ITEM_POTION_AWAKEN = 227,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
80 ITEM_POTION_HASTE = 228,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
81 ITEM_POTION_RECHARGE_ITEM = 233,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
82 ITEM_POTION_HARDEN_ITEM = 236,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
83 ITEM_POTION_CURE_INSANITY = 239,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
84 ITEM_POTION_MIGHT_BOOST = 240,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
85 ITEM_POTION_ACCURACY_BOOST = 245,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
86 ITEM_POTION_FLAMING_POTION = 246,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
87 ITEM_POTION_SWIFT_POTION = 250,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
88 ITEM_POTION_BODY_RESISTANE = 261,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
89 ITEM_POTION_STONE_TO_FLESH = 262,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
90 ITEM_POTION_SLAYING_POTION = 263,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
91 ITEM_POTION_REJUVENATION = 271,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
92 ITEM_SPELLBOOK_TORCHLIGHT = 400,//0x190
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
93 ITEM_SPELLBOOK_FIRE_STRIKE = 401,//0x191,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
94 ITEM_SPELLBOOK_AIR_FEATHER_FALL = 0x19C,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
95 ITEM_SPELLBOOK_WATER_POISON_SPRAY = 0x1A7,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
96 ITEM_SPELLBOOK_EARTH_SLOW = 0x1B2,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
97 ITEM_SPELLBOOK_SPIRIT_BLESS = 0x1BD,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
98 ITEM_SPELLBOOK_MIND_MIND_BLAST = 0x1C8,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
99 ITEM_SPELLBOOK_BODY_FIRST_AID = 0x1D3,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
100 ITEM_SPELLBOOK_BODY_HEAL = 0x1D6,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
101 ITEM_SPELLBOOK_BODY_BREAK_POISON = 0x1D7,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
102 ITEM_SPELLBOOK_LIGHT_LIGHT_BOLT = 0x1DD,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
103 ITEM_SPELLBOOK_LIGHT_SUN_BURST = 0x1E6,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
104 ITEM_SPELLBOOK_LIGHT_DIVINE_INTERVENTION = 0x1E7,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
105 ITEM_ARTIFACT_PUCK = 500,//0x1F4,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
106 ITEM_ARTIFACT_IRON_FEATHER = 501,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
107 ITEM_ARTIFACT_WALLACE = 502,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
108 ITEM_ARTIFACT_CORSAIR = 503,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
109 ITEM_ARTIFACT_GOVERNORS_ARMOR = 504,//1F8
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
110 ITEM_ARTIFACT_YORUBA = 505,//1F9
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
111 ITEM_ARTIFACT_SPLITTER = 506,//1FA
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
112 ITEM_ARTIFACT_GHOULSBANE = 507,//1FA
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
113 ITEM_ARTIFACT_GIBBET = 508,//1FA
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
114 ITEM_ARTIFACT_CHARELE = 509,//1FA
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
115 ITEM_ARTEFACT_ULLYSES =510,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
116 ITEM_ARTEFACT_HANDS_OF_THE_MASTER =511,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
117 ITEM_ARTIFACT_LEAGUE_BOOTS = 512,//200
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
118 ITEM_ARTIFACT_RULERS_RING = 513,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
119 ITEM_RELIC_MASH = 514,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
120 ITEM_RELIC_ETHRICS_STAFF = 515,//204
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
121 ITEM_RELIC_HARECS_LEATHER = 516,//204
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
122 ITEM_RELIC_OLD_NICK = 517,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
123 ITEM_RELIC_AMUCK = 518,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
124 ITEM_RELIC_GLORY_SHIELD = 519,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
125 ITEM_RELIC_KELEBRIM = 520,//208
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
126 ITEM_RELIC_TALEDONS_HELM = 521,//209
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
127 ITEM_RELIC_SCHOLARS_CAP = 522,//20A
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
128 ITEM_RELIC_PHYNAXIAN_CROWN = 523,//20B
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
129 ITEM_RILIC_TITANS_BELT = 524,//20C
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
130 ITEM_RELIC_TWILIGHT = 525,//20D
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
131 ITEM_RELIC_ANIA_SELVING = 526,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
132 ITEM_RELIC_JUSTICE = 527,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
133 ITEM_RELIC_MEKORIGS_HAMMER = 528,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
134 ITEM_ARTIFACT_HERMES_SANDALS = 529,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
135 ITEM_ARTIFACT_CLOAK_OF_THE_SHEEP = 530,//212
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
136 ITEM_ARTIFACT_ELFBANE = 531,//212
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
137 ITEM_ARTIFACT_MINDS_EYE = 532,//214
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
138 ITEM_ELVEN_CHAINMAIL = 533,//215
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
139 ITEM_FORGE_GAUNTLETS = 534,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
140 ITEM_ARTIFACT_HEROS_BELT = 535,//217
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
141 ITEM_ARTIFACT_LADYS_ESCORT = 536,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
142 ITEM_RARE_CLANKERS_AMULET = 537,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
143 ITEM_RARE_LIETENANTS_CUTLASS = 538,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
144 ITEM_RARE_MEDUSAS_MIRROR = 539,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
145 ITEM_RARE_LADY_CARMINES_DAGGER = 540,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
146 ITEM_RARE_VILLAINS_BLADE = 541,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
147 ITEM_RARE_PERFECT_BOW = 542,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
148 ITEM_RARE_PERFECT_BOW_FIXED = 543,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
149 ITEM_RARE_SHADOWS_MASK = 544,//220
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
150 ITEM_RARE_GHOST_RING = 545,//220
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
151 ITEM_RARE_FAERIE_RING = 546,//220
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
152 ITEM_RARE_SUN_CLOAK = 547,//223
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
153 ITEM_RARE_MOON_CLOAK = 548,//224
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
154 ITEM_RARE_ZOKKARS_AXE = 549,//224
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
155 ITEM_RARE_VAMPIRES_CAPE = 550,//226
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
156 ITEM_RARE_MINOTAURS_AXE = 551,//226
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
157 ITEM_RARE_GROGNARDS_CUTLASS = 552,//226
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
158 ITEM_LICH_JAR_FULL = 601,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
159 ITEM_WETSUIT = 604,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
160 ITEM_LICH_JAR_EMPTY = 615,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
161 ITEM_RECIPE_REJUVENATION = 740,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
162 ITEM_RECIPE_BODY_RESISTANCE = 771,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
163 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
164
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
165 /* 331 */
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
166 enum ITEM_EQUIP_TYPE: unsigned __int8
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
167 {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
168 EQUIP_SINGLE_HANDED = 0,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
169 EQUIP_TWO_HANDED = 1,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
170 EQUIP_BOW = 2,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
171 EQUIP_ARMOUR = 3,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
172 EQUIP_SHIELD = 4,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
173 EQUIP_HELMET = 5,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
174 EQUIP_BELT = 6,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
175 EQUIP_CLOAK = 7,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
176 EQUIP_GAUNTLETS = 8,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
177 EQUIP_BOOTS = 9,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
178 EQUIP_RING = 10,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
179 EQUIP_AMULET = 11,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
180 EQUIP_WAND = 12,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
181 EQUIP_REAGENT = 13,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
182 EQUIP_POTION = 14,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
183 EQUIP_SPELL_SCROLL = 15,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
184 EQUIP_BOOK = 16,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
185 EQIUP_ANY = 16,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
186 EQUIP_MESSAGE_SCROLL = 17,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
187 EQUIP_GOLD = 18,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
188 EQUIP_GEM = 19,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
189 EQUIP_NONE = 20
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
190 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
191
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
192 enum CHARACTER_ATTRIBUTE_TYPE;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
193 struct Player;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
194
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
195 typedef struct CEnchantment
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
196 {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
197 unsigned __int16 Player::* statPtr;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
198 int statBonus;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
199 CEnchantment(int bonus, unsigned __int16 Player::* skillPtr = nullptr):
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
200 statBonus(bonus),
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
201 statPtr(skillPtr)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
202 {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
203 }
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
204 } CEnchantment;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
205
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
206 /* 64 */
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
207 #pragma pack(push, 1)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
208 struct ItemGen //0x24
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
209 {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
210 //----- (0042EB25) --------------------------------------------------------
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
211 // inline ItemGen()
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
212 // {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
213 // Reset();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
214 // }
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
215 static void AddToMap(std::map<int, std::map<CHARACTER_ATTRIBUTE_TYPE, CEnchantment*>* > &maptoadd,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
216 int enchId,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
217 CHARACTER_ATTRIBUTE_TYPE attrId,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
218 int bonusValue = 0,
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
219 unsigned __int16 Player::* skillPtr = nullptr);
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
220
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
221 static std::map<int, std::map<CHARACTER_ATTRIBUTE_TYPE, CEnchantment*>* > regularBonusMap;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
222 static std::map<int, std::map<CHARACTER_ATTRIBUTE_TYPE, CEnchantment*>* > specialBonusMap;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
223 static std::map<int, std::map<CHARACTER_ATTRIBUTE_TYPE, CEnchantment*>* > artifactBonusMap;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
224
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
225 static void PopulateSpecialBonusMap();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
226 static void PopulateRegularBonusMap();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
227 static void PopulateArtifactBonusMap();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
228 static void ClearItemBonusMaps();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
229
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
230 inline void ResetEnchantAnimation(){uAttributes &= 0xFFFFFF0F;}
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
231 inline bool ItemEnchanted()const {return(uAttributes & ITEM_ENCHANT_ANIMATION) != 0;}
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
232 inline bool AuraEffectRed()const {return(uAttributes & ITEM_ENCHANT_ANIMATION) == ITEM_AURA_EFFECT_RED;}
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
233 inline bool AuraEffectBlue()const {return(uAttributes & ITEM_ENCHANT_ANIMATION) == ITEM_AURA_EFFECT_BLUE;}
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
234 inline bool AuraEffectGreen()const {return(uAttributes & ITEM_ENCHANT_ANIMATION) == ITEM_AURA_EFFECT_GREEN;}
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
235 inline bool AuraEffectPurple()const {return(uAttributes & ITEM_ENCHANT_ANIMATION) == ITEM_AURA_EFFECT_PURPLE;}
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
236
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
237 void GetItemBonusSpecialEnchantment(Player* owner, CHARACTER_ATTRIBUTE_TYPE attrToGet, int* additiveBonus, int* halfSkillBonus);
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
238 void GetItemBonusArtifact(Player* owner, CHARACTER_ATTRIBUTE_TYPE attrToGet, int* bonusSum);
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
239 bool IsRegularEnchanmentForAttribute(CHARACTER_ATTRIBUTE_TYPE attrToGet);
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
240
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
241 inline bool IsBroken() {return (uAttributes & ITEM_BROKEN) != 0;}
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
242 inline void SetBroken() {uAttributes |= ITEM_BROKEN;}
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
243 inline bool IsIdentified() {return (uAttributes & ITEM_IDENTIFIED) != 0;}
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
244 inline void SetIdentified() {uAttributes |= ITEM_IDENTIFIED;}
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
245 inline bool IsStolen() {return (uAttributes & ITEM_STOLEN) != 0;}
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
246 inline void SetStolen() {uAttributes |= ITEM_STOLEN;}
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
247
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
248 bool GenerateArtifact();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
249 unsigned int GetValue();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
250 const char *GetDisplayName();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
251 const char *GetIdentifiedName();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
252 void UpdateTempBonus(__int64 uTimePlayed);
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
253 void Reset();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
254 int _439DF3_get_additional_damage(int *a2, bool *vampiyr);
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
255
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
256 ITEM_EQUIP_TYPE GetItemEquipType();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
257 unsigned char GetPlayerSkillType();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
258 char* GetIconName();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
259 unsigned __int8 GetDamageDice();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
260 unsigned __int8 GetDamageRoll();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
261 unsigned __int8 GetDamageMod();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
262 bool MerchandiseTest(int _2da_idx);
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
263 int uItemID; //0
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
264 int uEnchantmentType; //4
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
265 int m_enchantmentStrength; //8
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
266 int uSpecEnchantmentType; // 25 +5 levels //0c
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
267 // 16 Drain Hit Points from target.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
268 // 35 Increases chance of disarming.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
269 // 39 Double damage vs Demons.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
270 // 40 Double damage vs Dragons
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
271 // 45 +5 Speed and Accuracy
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
272 // 56 +5 Might and Endurance.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
273 // 57 +5 Intellect and Personality.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
274 // 58 Increased Value.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
275 // 60 +3 Unarmed and Dodging skills
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
276 // 61 +3 Stealing and Disarm skills.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
277 // 59 Increased Weapon speed.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
278 // 63 Double Damage vs. Elves.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
279 // 64 Double Damage vs. Undead.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
280 // 67 Adds 5 points of Body damage and +2 Disarm skill.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
281 // 68 Adds 6-8 points of Cold damage and +5 Armor Class.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
282 // 71 Prevents drowning damage.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
283 // 72 Prevents falling damage.
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
284 int uNumCharges; //10
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
285 unsigned int uAttributes; //14
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
286 unsigned __int8 uBodyAnchor; //18
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
287 char uMaxCharges; //19
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
288 char uHolderPlayer; //1A
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
289 char field_1B; //1B
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
290 unsigned __int64 uExpireTime; //1C
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
291 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
292 #pragma pack(pop)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
293
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
294
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
295
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
296 /* 175 */
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
297 #pragma pack(push, 1)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
298 struct ItemDesc //30h
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
299 { //Item # |Pic File|Name|Value|Equip Stat|Skill Group|Mod1|Mod2|material|
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
300 ///ID/Rep/St|Not identified name|Sprite Index|VarA|VarB|Equip X|Equip Y|Notes
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
301 char *pIconName; //0 4
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
302 char *pName; //4 8
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
303 char *pUnidentifiedName; //8 c
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
304 char *pDescription; //0c 10
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
305 unsigned int uValue; //10 14
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
306 unsigned __int16 uSpriteID; //14 18
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
307 __int16 field_1A; //16
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
308 signed __int16 uEquipX; //18 1c
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
309 signed __int16 uEquipY; //1a 1e
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
310 ITEM_EQUIP_TYPE uEquipType; //1c 20
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
311 unsigned __int8 uSkillType; //1d 21
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
312 unsigned __int8 uDamageDice; //1e 22
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
313 unsigned __int8 uDamageRoll; //1f 23
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
314 unsigned __int8 uDamageMod; //20 24
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
315 unsigned __int8 uMaterial; //21 25
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
316 char _additional_value; //22 26
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
317 char _bonus_type; //23 27
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
318 char _bonus_strength; //24 28
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
319 char field_25; // 25 29
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
320 char field_26; //26 2A
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
321 char field_27; // 27 2b
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
322 union
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
323 {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
324 unsigned __int8 uChanceByTreasureLvl[6];
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
325 struct {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
326 unsigned __int8 uChanceByTreasureLvl1; // 28 2c
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
327 unsigned __int8 uChanceByTreasureLvl2; // 29 2d
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
328 unsigned __int8 uChanceByTreasureLvl3; // 2A 2e
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
329 unsigned __int8 uChanceByTreasureLvl4; // 2B 2f
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
330 unsigned __int8 uChanceByTreasureLvl5; // 2C 30
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
331 unsigned __int8 uChanceByTreasureLvl6; // 2D 32
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
332 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
333 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
334 unsigned char uItemID_Rep_St; //2e 32
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
335 char field_2f;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
336 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
337 #pragma pack(pop)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
338
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
339
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
340
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
341 /* 177 */
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
342 #pragma pack(push, 1)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
343 struct ItemEnchantment
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
344 { //Bonus|Sta|Of Name|Arm|Shld|Helm|Belt|Cape|Gaunt|Boot|Ring|Amul
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
345 char *pBonusStat;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
346 char *pOfName;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
347 /* union{
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
348 struct {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
349 unsigned char to_arm;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
350 unsigned char to_shld;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
351 unsigned char to_helm;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
352 unsigned char to_belt;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
353 unsigned char to_cape;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
354 unsigned char to_gaunt;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
355 unsigned char to_boot;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
356 unsigned char to_ring;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
357 unsigned char to_amul;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
358 }; */
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
359 unsigned char to_item[12];
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
360 // };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
361 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
362 #pragma pack(pop)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
363
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
364 /* 178 */
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
365 #pragma pack(push, 1)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
366 struct ItemSpecialEnchantment //1Ch
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
367 { //Bonus Stat|Name Add|W1|W2|Miss|Arm|Shld|Helm|Belt|Cape|Gaunt|Boot|Ring|Amul|Value|Lvl|Description fo special Bonuses and values
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
368
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
369 char *pBonusStatement; //0
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
370 char *pNameAdd; //4
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
371 char to_item_apply[12]; //8
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
372 int iValue; //14
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
373 int iTreasureLevel; //18
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
374 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
375 #pragma pack(pop)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
376
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
377 #pragma pack(push, 1)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
378 struct BonusRange
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
379 {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
380 unsigned int minR;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
381 unsigned int maxR;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
382 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
383 #pragma pack(pop)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
384
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
385 /* 176 */
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
386 #pragma pack(push, 1)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
387 struct ItemsTable
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
388 {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
389 void Initialize();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
390 void LoadPotions();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
391 void LoadPotionNotes();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
392 void GenerateItem(int treasure_level, unsigned int uTreasureType, ItemGen *pItem);
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
393 void SetSpecialBonus(ItemGen *pItem);
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
394 bool IsMaterialSpecial(ItemGen *pItem);
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
395 bool IsMaterialNonCommon(ItemGen *pItem);
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
396 void Release();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
397
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
398 int uAllItemsCount;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
399 NZIArray<ItemDesc, 800> pItems; //4-9604h
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
400 ItemEnchantment pEnchantments[24]; //9604h
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
401 ItemSpecialEnchantment pSpecialEnchantments[72]; //97E4h -9FC4h
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
402 char field_9FC4[5000];
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
403 char field_B348[5000];
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
404 char field_C6D0[5000];
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
405 char field_DA58[5000];
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
406 char field_EDE0[384];
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
407 unsigned __int16 potion_data[50][50]; // 77B2h*2=EF64h -102ECh
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
408 unsigned __int16 potion_note[50][50]; // 8176h*2=102ECh -11674h
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
409 char *pItemsTXT_Raw; //11674h
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
410 char *pRndItemsTXT_Raw;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
411 char *pStdItemsTXT_Raw; //1167Ch
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
412 char *pSpcItemsTXT_Raw; //11680h
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
413 unsigned int uChanceByTreasureLvlSumm[6]; //11684
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
414 unsigned int uBonusChanceStandart[6]; //1169c
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
415 unsigned int uBonusChanceSpecial[6]; //116B4
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
416 unsigned int uBonusChanceWpSpecial[6]; //116cc -116e4
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
417 unsigned int pEnchantmentsSumm[9]; //116E4h -11708h
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
418 BonusRange bonus_ranges[6]; //45C2h*4 =11708h
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
419 unsigned int pSpecialEnchantmentsSumm[24]; //11738h
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
420 unsigned int pSpecialEnchantments_count; //11798h
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
421 char field_1179C;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
422 char field_1179D;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
423 char field_1179E;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
424 char field_1179F;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
425 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
426 #pragma pack(pop)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
427
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
428 void GenerateStandartShopItems();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
429 void GenerateSpecialShopItems();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
430 void GenerateItemsInChest();
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
431
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
432 extern std::array<const char, 5> uItemsAmountPerShopType; // weak
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
433 extern ItemGen *ptr_50C9A4_ItemToEnchant;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
434
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
435 extern struct ItemsTable *pItemsTable;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
436
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
437 /*
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
438 +10 to all Resistances. 1
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
439 +10 to all Seven Statistics. 2
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
440 Explosive Impact! 3
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
441 Adds 3-4 points of Cold damage. 4
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
442 Adds 6-8 points of Cold damage. 5
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
443 Adds 9-12 points of Cold damage. 6
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
444 Adds 2-5 points of Electrical damage. 7
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
445 Adds 4-10 points of Electrical damage. 8
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
446 Adds 6-15 points of Electrical damage. 9
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
447 Adds 1-6 points of Fire damage. 10
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
448 Adds 2-12 points of Fire damage. 11
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
449 Adds 3-18 points of Fire damage. 12
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
450 Adds 5 points of Body damage. 13
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
451 Adds 8 points of Body damage. 14
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
452 Adds 12 points of Body damage. 15
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
453 Drain Hit Points from target. 16
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
454 Increases rate of Recovery. 17
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
455 Wearer resistant to Diseases. 18
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
456 Wearer resistant to Insanity. 19
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
457 Wearer resistant to Paralysis. 20
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
458 Wearer resistant to Poison. 21
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
459 Wearer resistant to Sleep. 22
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
460 Wearer resistant to Stone. 23
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
461 Increased Knockback. 24
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
462 +5 Level. 25
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
463 Increases effect of all Air spells. 26
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
464 Increases effect of all Body spells. 27
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
465 Increases effect of all Dark spells. 28
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
466 Increases effect of all Earth spells. 29
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
467 Increases effect of all Fire spells. 30
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
468 Increases effect of all Light spells. 31
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
469 Increases effect of all Mind spells. 32
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
470 Increases effect of all Spirit spells. 33
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
471 Increases effect of all Water spells. 34
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
472 Increases chance of Disarming. 35
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
473 Half damage from all missile attacks. 36
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
474 Regenerate Hit points over time. 37
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
475 Regenerate Spell points over time. 38
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
476 Double damage vs Demons. 39
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
477 Double damage vs Dragons 40
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
478 Drain Hit Points from target and Increased Weapon speed. 41
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
479 +1 to Seven Stats, HP, SP, Armor, Resistances. 42
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
480 +10 to Endurance, Armor, Hit points. 43
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
481 +10 Hit points and Regenerate Hit points over time. 44
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
482 +5 Speed and Accuracy. 45
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
483 Adds 10-20 points of Fire damage and +25 Might. 46
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
484 +10 Spell points and Regenerate Spell points over time. 47
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
485 +15 Endurance and +5 Armor. 48
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
486 +10 Intellect and Luck. 49
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
487 +30 Fire Resistance and Regenerate Hit points over time. 50
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
488 +10 Spell points, Speed, Intellect. 51
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
489 +10 Endurance and Accuracy. 52
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
490 +10 Might and Personality. 53
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
491 +15 Endurance and Regenerate Hit points over time. 54
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
492 +15 Luck and Regenerate Spell points over time. 55
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
493 +5 Might and Endurance. 56
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
494 +5 Intellect and Personality. 57
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
495 Increased Value. 58
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
496 Increased Weapon speed. 59
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
497 +3 Unarmed and Dodging skills. 60
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
498 +3 Stealing and Disarm skills. 61
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
499 +3 ID Item and ID Monster skills. 62
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
500 Double Damage vs. Elves. 63
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
501 Double Damage vs. Undead. 64
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
502 Double Damage vs. Titans. 65
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
503 Regenerate Spell points and Hit points over time. 66
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
504 Adds 5 points of Body damage and +2 Disarm skill. 67
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
505 Adds 6-8 points of Cold damage and +5 Armor Class. 68
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
506 +20 Air Resistance and Shielding. 69
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
507 +10 Water Resistance and +2 Alchemy skill. 70
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
508 Prevents damage from drowning. 71
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
509 Prevents damage from falling. 72
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
510 */
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
511
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
512
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
513 /* 391 */
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
514 #pragma pack(push, 1)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
515 struct stru351_summoned_item
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
516 {
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
517 int field_0_expire_second;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
518 int field_4_expire_minute;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
519 int field_8_expire_hour;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
520 int field_C_expire_day;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
521 int field_10_expire_week;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
522 int field_14_exprie_month;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
523 int field_18_expire_year;
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
524 };
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
525 #pragma pack(pop)
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
526
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
527
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
528 int GetItemTextureFilename(char *pOut, signed int item_id, int index, int shoulder);
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
529 void FillAviableSkillsToTeach(int _this);
82d5d92a097c for MVS2012
Ritor1
parents:
diff changeset
530 void init_summoned_item(struct stru351_summoned_item *_this, __int64 duration);