0
|
1 #pragma once
|
|
2
|
|
3
|
|
4
|
|
5 /* 334 */
|
|
6 enum MONSTER_TYPE
|
|
7 {
|
|
8 MONSTER_DEVIL_1 = 0x16,
|
319
|
9 MONSTER_DEVIL_2 = 0x17,
|
0
|
10 MONSTER_DEVIL_3 = 0x18,
|
|
11 MONSTER_DRAGON_1 = 0x19,
|
319
|
12 MONSTER_DRAGON_2 = 0x1A,
|
0
|
13 MONSTER_DRAGON_3 = 0x1B,
|
|
14 MONSTER_ELEMENTAL_WATER_1 = 0x2E,
|
|
15 MONSTER_ELEMENTAL_WATER_3 = 0x30,
|
|
16 MONSTER_ELF_ARCHER_1 = 0x31,
|
|
17 MONSTER_ELF_ARCHER_3 = 0x33,
|
|
18 MONSTER_ELF_SPEARMAN_1 = 0x34,
|
|
19 MONSTER_ELF_SPEARMAN_3 = 0x36,
|
|
20 MONSTER_GHOST_1 = 0x46,
|
|
21 MONSTER_GHOST_3 = 0x48,
|
|
22 MONSTER_HARPY_1 = 0x55,
|
319
|
23 MONSTER_HARPY_2 = 0x56,
|
0
|
24 MONSTER_HARPY_3 = 0x57,
|
|
25 MONSTER_LICH_1 = 0x5B,
|
|
26 MONSTER_LICH_3 = 0x5D,
|
|
27 MONSTER_OOZE_1 = 0x70,
|
319
|
28 MONSTER_OOZE_2 = 0x71,
|
0
|
29 MONSTER_OOZE_3 = 0x72,
|
|
30 MONSTER_PEASANT_ELF_FEMALE_1_1 = 0x85,
|
|
31 MONSTER_PEASANT_ELF_MALE_3_3 = 0x96,
|
|
32 MONSTER_SKELETON_1 = 0xC7,
|
|
33 MONSTER_SKELETON_3 = 0xC9,
|
|
34 MONSTER_TITAN_1 = 0xD3,
|
|
35 MONSTER_TITAN_3 = 0xD5,
|
|
36 MONSTER_VAMPIRE_1 = 0xD9,
|
|
37 MONSTER_VAMPIRE_3 = 0xDB,
|
|
38 MONSTER_WIGHT_1 = 0xDF,
|
|
39 MONSTER_WIGHT_3 = 0xE1,
|
|
40 MONSTER_ZOMBIE_1 = 0xE5,
|
|
41 MONSTER_ZOMBIE_3 = 0xE7,
|
|
42 MONSTER_PEASANT_GOBLIN_MALE_3_3 = 0xF9,
|
319
|
43 MONSTER_TROLL_1 = 0xFA,
|
|
44 MONSTER_TROLL_2 = 0xFB,
|
0
|
45 MONSTER_TROLL_3 = 0xFC,
|
|
46 MONSTER_TREANT_1 = 0xFD,
|
|
47 MONSTER_TREANT_3 = 0xFF,
|
|
48 MONSTER_GHOUL_1 = 0x100,
|
|
49 MONSTER_GHOUL_3 = 0x102,
|
|
50 };
|
|
51
|
|
52 /* 335 */
|
|
53 enum MONSTER_SPECIAL_ABILITY_TYPE
|
|
54 {
|
|
55 MONSTER_SPECIAL_ABILITY_NONE = 0x0,
|
|
56 MONSTER_SPECIAL_ABILITY_SHOT = 0x1,
|
|
57 MONSTER_SPECIAL_ABILITY_SUMMON = 0x2,
|
|
58 MONSTER_SPECIAL_ABILITY_EXPLODE = 0x3,
|
|
59 };
|
|
60
|
|
61 /* 336 */
|
|
62 enum MONSTER_SUPERTYPE
|
|
63 {
|
|
64 MONSTER_SUPERTYPE_UNDEAD = 0x1,
|
|
65 MONSTER_SUPERTYPE_KREEGAN = 0x2,
|
|
66 MONSTER_SUPERTYPE_DRAGON = 0x3,
|
|
67 MONSTER_SUPERTYPE_ELF = 0x4,
|
|
68 MONSTER_SUPERTYPE_WATER_ELEMENTAL = 0x5,
|
|
69 MONSTER_SUPERTYPE_TREANT = 0x6,
|
|
70 MONSTER_SUPERTYPE_TITAN = 0x7,
|
|
71 MONSTER_SUPERTYPE_8 = 0x8,
|
|
72 };
|
|
73
|
|
74
|
|
75
|
|
76 /* 187 */
|
|
77 #pragma pack(push, 1)
|
|
78 struct MonsterInfo
|
|
79 {
|
|
80 enum HostilityRadius: unsigned __int8
|
|
81 {
|
|
82 Hostility_Friendly = 0,
|
|
83 Hostility_Close = 1,
|
|
84 Hostility_Short = 2,
|
|
85 Hostility_Medium = 3,
|
|
86 Hostility_Long = 4
|
|
87 };
|
|
88
|
|
89 char *pName;
|
694
|
90 char *pPictureName;
|
0
|
91 unsigned __int8 uLevel;
|
|
92 unsigned __int8 uTreasureDropChance;
|
|
93 unsigned __int8 uTreasureDiceRolls;
|
|
94 unsigned __int8 uTreasureDiceSides;
|
|
95 unsigned __int8 uTreasureLevel;
|
|
96 unsigned __int8 uTreasureType;
|
|
97 unsigned __int8 uFlying;
|
|
98 unsigned __int8 uMovementType;
|
|
99 unsigned __int8 uAIType;
|
|
100 HostilityRadius uHostilityType;
|
|
101 char field_12;
|
|
102 unsigned __int8 uSpecialAttack;
|
|
103 unsigned __int8 uSpecialAttackType;
|
|
104 unsigned __int8 uAttack1Type;
|
|
105 unsigned __int8 uAttack1DamageDiceRolls;
|
|
106 unsigned __int8 uAttack1DamageDiceSides;
|
|
107 unsigned __int8 uAttack1DamageBonus;
|
|
108 unsigned __int8 uMissleAttack1Type;
|
|
109 unsigned __int8 uAttack2Chance;
|
|
110 unsigned __int8 uAttack2Type;
|
|
111 unsigned __int8 uAttack2DamageDiceRolls;
|
|
112 unsigned __int8 uAttack2DamageDiceSides;
|
|
113 unsigned __int8 uAttack2DamageBonus;
|
|
114 unsigned __int8 uMissleAttack2Type;
|
|
115 unsigned __int8 uSpell1UseChance;
|
|
116 unsigned __int8 uSpell1ID;
|
|
117 unsigned __int8 uSpell2UseChance;
|
|
118 unsigned __int8 uSpell2ID;
|
|
119 unsigned __int8 uResFire;
|
|
120 unsigned __int8 uResAir;
|
|
121 unsigned __int8 uResWater;
|
|
122 unsigned __int8 uResEarth;
|
|
123 unsigned __int8 uResMind;
|
|
124 unsigned __int8 uResSpirit;
|
|
125 unsigned __int8 uResBody;
|
|
126 unsigned __int8 uResLight;
|
|
127 unsigned __int8 uResDark;
|
|
128 unsigned __int8 uResPhysical;
|
|
129 unsigned __int8 uSpecialAbilityType;
|
|
130 unsigned __int8 uSpecialAbilityDamageDiceRolls;
|
|
131 unsigned __int8 uSpecialAbilityDamageDiceSides;
|
|
132 unsigned __int8 uSpecialAbilityDamageDiceBonus;
|
|
133 unsigned __int8 uNumCharactersAttackedPerSpecialAbility;
|
|
134 char field_33;
|
|
135 unsigned __int16 uID;
|
|
136 unsigned __int16 bQuestMonster;
|
|
137 unsigned __int16 uSpellSkillAndMastery1;
|
|
138 unsigned __int16 uSpellSkillAndMastery2;
|
|
139 __int16 field_3C_some_special_attack;
|
|
140 __int16 field_3E;
|
|
141 unsigned int uHP;
|
|
142 unsigned int uAC;
|
|
143 unsigned int uExp;
|
|
144 unsigned int uBaseSpeed;
|
711
|
145 signed int uRecoveryTime;
|
0
|
146 unsigned int uAttackPreference;
|
|
147 };
|
|
148 #pragma pack(pop)
|
|
149
|
|
150
|
237
|
151
|
0
|
152 /* 189 */
|
|
153 #pragma pack(push, 1)
|
|
154 struct MonsterStats
|
|
155 {
|
|
156 void Initialize();
|
|
157 void InitializePlacements();
|
694
|
158 signed int FindMonsterByName(const char *Str2);
|
0
|
159
|
|
160 static bool BelongsToSupertype(unsigned int uMonsterInfoID, enum MONSTER_SUPERTYPE eSupertype);
|
|
161
|
237
|
162 MonsterInfo pInfos[265]; //0 - 5b18h
|
694
|
163 char *pPlaceStrings[31]; //5B18h placement counts from 1
|
237
|
164 unsigned int uNumMonsters; //5B94h
|
|
165 unsigned int uNumPlacements; //5B98h
|
0
|
166 int field_5B9C;
|
|
167 };
|
|
168 #pragma pack(pop)
|
|
169
|
|
170
|
|
171
|
|
172 #pragma pack(push, 1)
|
|
173 struct MonsterDesc
|
|
174 {
|
|
175 unsigned __int16 uMonsterHeight;
|
|
176 unsigned __int16 uMonsterRadius;
|
|
177 unsigned __int16 uMovementSpeed;
|
|
178 __int16 uToHitRadius;
|
|
179 unsigned int uTintColor;
|
|
180 unsigned __int16 pSoundSampleIDs[4];
|
|
181 char pMonsterName[32];
|
|
182 char pSpriteNames[10][10];
|
|
183 };
|
|
184 #pragma pack(pop)
|
|
185
|
|
186
|
|
187 #pragma pack(push, 1)
|
|
188 struct MonsterList
|
|
189 {
|
|
190 inline MonsterList(): //----- (00458429)
|
|
191 uNumMonsters(0), pMonsters(nullptr)
|
|
192 {}
|
|
193 unsigned __int16 GetMonsterByName(const char *pMonsterName);
|
|
194 void ToFile();
|
|
195 void FromFile(void *pSerialized);
|
|
196 bool FromFileTxt(const char *Args);
|
|
197
|
|
198 unsigned int uNumMonsters;
|
|
199 struct MonsterDesc *pMonsters;
|
|
200 };
|
|
201 #pragma pack(pop)
|
|
202
|
|
203
|
|
204 extern struct MonsterStats *pMonsterStats;
|
|
205 extern struct MonsterList *pMonsterList; |