iets-dev 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/.claude/settings.local.json +59 -0
  2. package/.github/workflows/build.yml +33 -0
  3. package/.github/workflows/npm-publish.yml +24 -0
  4. package/CLAUDE.md +68 -0
  5. package/README.md +21 -0
  6. package/eslint.config.js +34 -0
  7. package/package.json +28 -0
  8. package/pnpm-workspace.yaml +5 -0
  9. package/scripts/barrel-generator.test.ts +155 -0
  10. package/scripts/barrel-generator.ts +207 -0
  11. package/scripts/ensure-iesdp.sh +20 -0
  12. package/scripts/ts-update.sh +15 -0
  13. package/scripts/ts-update.test.ts +136 -0
  14. package/scripts/ts-update.ts +457 -0
  15. package/scripts/utils.ts +32 -0
  16. package/src/CHANGELOG.md +45 -0
  17. package/src/README.md +23 -0
  18. package/src/ambient.d.ts +23 -0
  19. package/src/bg1/index.d.ts +6 -0
  20. package/src/bg2/actions.d.ts +3512 -0
  21. package/src/bg2/align.ids.d.ts +4 -0
  22. package/src/bg2/animate.ids.d.ts +326 -0
  23. package/src/bg2/areaflag.ids.d.ts +4 -0
  24. package/src/bg2/areatype.ids.d.ts +4 -0
  25. package/src/bg2/astyles.ids.d.ts +11 -0
  26. package/src/bg2/class.ids.d.ts +135 -0
  27. package/src/bg2/damages.ids.d.ts +4 -0
  28. package/src/bg2/difflev.ids.d.ts +4 -0
  29. package/src/bg2/dir.ids.ts +23 -0
  30. package/src/bg2/dmgtype.ids.d.ts +4 -0
  31. package/src/bg2/ea.ids.d.ts +5 -0
  32. package/src/bg2/gender.ids.d.ts +4 -0
  33. package/src/bg2/general.ids.d.ts +4 -0
  34. package/src/bg2/gtimes.ids.d.ts +4 -0
  35. package/src/bg2/happy.ids.d.ts +4 -0
  36. package/src/bg2/help.d.ts +42 -0
  37. package/src/bg2/hotkey.ids.d.ts +4 -0
  38. package/src/bg2/index.ts +1809 -0
  39. package/src/bg2/jourtype.ids.d.ts +4 -0
  40. package/src/bg2/kit.ids.d.ts +4 -0
  41. package/src/bg2/mflags.ids.d.ts +4 -0
  42. package/src/bg2/modal.ids.d.ts +14 -0
  43. package/src/bg2/npc.ids.d.ts +4 -0
  44. package/src/bg2/object.d.ts +366 -0
  45. package/src/bg2/object.ts +69 -0
  46. package/src/bg2/race.ids.d.ts +85 -0
  47. package/src/bg2/reaction.ids.d.ts +4 -0
  48. package/src/bg2/scrlev.ids.d.ts +4 -0
  49. package/src/bg2/scroll.ids.d.ts +4 -0
  50. package/src/bg2/seq.ids.d.ts +4 -0
  51. package/src/bg2/shoutids.ids.d.ts +15 -0
  52. package/src/bg2/slots.ids.d.ts +88 -0
  53. package/src/bg2/sndslot.ids.d.ts +4 -0
  54. package/src/bg2/soundoff.ids.d.ts +4 -0
  55. package/src/bg2/specific.ids.d.ts +4 -0
  56. package/src/bg2/spell.ids.d.ts +2008 -0
  57. package/src/bg2/state.ids.d.ts +124 -0
  58. package/src/bg2/stats.ids.d.ts +4 -0
  59. package/src/bg2/time.ids.d.ts +4 -0
  60. package/src/bg2/timeoday.ids.d.ts +4 -0
  61. package/src/bg2/triggers.d.ts +1082 -0
  62. package/src/bg2/weather.ids.d.ts +4 -0
  63. package/src/index.ts +107 -0
  64. package/src/package.json +21 -0
  65. package/src/tsconfig.json +11 -0
  66. package/tsconfig.json +19 -0
