Skip to content

Commit 428895e

Browse files
committed
Regenerate headers
1 parent 6d992ec commit 428895e

7 files changed

Lines changed: 513 additions & 0 deletions

File tree

misc/opcode.tph

Lines changed: 311 additions & 0 deletions
Large diffs are not rendered by default.

structures/eff/iesdp.tph

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Effect type
44
*/
55
OUTER_SET EFF_effect_type = 0x0
6+
67
/**
78
* @type byte
89
* **[Target type](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0x2)**
@@ -42,21 +43,25 @@ OUTER_SET EFF_effect_type = 0x0
4243
* - Be aware that [opcode #146](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op146)`*p2=2`, [opcode #326](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op326), and [opcode #333](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op333) might behave differently when it comes to [`Self`](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0x2_1)/[`Projectile Target`](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0x2_2)/[`Original Caster`](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0x2_9).
4344
*/
4445
OUTER_SET EFF_target = 0x2
46+
4547
/**
4648
* @type byte
4749
* Power
4850
*/
4951
OUTER_SET EFF_power = 0x3
52+
5053
/**
5154
* @type dword
5255
* Parameter 1
5356
*/
5457
OUTER_SET EFF_parameter1 = 0x4
58+
5559
/**
5660
* @type dword
5761
* Parameter 2
5862
*/
5963
OUTER_SET EFF_parameter2 = 0x8
64+
6065
/**
6166
* @type byte
6267
* **[Timing mode](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0xC)**
@@ -111,6 +116,7 @@ OUTER_SET EFF_parameter2 = 0x8
111116
* - One of such effects is [Time Stop](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op231) (this is in addition to lasting half its specified [`Duration`](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0xE)).
112117
*/
113118
OUTER_SET EFF_timing_mode = 0xc
119+
114120
/**
115121
* @type byte
116122
* **[Dispel / Resistance](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0xD)**
@@ -125,17 +131,20 @@ OUTER_SET EFF_timing_mode = 0xc
125131
* The only difference between `0` and `2` is that `0` will automatically convert to `2` when targeting yourself.
126132
*/
127133
OUTER_SET EFF_resistance = 0xd
134+
128135
/**
129136
* @type dword
130137
* **[Duration](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0xE)**
131138
* - This field is measured in seconds or ticks (1⁄15 second), depending on [`Timing mode`](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0xC).
132139
*/
133140
OUTER_SET EFF_duration = 0xe
141+
134142
/**
135143
* @type byte
136144
* **[Probability 1](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0x12)**
137145
*/
138146
OUTER_SET EFF_probability1 = 0x12
147+
139148
/**
140149
* @type byte
141150
* **[Probability 2](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0x13)**
@@ -147,11 +156,13 @@ OUTER_SET EFF_probability1 = 0x12
147156
* - An effect's probabilities are rolled on the sprite the effect is applied to. This means that an effect targeting [`Projectile Target`](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0x2_2) will have the target roll that effect's probabilities, not the attacker or caster. This decouples the split probability roll and allows both to occur at the same time, since each sprite rolls separately. As a consequence it is not directly possible to synchronize effects with partial probabilities that are applied to different targets (e.g. [`Projectile Target`](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0x2_2) and [`Self`](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0x2_1)).
148157
*/
149158
OUTER_SET EFF_probability2 = 0x13
159+
150160
/**
151161
* @type resref
152162
* **[Resref key](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_Resource)**
153163
*/
154164
OUTER_SET EFF_resref_key = 0x14
165+
155166
/**
156167
* @type dword
157168
* **[Dice Thrown / Maximum Level](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0x1C)**
@@ -163,6 +174,7 @@ OUTER_SET EFF_resref_key = 0x14
163174
* - A `1/30/1` single-class character qualifies as HD 1.
164175
*/
165176
OUTER_SET EFF_dice_thrown = 0x1c
177+
166178
/**
167179
* @type dword
168180
* **[Dice Sides / Minimum Level](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0x20)**
@@ -174,6 +186,7 @@ OUTER_SET EFF_dice_thrown = 0x1c
174186
* - A `1/30/1` single-class qualifies as HD 1.
175187
*/
176188
OUTER_SET EFF_dice_sides = 0x20
189+
177190
/**
178191
* @type dword
179192
* **[Saving throw type](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0x24)**
@@ -209,6 +222,7 @@ OUTER_SET EFF_dice_sides = 0x20
209222
* If more than 1 Saving Throw Type is specified (`BIT0 – BIT4`), the target rolls against their best save.
210223
*/
211224
OUTER_SET EFF_save_type = 0x24
225+
212226
/**
213227
* @type dword
214228
* Saving throw bonus

structures/eff2/iesdp.tph

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@
44
* [Embedded EFF](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/cre_v1.htm#CREV1_0_Header_0x33_1)s - this field is zeroed out
55
*/
66
OUTER_SET EFF2_signature2 = 0x8
7+
78
/**
89
* @type char array
910
* External EFFs - the field is the same as the version field from the header
1011
* [Embedded EFF](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/cre_v1.htm#CREV1_0_Header_0x33_1)s - this field is zeroed out
1112
*/
1213
OUTER_SET EFF2_version2 = 0xc
14+
1315
/**
1416
* @type dword
1517
* Opcode number
1618
*/
1719
OUTER_SET EFF2_opcode = 0x10
20+
1821
/**
1922
* @type dword
2023
* **[Target type](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x14)**
@@ -34,21 +37,25 @@ OUTER_SET EFF2_opcode = 0x10
3437
* - If attached directly to a [CRE](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/cre_v1.htm) file, this field is irrelevant (it will affect whatever creature it's attached to). Also applies to [V1 effects](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/cre_v1.htm#CREV1_0_Header_0x33_0) attached directly to [CRE](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/cre_v1.htm) files.
3538
*/
3639
OUTER_SET EFF2_target = 0x14
40+
3741
/**
3842
* @type dword
3943
* Power
4044
*/
4145
OUTER_SET EFF2_power = 0x18
46+
4247
/**
4348
* @type dword
4449
* Parameter 1
4550
*/
4651
OUTER_SET EFF2_parameter1 = 0x1c
52+
4753
/**
4854
* @type dword
4955
* Parameter 2
5056
*/
5157
OUTER_SET EFF2_parameter2 = 0x20
58+
5259
/**
5360
* @type word
5461
* [**Timing mode**](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x24)
@@ -70,41 +77,48 @@ OUTER_SET EFF2_parameter2 = 0x20
7077
* If called via [opcode #177](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op177)/[opcode #183](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op183)/[opcode #283](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op283), this field is ignored.
7178
*/
7279
OUTER_SET EFF2_timing = 0x24
80+
7381
/**
7482
* @type dword
7583
* **[Duration](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x28)**
7684
* - This field is measured in seconds or ticks (1⁄15 second), depending on [`Timing mode`](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x24).
7785
* If called via [opcode #177](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op177)/[opcode #183](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op183)/[opcode #283](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op283), this field is ignored.
7886
*/
7987
OUTER_SET EFF2_duration = 0x28
88+
8089
/**
8190
* @type word
8291
* **[Probability 1](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x2C)**
8392
* If called via [opcode #183](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op183), this field is ignored.
8493
*/
8594
OUTER_SET EFF2_probability1 = 0x2c
95+
8696
/**
8797
* @type word
8898
* **[Probability 2](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x2E)**
8999
* See [here](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v1.htm#effv1_Header_0x13) for further details.
90100
* If called via [opcode #183](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op183), this field is ignored.
91101
*/
92102
OUTER_SET EFF2_probability2 = 0x2e
103+
93104
/**
94105
* @type resref
95106
* **[Resource](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_Resource)**
96107
*/
97108
OUTER_SET EFF2_resource = 0x30
109+
98110
/**
99111
* @type dword
100112
* Dice Thrown
101113
*/
102114
OUTER_SET EFF2_dice_thrown = 0x38
115+
103116
/**
104117
* @type dword
105118
* Dice Sides
106119
*/
107120
OUTER_SET EFF2_dice_sides = 0x3c
121+
108122
/**
109123
* @type dword
110124
* **[Saving throw type](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x40)**
@@ -134,12 +148,14 @@ OUTER_SET EFF2_dice_sides = 0x3c
134148
* If called via [opcode #183](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op183), this field is ignored.
135149
*/
136150
OUTER_SET EFF2_save_type = 0x40
151+
137152
/**
138153
* @type dword
139154
* **[Save bonus](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x44)**
140155
* If called via [opcode #183](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op183), this field is ignored.
141156
*/
142157
OUTER_SET EFF2_save_bonus = 0x44
158+
143159
/**
144160
* @type dword
145161
* **[Special](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_Special)** (EE games)
@@ -148,12 +164,14 @@ OUTER_SET EFF2_save_bonus = 0x44
148164
* Stacking IDs are unique to the opcode being applied. To maintain uniqueness of stacking IDs between different mods, one recommendation is to use the higher word of Special as the modder's Infinity Engine Community Prefix, then use the lower word as an identifying ID. For example, 0x41360001 ('A6' 0x0001).
149165
*/
150166
OUTER_SET EFF2_stacking_id_tobex = 0x48
167+
151168
/**
152169
* @type dword
153170
* **[Primary Type (School)](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x4C)**
154171
* - See [`MSCHOOL.2DA`](https://gibberlings3.github.io/iesdp/files/2da/2da_bgee/mschool.htm).
155172
*/
156173
OUTER_SET EFF2_school = 0x4c
174+
157175
/**
158176
* @type dword
159177
* **[Dispel/Resistance](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x5C)**
@@ -200,57 +218,68 @@ OUTER_SET EFF2_school = 0x4c
200218
* If called via [opcode #183](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op183), this field is ignored.
201219
*/
202220
OUTER_SET EFF2_resistance = 0x5c
221+
203222
/**
204223
* @type dword
205224
* **[Parameter 3](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x60)**
206225
*/
207226
OUTER_SET EFF2_parameter3 = 0x60
227+
208228
/**
209229
* @type dword
210230
* **[Parameter 4](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x64)**
211231
*/
212232
OUTER_SET EFF2_parameter4 = 0x64
233+
213234
/**
214235
* @type dword
215236
* Parameter 5
216237
*/
217238
OUTER_SET EFF2_parameter5 = 0x68
239+
218240
/**
219241
* @type dword
220242
* **[Time applied](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x6C)** (ticks)
221243
* - It stores the gametime (ticks) at which the effect was originally applied.
222244
*/
223245
OUTER_SET EFF2_time_applied = 0x6c
246+
224247
/**
225248
* @type resref
226249
* **[Resource 2](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x70)** ([VVC](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/vvc_v1.htm) in many effects)
227250
*/
228251
OUTER_SET EFF2_resource2 = 0x70
252+
229253
/**
230254
* @type resref
231255
* **[Resource 3](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x78)**
232256
*/
233257
OUTER_SET EFF2_resource3 = 0x78
258+
234259
/**
235260
* @type dword
236261
* Caster X coordinate
237262
*/
238263
OUTER_SET EFF2_caster_x_coord = 0x80
264+
239265
/**
240266
* @type dword
241267
* Caster Y coordinate
242268
*/
243269
OUTER_SET EFF2_caster_y_coord = 0x84
270+
244271
/**
245272
* @type dword
246273
* Target X coordinate
247274
*/
248275
OUTER_SET EFF2_target_x_coord = 0x88
276+
249277
/**
250278
* @type dword
251279
* Target Y coordinate
252280
*/
253281
OUTER_SET EFF2_target_y_coord = 0x8c
282+
254283
/**
255284
* @type dword
256285
* **[Parent resource type](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x90)**
@@ -259,6 +288,7 @@ OUTER_SET EFF2_target_y_coord = 0x8c
259288
* - 2 ⟶ **[Item](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x90_2)**
260289
*/
261290
OUTER_SET EFF2_parent_resource_type = 0x90
291+
262292
/**
263293
* @type resref
264294
* **[Parent resource](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x94)**
@@ -270,6 +300,7 @@ OUTER_SET EFF2_parent_resource_type = 0x90
270300
* - So for instance, when applying +10% [Crushing Resistance](https://gibberlings3.github.io/iesdp/opcodes/bgee.htm#op87) to a CRE file whose [`Kit`](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/cre_v1.htm#CREV1_0_Header_0x244) is `BARBARIAN`, set this field to `"SPCL153"`.
271301
*/
272302
OUTER_SET EFF2_parent_resource = 0x94
303+
273304
/**
274305
* @type dword
275306
* **[Parent resource flags](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0x9C)**
@@ -282,32 +313,38 @@ OUTER_SET EFF2_parent_resource = 0x94
282313
* - bit 16 ⟶ Non-combat ability
283314
*/
284315
OUTER_SET EFF2_parent_resource_flags = 0x9c
316+
285317
/**
286318
* @type dword
287319
* **[Projectile](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0xA0)**
288320
*/
289321
OUTER_SET EFF2_projectile = 0xa0
322+
290323
/**
291324
* @type bytes
292325
* **[Variable name](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0xA8)**
293326
*/
294327
OUTER_SET EFF2_variable_name = 0xa8
328+
295329
/**
296330
* @type dword
297331
* **[Caster level](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0xC8)**
298332
*/
299333
OUTER_SET EFF2_caster_level = 0xc8
334+
300335
/**
301336
* @type dword
302337
* **[Secondary Type](https://gibberlings3.github.io/iesdp/file_formats/ie_formats/eff_v2.htm#effv2_Body_0xD0)**
303338
* - See [`MSECTYPE.2DA`](https://gibberlings3.github.io/iesdp/files/2da/2da_bgee/msectype.htm).
304339
*/
305340
OUTER_SET EFF2_sectype = 0xd0
341+
306342
/**
307343
* @type char array
308344
* Signature ('EFF ')
309345
*/
310346
OUTER_SET EFF2_signature = 0x0
347+
311348
/**
312349
* @type char array
313350
* Version ('V2.0')

0 commit comments

Comments
 (0)