@rpgm-tools/neo-angband-content 0.11.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.
- package/LICENSE.md +43 -0
- package/README.md +65 -0
- package/dist/compile.d.ts +10 -0
- package/dist/compile.d.ts.map +1 -0
- package/dist/compile.js +42 -0
- package/dist/compile.js.map +1 -0
- package/dist/data-exactness.reader.d.ts +105 -0
- package/dist/data-exactness.reader.d.ts.map +1 -0
- package/dist/data-exactness.reader.js +547 -0
- package/dist/data-exactness.reader.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/parser.d.ts +70 -0
- package/dist/parser.d.ts.map +1 -0
- package/dist/parser.js +365 -0
- package/dist/parser.js.map +1 -0
- package/dist/records.d.ts +101 -0
- package/dist/records.d.ts.map +1 -0
- package/dist/records.js +244 -0
- package/dist/records.js.map +1 -0
- package/dist/specs/generate.d.ts +12 -0
- package/dist/specs/generate.d.ts.map +1 -0
- package/dist/specs/generate.js +57 -0
- package/dist/specs/generate.js.map +1 -0
- package/dist/specs/index.d.ts +9 -0
- package/dist/specs/index.d.ts.map +1 -0
- package/dist/specs/index.js +60 -0
- package/dist/specs/index.js.map +1 -0
- package/dist/specs/init.d.ts +23 -0
- package/dist/specs/init.d.ts.map +1 -0
- package/dist/specs/init.js +305 -0
- package/dist/specs/init.js.map +1 -0
- package/dist/specs/misc.d.ts +33 -0
- package/dist/specs/misc.d.ts.map +1 -0
- package/dist/specs/misc.js +146 -0
- package/dist/specs/misc.js.map +1 -0
- package/dist/specs/mon-init.d.ts +22 -0
- package/dist/specs/mon-init.d.ts.map +1 -0
- package/dist/specs/mon-init.js +157 -0
- package/dist/specs/mon-init.js.map +1 -0
- package/dist/specs/obj-init.d.ts +19 -0
- package/dist/specs/obj-init.d.ts.map +1 -0
- package/dist/specs/obj-init.js +219 -0
- package/dist/specs/obj-init.js.map +1 -0
- package/dist/specs/ui-entry.d.ts +22 -0
- package/dist/specs/ui-entry.d.ts.map +1 -0
- package/dist/specs/ui-entry.js +69 -0
- package/dist/specs/ui-entry.js.map +1 -0
- package/dist/specs/visuals.d.ts +26 -0
- package/dist/specs/visuals.d.ts.map +1 -0
- package/dist/specs/visuals.js +35 -0
- package/dist/specs/visuals.js.map +1 -0
- package/pack/activation.json +3340 -0
- package/pack/artifact.json +5146 -0
- package/pack/blow_effects.json +370 -0
- package/pack/blow_methods.json +286 -0
- package/pack/body.json +59 -0
- package/pack/brand.json +100 -0
- package/pack/chest_trap.json +117 -0
- package/pack/class.json +5501 -0
- package/pack/constants.json +470 -0
- package/pack/curse.json +580 -0
- package/pack/dungeon_profile.json +836 -0
- package/pack/ego_item.json +2900 -0
- package/pack/flavor.json +1541 -0
- package/pack/hints.json +303 -0
- package/pack/history.json +1656 -0
- package/pack/manifest.json +52 -0
- package/pack/monster.json +29392 -0
- package/pack/monster_base.json +688 -0
- package/pack/monster_spell.json +2735 -0
- package/pack/names.json +1204 -0
- package/pack/object.json +11877 -0
- package/pack/object_base.json +364 -0
- package/pack/object_property.json +2034 -0
- package/pack/p_race.json +447 -0
- package/pack/pain.json +150 -0
- package/pack/pit.json +617 -0
- package/pack/player_property.json +519 -0
- package/pack/player_timed.json +1321 -0
- package/pack/projection.json +664 -0
- package/pack/quest.json +18 -0
- package/pack/realm.json +34 -0
- package/pack/room_template.json +9571 -0
- package/pack/shape.json +263 -0
- package/pack/slay.json +116 -0
- package/pack/store.json +675 -0
- package/pack/summon.json +143 -0
- package/pack/terrain.json +511 -0
- package/pack/trap.json +1483 -0
- package/pack/ui_entry.json +382 -0
- package/pack/ui_entry_base.json +60 -0
- package/pack/ui_entry_renderer.json +43 -0
- package/pack/ui_knowledge.json +302 -0
- package/pack/vault.json +4355 -0
- package/pack/visuals.json +680 -0
- package/pack/world.json +1030 -0
- package/package.json +67 -0
- package/src/compile.ts +55 -0
- package/src/data-exactness.reader.ts +559 -0
- package/src/index.ts +31 -0
- package/src/parser.ts +406 -0
- package/src/records.ts +341 -0
- package/src/specs/generate.ts +61 -0
- package/src/specs/index.ts +103 -0
- package/src/specs/init.ts +322 -0
- package/src/specs/misc.ts +153 -0
- package/src/specs/mon-init.ts +165 -0
- package/src/specs/obj-init.ts +230 -0
- package/src/specs/ui-entry.ts +74 -0
- package/src/specs/visuals.ts +37 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specs for the gamedata files whose upstream parsers live in
|
|
3
|
+
* src/mon-init.c: blow_methods (meth_parser), blow_effects (eff_parser),
|
|
4
|
+
* pain, monster_spell, monster_base, monster, pit.
|
|
5
|
+
*
|
|
6
|
+
* Format strings are copied verbatim from the parser_reg() calls.
|
|
7
|
+
*/
|
|
8
|
+
export const blowMethodsSpec = {
|
|
9
|
+
name: "blow_methods",
|
|
10
|
+
upstream: ["src/mon-init.c"],
|
|
11
|
+
recordStart: "name",
|
|
12
|
+
directives: [
|
|
13
|
+
{ fmt: "name str name" },
|
|
14
|
+
{ fmt: "cut uint cut" },
|
|
15
|
+
{ fmt: "stun uint stun" },
|
|
16
|
+
{ fmt: "miss uint miss" },
|
|
17
|
+
{ fmt: "phys uint phys" },
|
|
18
|
+
{ fmt: "msg ?str msg" },
|
|
19
|
+
{ fmt: "act str act", repeat: true },
|
|
20
|
+
{ fmt: "desc str desc", repeat: true },
|
|
21
|
+
],
|
|
22
|
+
};
|
|
23
|
+
export const blowEffectsSpec = {
|
|
24
|
+
name: "blow_effects",
|
|
25
|
+
upstream: ["src/mon-init.c"],
|
|
26
|
+
recordStart: "name",
|
|
27
|
+
directives: [
|
|
28
|
+
{ fmt: "name str name" },
|
|
29
|
+
{ fmt: "power int power" },
|
|
30
|
+
{ fmt: "eval int eval" },
|
|
31
|
+
{ fmt: "desc str desc", repeat: true },
|
|
32
|
+
{ fmt: "lore-color-base sym color" },
|
|
33
|
+
{ fmt: "lore-color-resist sym color" },
|
|
34
|
+
{ fmt: "lore-color-immune sym color" },
|
|
35
|
+
{ fmt: "effect-type str type" },
|
|
36
|
+
{ fmt: "resist str resist" },
|
|
37
|
+
{ fmt: "lash-type str type" },
|
|
38
|
+
],
|
|
39
|
+
};
|
|
40
|
+
export const painSpec = {
|
|
41
|
+
name: "pain",
|
|
42
|
+
upstream: ["src/mon-init.c"],
|
|
43
|
+
recordStart: "type",
|
|
44
|
+
directives: [
|
|
45
|
+
{ fmt: "type uint index" },
|
|
46
|
+
{ fmt: "message str message", repeat: true },
|
|
47
|
+
],
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* monster_spell.txt: each spell has an implicit first "level"; the
|
|
51
|
+
* power-cutoff directive starts another level, and the lore/message
|
|
52
|
+
* directives attach to the most recent level (the record itself until the
|
|
53
|
+
* first power-cutoff appears).
|
|
54
|
+
*/
|
|
55
|
+
export const monsterSpellSpec = {
|
|
56
|
+
name: "monster_spell",
|
|
57
|
+
upstream: ["src/mon-init.c"],
|
|
58
|
+
recordStart: "name",
|
|
59
|
+
directives: [
|
|
60
|
+
{ fmt: "name str name" },
|
|
61
|
+
{ fmt: "msgt sym type" },
|
|
62
|
+
{ fmt: "hit uint hit" },
|
|
63
|
+
{ fmt: "effect sym eff ?sym type ?int radius ?int other", repeat: true },
|
|
64
|
+
{ fmt: "effect-yx int y int x", childOf: ["effect"] },
|
|
65
|
+
{ fmt: "dice str dice", childOf: ["effect"] },
|
|
66
|
+
{ fmt: "expr sym name sym base str expr", childOf: ["effect"], repeat: true },
|
|
67
|
+
{ fmt: "power-cutoff int power", repeat: true },
|
|
68
|
+
{ fmt: "lore str text", childOf: ["power-cutoff"], repeat: true },
|
|
69
|
+
{ fmt: "lore-color-base sym color", childOf: ["power-cutoff"] },
|
|
70
|
+
{ fmt: "lore-color-resist sym color", childOf: ["power-cutoff"] },
|
|
71
|
+
{ fmt: "lore-color-immune sym color", childOf: ["power-cutoff"] },
|
|
72
|
+
{ fmt: "message-vis str text", childOf: ["power-cutoff"], repeat: true },
|
|
73
|
+
{ fmt: "message-invis str text", childOf: ["power-cutoff"], repeat: true },
|
|
74
|
+
{ fmt: "message-miss str text", childOf: ["power-cutoff"], repeat: true },
|
|
75
|
+
{ fmt: "message-save str text", childOf: ["power-cutoff"], repeat: true },
|
|
76
|
+
],
|
|
77
|
+
};
|
|
78
|
+
export const monsterBaseSpec = {
|
|
79
|
+
name: "monster_base",
|
|
80
|
+
upstream: ["src/mon-init.c"],
|
|
81
|
+
recordStart: "name",
|
|
82
|
+
directives: [
|
|
83
|
+
{ fmt: "name str name" },
|
|
84
|
+
{ fmt: "glyph char glyph" },
|
|
85
|
+
{ fmt: "pain uint pain" },
|
|
86
|
+
{ fmt: "flags ?str flags", repeat: true },
|
|
87
|
+
{ fmt: "desc str desc", repeat: true },
|
|
88
|
+
],
|
|
89
|
+
};
|
|
90
|
+
export const monsterSpec = {
|
|
91
|
+
name: "monster",
|
|
92
|
+
upstream: ["src/mon-init.c"],
|
|
93
|
+
recordStart: "name",
|
|
94
|
+
directives: [
|
|
95
|
+
{ fmt: "name str name" },
|
|
96
|
+
{ fmt: "plural ?str plural" },
|
|
97
|
+
{ fmt: "base sym base" },
|
|
98
|
+
{ fmt: "glyph char glyph" },
|
|
99
|
+
{ fmt: "color sym color" },
|
|
100
|
+
{ fmt: "speed int speed" },
|
|
101
|
+
{ fmt: "hit-points int hp" },
|
|
102
|
+
{ fmt: "light int light" },
|
|
103
|
+
{ fmt: "hearing int hearing" },
|
|
104
|
+
{ fmt: "smell int smell" },
|
|
105
|
+
{ fmt: "armor-class int ac" },
|
|
106
|
+
{ fmt: "sleepiness int sleep" },
|
|
107
|
+
{ fmt: "depth int level" },
|
|
108
|
+
{ fmt: "rarity int rarity" },
|
|
109
|
+
{ fmt: "experience int mexp" },
|
|
110
|
+
{ fmt: "blow sym method ?sym effect ?rand damage", repeat: true },
|
|
111
|
+
{ fmt: "flags ?str flags", repeat: true },
|
|
112
|
+
{ fmt: "flags-off ?str flags", repeat: true },
|
|
113
|
+
{ fmt: "desc str desc", repeat: true },
|
|
114
|
+
{ fmt: "innate-freq int freq" },
|
|
115
|
+
{ fmt: "spell-freq int freq" },
|
|
116
|
+
{ fmt: "spell-power uint power" },
|
|
117
|
+
{ fmt: "spells str spells", repeat: true },
|
|
118
|
+
{ fmt: "message-vis sym spell ?str message", repeat: true },
|
|
119
|
+
{ fmt: "message-invis sym spell ?str message", repeat: true },
|
|
120
|
+
{ fmt: "message-miss sym spell ?str message", repeat: true },
|
|
121
|
+
{
|
|
122
|
+
fmt: "drop sym tval sym sval uint chance uint min uint max",
|
|
123
|
+
repeat: true,
|
|
124
|
+
orderKey: "drop-order",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
fmt: "drop-base sym tval uint chance uint min uint max",
|
|
128
|
+
repeat: true,
|
|
129
|
+
orderKey: "drop-order",
|
|
130
|
+
},
|
|
131
|
+
{ fmt: "friends uint chance rand number sym name ?sym role", repeat: true },
|
|
132
|
+
{ fmt: "friends-base uint chance rand number sym name ?sym role", repeat: true },
|
|
133
|
+
{ fmt: "mimic sym tval sym sval", repeat: true },
|
|
134
|
+
{ fmt: "shape str name", repeat: true },
|
|
135
|
+
{ fmt: "color-cycle sym group sym cycle" },
|
|
136
|
+
],
|
|
137
|
+
};
|
|
138
|
+
export const pitSpec = {
|
|
139
|
+
name: "pit",
|
|
140
|
+
upstream: ["src/mon-init.c"],
|
|
141
|
+
recordStart: "name",
|
|
142
|
+
directives: [
|
|
143
|
+
{ fmt: "name str name" },
|
|
144
|
+
{ fmt: "room uint type" },
|
|
145
|
+
{ fmt: "alloc uint rarity uint level" },
|
|
146
|
+
{ fmt: "obj-rarity uint obj_rarity" },
|
|
147
|
+
{ fmt: "mon-base sym base", repeat: true },
|
|
148
|
+
{ fmt: "mon-ban sym race", repeat: true },
|
|
149
|
+
{ fmt: "color sym color", repeat: true },
|
|
150
|
+
{ fmt: "flags-req ?str flags", repeat: true },
|
|
151
|
+
{ fmt: "flags-ban ?str flags", repeat: true },
|
|
152
|
+
{ fmt: "innate-freq int freq" },
|
|
153
|
+
{ fmt: "spell-req ?str spells", repeat: true },
|
|
154
|
+
{ fmt: "spell-ban ?str spells", repeat: true },
|
|
155
|
+
],
|
|
156
|
+
};
|
|
157
|
+
//# sourceMappingURL=mon-init.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mon-init.js","sourceRoot":"","sources":["../../src/specs/mon-init.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,eAAe,GAAa;IACvC,IAAI,EAAE,cAAc;IACpB,QAAQ,EAAE,CAAC,gBAAgB,CAAC;IAC5B,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE;QACV,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,cAAc,EAAE;QACvB,EAAE,GAAG,EAAE,gBAAgB,EAAE;QACzB,EAAE,GAAG,EAAE,gBAAgB,EAAE;QACzB,EAAE,GAAG,EAAE,gBAAgB,EAAE;QACzB,EAAE,GAAG,EAAE,cAAc,EAAE;QACvB,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE;QACpC,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE;KACvC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAa;IACvC,IAAI,EAAE,cAAc;IACpB,QAAQ,EAAE,CAAC,gBAAgB,CAAC;IAC5B,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE;QACV,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,iBAAiB,EAAE;QAC1B,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE;QACtC,EAAE,GAAG,EAAE,2BAA2B,EAAE;QACpC,EAAE,GAAG,EAAE,6BAA6B,EAAE;QACtC,EAAE,GAAG,EAA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, object_base, slay, brand, curse, activation
|
|
4
|
+
* (act_parser), object, ego_item, artifact, object_property.
|
|
5
|
+
*
|
|
6
|
+
* Format strings are copied verbatim from the parser_reg() calls.
|
|
7
|
+
*/
|
|
8
|
+
import type { FileSpec } from "../records.js";
|
|
9
|
+
export declare const projectionSpec: FileSpec;
|
|
10
|
+
export declare const objectBaseSpec: FileSpec;
|
|
11
|
+
export declare const slaySpec: FileSpec;
|
|
12
|
+
export declare const brandSpec: FileSpec;
|
|
13
|
+
export declare const curseSpec: FileSpec;
|
|
14
|
+
export declare const activationSpec: FileSpec;
|
|
15
|
+
export declare const objectSpec: FileSpec;
|
|
16
|
+
export declare const egoItemSpec: FileSpec;
|
|
17
|
+
export declare const artifactSpec: FileSpec;
|
|
18
|
+
export declare const objectPropertySpec: FileSpec;
|
|
19
|
+
//# sourceMappingURL=obj-init.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"obj-init.d.ts","sourceRoot":"","sources":["../../src/specs/obj-init.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,eAAO,MAAM,cAAc,EAAE,QAqB5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,QAa5B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,QAetB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAcvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAqBvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,QAgB5B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,QAmCxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAuBzB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAwB1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,QAmBhC,CAAC"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specs for the gamedata files whose upstream parsers live in
|
|
3
|
+
* src/obj-init.c: projection, object_base, slay, brand, curse, activation
|
|
4
|
+
* (act_parser), object, ego_item, artifact, object_property.
|
|
5
|
+
*
|
|
6
|
+
* Format strings are copied verbatim from the parser_reg() calls.
|
|
7
|
+
*/
|
|
8
|
+
export const projectionSpec = {
|
|
9
|
+
name: "projection",
|
|
10
|
+
upstream: ["src/obj-init.c"],
|
|
11
|
+
recordStart: "code",
|
|
12
|
+
directives: [
|
|
13
|
+
{ fmt: "code str code" },
|
|
14
|
+
{ fmt: "name str name" },
|
|
15
|
+
{ fmt: "type str type" },
|
|
16
|
+
{ fmt: "desc str desc" },
|
|
17
|
+
{ fmt: "player-desc str desc" },
|
|
18
|
+
{ fmt: "blind-desc str desc" },
|
|
19
|
+
{ fmt: "lash-desc str desc" },
|
|
20
|
+
{ fmt: "numerator uint num" },
|
|
21
|
+
{ fmt: "denominator rand denom" },
|
|
22
|
+
{ fmt: "divisor uint div" },
|
|
23
|
+
{ fmt: "damage-cap uint cap" },
|
|
24
|
+
{ fmt: "msgt sym type" },
|
|
25
|
+
{ fmt: "obvious uint answer" },
|
|
26
|
+
{ fmt: "wake uint answer" },
|
|
27
|
+
{ fmt: "color sym color" },
|
|
28
|
+
],
|
|
29
|
+
};
|
|
30
|
+
export const objectBaseSpec = {
|
|
31
|
+
name: "object_base",
|
|
32
|
+
upstream: ["src/obj-init.c"],
|
|
33
|
+
recordStart: "name",
|
|
34
|
+
header: ["default"],
|
|
35
|
+
directives: [
|
|
36
|
+
{ fmt: "default sym label int value", repeat: true },
|
|
37
|
+
{ fmt: "name sym tval ?str name" },
|
|
38
|
+
{ fmt: "graphics sym color" },
|
|
39
|
+
{ fmt: "break int breakage" },
|
|
40
|
+
{ fmt: "max-stack int size" },
|
|
41
|
+
{ fmt: "flags str flags", repeat: true },
|
|
42
|
+
],
|
|
43
|
+
};
|
|
44
|
+
export const slaySpec = {
|
|
45
|
+
name: "slay",
|
|
46
|
+
upstream: ["src/obj-init.c"],
|
|
47
|
+
recordStart: "code",
|
|
48
|
+
directives: [
|
|
49
|
+
{ fmt: "code str code" },
|
|
50
|
+
{ fmt: "name str name" },
|
|
51
|
+
{ fmt: "race-flag sym flag" },
|
|
52
|
+
{ fmt: "base sym base" },
|
|
53
|
+
{ fmt: "multiplier uint multiplier" },
|
|
54
|
+
{ fmt: "o-multiplier uint multiplier" },
|
|
55
|
+
{ fmt: "power uint power" },
|
|
56
|
+
{ fmt: "melee-verb str verb" },
|
|
57
|
+
{ fmt: "range-verb str verb" },
|
|
58
|
+
],
|
|
59
|
+
};
|
|
60
|
+
export const brandSpec = {
|
|
61
|
+
name: "brand",
|
|
62
|
+
upstream: ["src/obj-init.c"],
|
|
63
|
+
recordStart: "code",
|
|
64
|
+
directives: [
|
|
65
|
+
{ fmt: "code str code" },
|
|
66
|
+
{ fmt: "name str name" },
|
|
67
|
+
{ fmt: "verb str verb" },
|
|
68
|
+
{ fmt: "multiplier uint multiplier" },
|
|
69
|
+
{ fmt: "o-multiplier uint multiplier" },
|
|
70
|
+
{ fmt: "power uint power" },
|
|
71
|
+
{ fmt: "resist-flag sym flag" },
|
|
72
|
+
{ fmt: "vuln-flag sym flag" },
|
|
73
|
+
],
|
|
74
|
+
};
|
|
75
|
+
export const curseSpec = {
|
|
76
|
+
name: "curse",
|
|
77
|
+
upstream: ["src/obj-init.c"],
|
|
78
|
+
recordStart: "name",
|
|
79
|
+
directives: [
|
|
80
|
+
{ fmt: "name str name" },
|
|
81
|
+
{ fmt: "type sym tval", repeat: true },
|
|
82
|
+
{ fmt: "weight int adj" },
|
|
83
|
+
{ fmt: "combat int to-h int to-d int to-a" },
|
|
84
|
+
{ fmt: "effect sym eff ?sym type ?int radius ?int other", repeat: true },
|
|
85
|
+
{ fmt: "effect-yx int y int x", childOf: ["effect"] },
|
|
86
|
+
{ fmt: "dice str dice", childOf: ["effect"] },
|
|
87
|
+
{ fmt: "expr sym name sym base str expr", childOf: ["effect"], repeat: true },
|
|
88
|
+
{ fmt: "msg str text", repeat: true },
|
|
89
|
+
{ fmt: "time rand time" },
|
|
90
|
+
{ fmt: "flags str flags", repeat: true },
|
|
91
|
+
{ fmt: "values str values", repeat: true },
|
|
92
|
+
{ fmt: "desc str desc", repeat: true },
|
|
93
|
+
{ fmt: "conflict str conf", repeat: true },
|
|
94
|
+
{ fmt: "conflict-flags str flags", repeat: true },
|
|
95
|
+
],
|
|
96
|
+
};
|
|
97
|
+
export const activationSpec = {
|
|
98
|
+
name: "activation",
|
|
99
|
+
upstream: ["src/obj-init.c"],
|
|
100
|
+
recordStart: "name",
|
|
101
|
+
directives: [
|
|
102
|
+
{ fmt: "name str name" },
|
|
103
|
+
{ fmt: "aim uint aim" },
|
|
104
|
+
{ fmt: "level int level" },
|
|
105
|
+
{ fmt: "power uint power" },
|
|
106
|
+
{ fmt: "effect sym eff ?sym type ?int radius ?int other", repeat: true },
|
|
107
|
+
{ fmt: "effect-yx int y int x", childOf: ["effect"] },
|
|
108
|
+
{ fmt: "dice str dice", childOf: ["effect"] },
|
|
109
|
+
{ fmt: "expr sym name sym base str expr", childOf: ["effect"], repeat: true },
|
|
110
|
+
{ fmt: "msg str msg", repeat: true },
|
|
111
|
+
{ fmt: "desc str desc", repeat: true },
|
|
112
|
+
],
|
|
113
|
+
};
|
|
114
|
+
export const objectSpec = {
|
|
115
|
+
name: "object",
|
|
116
|
+
upstream: ["src/obj-init.c"],
|
|
117
|
+
recordStart: "name",
|
|
118
|
+
directives: [
|
|
119
|
+
{ fmt: "name str name" },
|
|
120
|
+
{ fmt: "type sym tval" },
|
|
121
|
+
{ fmt: "graphics char glyph sym color" },
|
|
122
|
+
{ fmt: "level int level" },
|
|
123
|
+
{ fmt: "weight int weight" },
|
|
124
|
+
{ fmt: "cost int cost" },
|
|
125
|
+
{ fmt: "alloc int common str minmax" },
|
|
126
|
+
{ fmt: "attack rand hd rand to-h rand to-d" },
|
|
127
|
+
{ fmt: "armor int ac rand to-a" },
|
|
128
|
+
{ fmt: "charges rand charges" },
|
|
129
|
+
/* Repeats once in the data (Dragon Breath); upstream last-wins. */
|
|
130
|
+
{ fmt: "pile int prob rand stack", repeat: true },
|
|
131
|
+
{ fmt: "flags str flags", repeat: true },
|
|
132
|
+
{ fmt: "power int power" },
|
|
133
|
+
{ fmt: "effect sym eff ?sym type ?int radius ?int other", repeat: true },
|
|
134
|
+
{ fmt: "effect-yx int y int x", childOf: ["effect"] },
|
|
135
|
+
/* parse_object_dice (obj-init.c L1947-1949) dice_free()s the old dice, so
|
|
136
|
+
* a repeated line is legal and the last wins (k-info.c test_dice0). */
|
|
137
|
+
{ fmt: "dice str dice", childOf: ["effect"] },
|
|
138
|
+
{ fmt: "expr sym name sym base str expr", childOf: ["effect"], repeat: true },
|
|
139
|
+
{ fmt: "msg str text", repeat: true },
|
|
140
|
+
{ fmt: "vis-msg str text", repeat: true },
|
|
141
|
+
{ fmt: "time rand time" },
|
|
142
|
+
{ fmt: "pval rand pval" },
|
|
143
|
+
{ fmt: "values str values", repeat: true },
|
|
144
|
+
{ fmt: "desc str text", repeat: true },
|
|
145
|
+
{ fmt: "slay str code", repeat: true },
|
|
146
|
+
{ fmt: "brand str code", repeat: true },
|
|
147
|
+
{ fmt: "curse sym name int power", repeat: true },
|
|
148
|
+
],
|
|
149
|
+
};
|
|
150
|
+
export const egoItemSpec = {
|
|
151
|
+
name: "ego_item",
|
|
152
|
+
upstream: ["src/obj-init.c"],
|
|
153
|
+
recordStart: "name",
|
|
154
|
+
directives: [
|
|
155
|
+
{ fmt: "name str name" },
|
|
156
|
+
{ fmt: "info int cost int rating" },
|
|
157
|
+
{ fmt: "alloc int common str minmax" },
|
|
158
|
+
{ fmt: "type sym tval", repeat: true },
|
|
159
|
+
{ fmt: "item sym tval sym sval", repeat: true },
|
|
160
|
+
{ fmt: "combat rand th rand td rand ta" },
|
|
161
|
+
{ fmt: "min-combat int th int td int ta" },
|
|
162
|
+
{ fmt: "act str name" },
|
|
163
|
+
{ fmt: "time rand time" },
|
|
164
|
+
{ fmt: "flags ?str flags", repeat: true },
|
|
165
|
+
{ fmt: "flags-off ?str flags", repeat: true },
|
|
166
|
+
{ fmt: "values str values", repeat: true },
|
|
167
|
+
{ fmt: "min-values str min_values", repeat: true },
|
|
168
|
+
{ fmt: "desc str text", repeat: true },
|
|
169
|
+
{ fmt: "slay str code", repeat: true },
|
|
170
|
+
{ fmt: "brand str code", repeat: true },
|
|
171
|
+
{ fmt: "curse sym name int power", repeat: true },
|
|
172
|
+
],
|
|
173
|
+
};
|
|
174
|
+
export const artifactSpec = {
|
|
175
|
+
name: "artifact",
|
|
176
|
+
upstream: ["src/obj-init.c"],
|
|
177
|
+
recordStart: "name",
|
|
178
|
+
directives: [
|
|
179
|
+
{ fmt: "name str name" },
|
|
180
|
+
{ fmt: "base-object sym tval sym sval" },
|
|
181
|
+
{ fmt: "graphics char glyph sym color" },
|
|
182
|
+
{ fmt: "level int level" },
|
|
183
|
+
{ fmt: "weight int weight" },
|
|
184
|
+
{ fmt: "cost int cost" },
|
|
185
|
+
{ fmt: "alloc int common str minmax" },
|
|
186
|
+
{ fmt: "attack rand hd int to-h int to-d" },
|
|
187
|
+
{ fmt: "armor int ac int to-a" },
|
|
188
|
+
{ fmt: "flags ?str flags", repeat: true },
|
|
189
|
+
{ fmt: "act str name" },
|
|
190
|
+
{ fmt: "time rand time" },
|
|
191
|
+
{ fmt: "msg str text", repeat: true },
|
|
192
|
+
{ fmt: "values str values", repeat: true },
|
|
193
|
+
{ fmt: "desc str text", repeat: true },
|
|
194
|
+
{ fmt: "slay str code", repeat: true },
|
|
195
|
+
{ fmt: "brand str code", repeat: true },
|
|
196
|
+
{ fmt: "curse sym name int power", repeat: true },
|
|
197
|
+
],
|
|
198
|
+
};
|
|
199
|
+
export const objectPropertySpec = {
|
|
200
|
+
name: "object_property",
|
|
201
|
+
upstream: ["src/obj-init.c"],
|
|
202
|
+
recordStart: "name",
|
|
203
|
+
directives: [
|
|
204
|
+
{ fmt: "name str name" },
|
|
205
|
+
{ fmt: "code str code" },
|
|
206
|
+
{ fmt: "type str type" },
|
|
207
|
+
{ fmt: "subtype str subtype" },
|
|
208
|
+
{ fmt: "id-type str id" },
|
|
209
|
+
{ fmt: "power int power" },
|
|
210
|
+
{ fmt: "mult int mult" },
|
|
211
|
+
{ fmt: "type-mult sym type int mult", repeat: true },
|
|
212
|
+
{ fmt: "adjective str adj" },
|
|
213
|
+
{ fmt: "neg-adjective str neg_adj" },
|
|
214
|
+
{ fmt: "msg str msg" },
|
|
215
|
+
{ fmt: "desc str desc" },
|
|
216
|
+
{ fmt: "bindui sym ui int aux ?int uival" },
|
|
217
|
+
],
|
|
218
|
+
};
|
|
219
|
+
//# sourceMappingURL=obj-init.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"obj-init.js","sourceRoot":"","sources":["../../src/specs/obj-init.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,cAAc,GAAa;IACtC,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,CAAC,gBAAgB,CAAC;IAC5B,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE;QACV,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,sBAAsB,EAAE;QAC/B,EAAE,GAAG,EAAE,qBAAqB,EAAE;QAC9B,EAAE,GAAG,EAAE,oBAAoB,EAAE;QAC7B,EAAE,GAAG,EAAE,oBAAoB,EAAE;QAC7B,EAAE,GAAG,EAAE,wBAAwB,EAAE;QACjC,EAAE,GAAG,EAAE,kBAAkB,EAAE;QAC3B,EAAE,GAAG,EAAE,qBAAqB,EAAE;QAC9B,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,qBAAqB,EAAE;QAC9B,EAAE,GAAG,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,EAAE,IAAI,EAAE;QACpD,EAAE,GAAG,EAAE,mBAAmB,EAAE;QAC5B,EAAE,GAAG,EAAE,2BAA2B,EAAE;QACpC,EAAE,GAAG,EAAE,aAAa,EAAE;QACtB,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,kCAAkC,EAAE;KAC5C;CACF,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specs for the second-character-screen configuration files whose upstream
|
|
3
|
+
* parsers live in src/ui-entry.c (ui_entry_parser, shared by ui_entry_base.txt
|
|
4
|
+
* and ui_entry.txt) and src/ui-entry-renderers.c (ui_entry_renderer_parser).
|
|
5
|
+
*
|
|
6
|
+
* Format strings are copied verbatim from the parser_reg() calls
|
|
7
|
+
* (init_parse_ui_entry L2283-2296, init_parse_ui_entry_renderer L1639-1649).
|
|
8
|
+
*
|
|
9
|
+
* The engine that consumes these (packages/core/src/game/ui-entry.ts) performs
|
|
10
|
+
* template resolution, generic (element/stat) expansion, category/priority
|
|
11
|
+
* association and the shortened-label fill; the compiler only mirrors the raw
|
|
12
|
+
* directives faithfully. category accumulates (multiple category lines), so it
|
|
13
|
+
* is marked repeat; priority appears at most once per record in the shipped
|
|
14
|
+
* data (always before any category, i.e. a default priority) so it is a scalar.
|
|
15
|
+
* The MAX_SHORTENED (10) label overrides are registered by the upstream loop
|
|
16
|
+
* `parser_reg(p, format("label%d str label%d", i, i), ...)`.
|
|
17
|
+
*/
|
|
18
|
+
import type { FileSpec } from "../records.js";
|
|
19
|
+
export declare const uiEntryBaseSpec: FileSpec;
|
|
20
|
+
export declare const uiEntrySpec: FileSpec;
|
|
21
|
+
export declare const uiEntryRendererSpec: FileSpec;
|
|
22
|
+
//# sourceMappingURL=ui-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-entry.d.ts","sourceRoot":"","sources":["../../src/specs/ui-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAyB9C,eAAO,MAAM,eAAe,EAAE,QAK7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAKzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,QAgBjC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specs for the second-character-screen configuration files whose upstream
|
|
3
|
+
* parsers live in src/ui-entry.c (ui_entry_parser, shared by ui_entry_base.txt
|
|
4
|
+
* and ui_entry.txt) and src/ui-entry-renderers.c (ui_entry_renderer_parser).
|
|
5
|
+
*
|
|
6
|
+
* Format strings are copied verbatim from the parser_reg() calls
|
|
7
|
+
* (init_parse_ui_entry L2283-2296, init_parse_ui_entry_renderer L1639-1649).
|
|
8
|
+
*
|
|
9
|
+
* The engine that consumes these (packages/core/src/game/ui-entry.ts) performs
|
|
10
|
+
* template resolution, generic (element/stat) expansion, category/priority
|
|
11
|
+
* association and the shortened-label fill; the compiler only mirrors the raw
|
|
12
|
+
* directives faithfully. category accumulates (multiple category lines), so it
|
|
13
|
+
* is marked repeat; priority appears at most once per record in the shipped
|
|
14
|
+
* data (always before any category, i.e. a default priority) so it is a scalar.
|
|
15
|
+
* The MAX_SHORTENED (10) label overrides are registered by the upstream loop
|
|
16
|
+
* `parser_reg(p, format("label%d str label%d", i, i), ...)`.
|
|
17
|
+
*/
|
|
18
|
+
const uiEntryDirectives = [
|
|
19
|
+
{ fmt: "name str name" },
|
|
20
|
+
{ fmt: "template str template" },
|
|
21
|
+
{ fmt: "parameter str parameter" },
|
|
22
|
+
{ fmt: "renderer str renderer" },
|
|
23
|
+
{ fmt: "combine str combine" },
|
|
24
|
+
{ fmt: "label str label" },
|
|
25
|
+
{ fmt: "label1 str label1" },
|
|
26
|
+
{ fmt: "label2 str label2" },
|
|
27
|
+
{ fmt: "label3 str label3" },
|
|
28
|
+
{ fmt: "label4 str label4" },
|
|
29
|
+
{ fmt: "label5 str label5" },
|
|
30
|
+
{ fmt: "label6 str label6" },
|
|
31
|
+
{ fmt: "label7 str label7" },
|
|
32
|
+
{ fmt: "label8 str label8" },
|
|
33
|
+
{ fmt: "label9 str label9" },
|
|
34
|
+
{ fmt: "label10 str label10" },
|
|
35
|
+
{ fmt: "category str category", repeat: true },
|
|
36
|
+
{ fmt: "priority str priority" },
|
|
37
|
+
{ fmt: "flags ?str flags", repeat: true },
|
|
38
|
+
{ fmt: "desc str desc", repeat: true },
|
|
39
|
+
];
|
|
40
|
+
export const uiEntryBaseSpec = {
|
|
41
|
+
name: "ui_entry_base",
|
|
42
|
+
upstream: ["src/ui-entry.c"],
|
|
43
|
+
recordStart: "name",
|
|
44
|
+
directives: [...uiEntryDirectives],
|
|
45
|
+
};
|
|
46
|
+
export const uiEntrySpec = {
|
|
47
|
+
name: "ui_entry",
|
|
48
|
+
upstream: ["src/ui-entry.c"],
|
|
49
|
+
recordStart: "name",
|
|
50
|
+
directives: [...uiEntryDirectives],
|
|
51
|
+
};
|
|
52
|
+
export const uiEntryRendererSpec = {
|
|
53
|
+
name: "ui_entry_renderer",
|
|
54
|
+
upstream: ["src/ui-entry-renderers.c"],
|
|
55
|
+
recordStart: "name",
|
|
56
|
+
directives: [
|
|
57
|
+
{ fmt: "name str name" },
|
|
58
|
+
{ fmt: "code str code" },
|
|
59
|
+
{ fmt: "combine str combine" },
|
|
60
|
+
{ fmt: "colors str colors" },
|
|
61
|
+
{ fmt: "labelcolors str colors" },
|
|
62
|
+
{ fmt: "symbols str symbols" },
|
|
63
|
+
{ fmt: "ndigit int ndigit" },
|
|
64
|
+
{ fmt: "sign str sign" },
|
|
65
|
+
{ fmt: "units str units" },
|
|
66
|
+
{ fmt: "combined-renderer str name" },
|
|
67
|
+
],
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=ui-entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui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Q,EAAE,CAAC,gBAAgB,CAAC;IAC5B,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE,CAAC,GAAG,iBAAiB,CAAC;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAa;IAC3C,IAAI,EAAE,mBAAmB;IACzB,QAAQ,EAAE,CAAC,0BAA0B,CAAC;IACtC,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE;QACV,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,qBAAqB,EAAE;QAC9B,EAAE,GAAG,EAAE,mBAAmB,EAAE;QAC5B,EAAE,GAAG,EAAE,wBAAwB,EAAE;QACjC,EAAE,GAAG,EAAE,qBAAqB,EAAE;QAC9B,EAAE,GAAG,EAAE,mBAAmB,EAAE;QAC5B,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,iBAAiB,EAAE;QAC1B,EAAE,GAAG,EAAE,4BAA4B,EAAE;KACtC;CACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spec for lib/gamedata/visuals.txt, whose upstream parser lives in
|
|
3
|
+
* src/ui-visuals.c (visuals_file_parser_init, L1038-1053).
|
|
4
|
+
*
|
|
5
|
+
* Format strings are copied verbatim from the four parser_reg() calls:
|
|
6
|
+
* parser_reg(parser, "flicker sym color str name", ...)
|
|
7
|
+
* parser_reg(parser, "flicker-color sym color", ...)
|
|
8
|
+
* parser_reg(parser, "cycle sym group sym name", ...)
|
|
9
|
+
* parser_reg(parser, "cycle-color sym color", ...)
|
|
10
|
+
*
|
|
11
|
+
* visuals.txt holds TWO record kinds in one file: legacy "flicker" cycles
|
|
12
|
+
* (a `flicker:` line followed by its `flicker-color:` steps) and the newer
|
|
13
|
+
* grouped "cycle" cycles (a `cycle:` line followed by its `cycle-color:`
|
|
14
|
+
* steps). There is no single record-start directive, so this is modelled as
|
|
15
|
+
* a singleton file (recordStart: null): the whole file compiles to one
|
|
16
|
+
* record whose `flicker` and `cycle` arrays hold the entries in file order,
|
|
17
|
+
* each carrying its color steps as a nested array. The stateful
|
|
18
|
+
* interpretation the C parser performs (indexing the flicker table by the
|
|
19
|
+
* selection color's attr, building/replacing cycles within named groups) is
|
|
20
|
+
* NOT done here - it lives in the front-end-agnostic engine
|
|
21
|
+
* (packages/core/src/visuals), exactly as the C keeps it in ui-visuals.c.
|
|
22
|
+
* The compiler only mirrors the raw directives faithfully.
|
|
23
|
+
*/
|
|
24
|
+
import type { FileSpec } from "../records.js";
|
|
25
|
+
export declare const visualsSpec: FileSpec;
|
|
26
|
+
//# sourceMappingURL=visuals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visuals.d.ts","sourceRoot":"","sources":["../../src/specs/visuals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spec for lib/gamedata/visuals.txt, whose upstream parser lives in
|
|
3
|
+
* src/ui-visuals.c (visuals_file_parser_init, L1038-1053).
|
|
4
|
+
*
|
|
5
|
+
* Format strings are copied verbatim from the four parser_reg() calls:
|
|
6
|
+
* parser_reg(parser, "flicker sym color str name", ...)
|
|
7
|
+
* parser_reg(parser, "flicker-color sym color", ...)
|
|
8
|
+
* parser_reg(parser, "cycle sym group sym name", ...)
|
|
9
|
+
* parser_reg(parser, "cycle-color sym color", ...)
|
|
10
|
+
*
|
|
11
|
+
* visuals.txt holds TWO record kinds in one file: legacy "flicker" cycles
|
|
12
|
+
* (a `flicker:` line followed by its `flicker-color:` steps) and the newer
|
|
13
|
+
* grouped "cycle" cycles (a `cycle:` line followed by its `cycle-color:`
|
|
14
|
+
* steps). There is no single record-start directive, so this is modelled as
|
|
15
|
+
* a singleton file (recordStart: null): the whole file compiles to one
|
|
16
|
+
* record whose `flicker` and `cycle` arrays hold the entries in file order,
|
|
17
|
+
* each carrying its color steps as a nested array. The stateful
|
|
18
|
+
* interpretation the C parser performs (indexing the flicker table by the
|
|
19
|
+
* selection color's attr, building/replacing cycles within named groups) is
|
|
20
|
+
* NOT done here - it lives in the front-end-agnostic engine
|
|
21
|
+
* (packages/core/src/visuals), exactly as the C keeps it in ui-visuals.c.
|
|
22
|
+
* The compiler only mirrors the raw directives faithfully.
|
|
23
|
+
*/
|
|
24
|
+
export const visualsSpec = {
|
|
25
|
+
name: "visuals",
|
|
26
|
+
upstream: ["src/ui-visuals.c"],
|
|
27
|
+
recordStart: null,
|
|
28
|
+
directives: [
|
|
29
|
+
{ fmt: "flicker sym color str name", repeat: true },
|
|
30
|
+
{ fmt: "flicker-color sym color", childOf: ["flicker"], repeat: true },
|
|
31
|
+
{ fmt: "cycle sym group sym name", repeat: true },
|
|
32
|
+
{ fmt: "cycle-color sym color", childOf: ["cycle"], repeat: true },
|
|
33
|
+
],
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=visuals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visuals.js","sourceRoot":"","sources":["../../src/specs/visuals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAIH,MAAM,CAAC,MAAM,WAAW,GAAa;IACnC,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,CAAC,kBAAkB,CAAC;IAC9B,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE;QACV,EAAE,GAAG,EAAE,4BAA4B,EAAE,MAAM,EAAE,IAAI,EAAE;QACnD,EAAE,GAAG,EAAE,yBAAyB,EAAE,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE;QACtE,EAAE,GAAG,EAAE,0BAA0B,EAAE,MAAM,EAAE,IAAI,EAAE;QACjD,EAAE,GAAG,EAAE,uBAAuB,EAAE,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE;KACnE;CACF,CAAC"}
|