@@ -0,0 +1,124 @@
1
+ import type { IE } from "../index";
2
+
3
+ /** State.ids */
4
+ export declare type State = IE<number, "State">;
5
+
6
+ /** 0x00000000 */
7
+ export declare const STATE_NORMAL: State;
8
+
9
+ /** 0x800 */
10
+ export declare const STATE_DEAD: State;
11
+
12
+ /** 0x400 - Unknown. This state is not set by the death effect. */
13
+ export declare const STATE_ACID_DEATH: State;
14
+
15
+ /** 0x200 - Unknown. This state is not set by the death effect. The creature seems to be shaded dark red until hit. */
16
+ export declare const STATE_FLAME_DEATH: State;
17
+
18
+ /** 0x100 - Unknown. This state is not set by the death effect. */
19
+ export declare const STATE_EXPLODING_DEATH: State;
20
+
21
+ /** 0x80 */
22
+ export declare const STATE_STONE_DEATH: State;
23
+
24
+ /** 0x40 */
25
+ export declare const STATE_FROZEN_DEATH: State;
26
+
27
+ /** 0x20 */
28
+ export declare const STATE_HELPLESS: State;
29
+
30
+ /** 0x10 - Unknown. This state is not set by the invisibility effect. */
31
+ export declare const STATE_INVISIBLE: State;
32
+
33
+ /** 0x8 - Unknown. This state is not set by the stunned effect. */
34
+ export declare const STATE_STUNNED: State;
35
+
36
+ /** 0x4 - This state seems to apply only to creatures that are affected by panic inducing magic. Creatures that fail their Morale check are not in this state. */
37
+ export declare const STATE_PANIC: State;
38
+
39
+ /** 0x2 */
40
+ export declare const STATE_BERSERK: State;
41
+
42
+ /** 0x1 */
43
+ export declare const STATE_SLEEPING: State;
44
+
45
+ /** 0x1000 */
46
+ export declare const STATE_SILENCED: State;
47
+
48
+ /** 0x2000 */
49
+ export declare const STATE_CHARMED: State;
50
+
51
+ /** 0x4000 */
52
+ export declare const STATE_POISONED: State;
53
+
54
+ /** 0x8000 */
55
+ export declare const STATE_HASTED: State;
56
+
57
+ /** 0x10000 */
58
+ export declare const STATE_SLOWED: State;
59
+
60
+ /** 0x20000 */
61
+ export declare const STATE_INFRAVISION: State;
62
+
63
+ /** 0x40000 - This state indicates whether the creature is currently blinded. */
64
+ export declare const STATE_BLIND: State;
65
+
66
+ /** 0x80000 - This state indicates whether the creature is "active" (as set by Activate/Deactivate actions). */
67
+ export declare const STATE_DISEASED: State;
68
+
69
+ /** 0x100000 */
70
+ export declare const STATE_FEEBLEMINDED: State;
71
+
72
+ /** 0x200000 */
73
+ export declare const STATE_NONDETECTION: State;
74
+
75
+ /** 0x400000 */
76
+ export declare const STATE_IMPROVEDINVISIBILITY: State;
77
+
78
+ /** 0x800000 */
79
+ export declare const STATE_BLESS: State;
80
+
81
+ /** 0x1000000 */
82
+ export declare const STATE_CHANT: State;
83
+
84
+ /** 0x2000000 */
85
+ export declare const STATE_DRAWUPONHOLYMIGHT: State;
86
+
87
+ /** 0x4000000 */
88
+ export declare const STATE_LUCK: State;
89
+
90
+ /** 0x8000000 */
91
+ export declare const STATE_AID: State;
92
+
93
+ /** 0x10000000 */
94
+ export declare const STATE_CHANTBAD: State;
95
+
96
+ /** 0x20000000 - Unknown. This state is not set by the Blur effect. */
97
+ export declare const STATE_BLUR: State;
98
+
99
+ /** 0x40000000 - Unknown. This state is not set by the Mirror Image effect. */
100
+ export declare const STATE_MIRRORIMAGE: State;
101
+
102
+ /** 0x80000000 - Common shortcut states include: */
103
+ export declare const STATE_CONFUSED: State;
104
+
105
+ /** 0x00102029 - Feeblemind & Charmed & Helpless & Stunned & Sleeping */
106
+ export declare const STATE_HARMLESS: State;
107
+
108
+ /** 0x80040004 - Blind & Confused & Panic */
109
+ export declare const STATE_RANGED_TARGET: State;
110
+
111
+ /** 0x8014202D - Feeblemind & Charmed & Helpless & Stunned & Sleeping & Blind & Confused & Panic */
112
+ export declare const STATE_OUT_OF_ACTION: State;
113
+
114
+ /** 0x00400010 - Invisibility & Improved Invisibility */
115
+ export declare const STATE_NOT_VISIBLE: State;
116
+
117
+ /** 0x63C08010 - Mirror Image & Chant & Haste & Aid & Improved Invisibility */
118
+ export declare const STATE_ENCHANTED: State;
119
+
120
+ /** 0x60400010 - Invisible & Improved Invisibility & Mirror Image */
121
+ export declare const STATE_ILLUSIONS: State;
122
+
123
+ /** 0x8000380F - Confused & Charmed & Silenced & Dead & Stunned & Panic & Berserk & Sleeping */
124
+ export declare const STATE_INVALID: State;
@@ -0,0 +1,4 @@
1
+ import type { IE } from "../index";
2
+
3
+ /** Stats.ids */
4
+ export declare type Stats = IE<number, "Stats">;
@@ -0,0 +1,4 @@
1
+ import type { IE } from "../index";
2
+
3
+ /** Time.ids */
4
+ export declare type TimeID = IE<number, "TimeID">;
@@ -0,0 +1,4 @@
1
+ import type { IE } from "../index";
2
+
3
+ /** TimeODay.ids */
4
+ export declare type TimeODay = IE<number, "TimeODay">;