@wildshard/sdk 0.3.1 → 0.3.3
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/GUIDE.md +19 -6
- package/bin/wildshard.mjs +4 -0
- package/docs/api/EXPORT-TIERS.md +3 -2
- package/lint/export-tiers.json +1 -0
- package/lint/sdk-plugin.d.mts +2 -0
- package/lint/sdk-plugin.mjs +39 -1
- package/package.json +10 -9
- package/scripts/capture-hero.mjs +48 -18
- package/scripts/ci21-sdk-tail-lint.mjs +95 -0
- package/scripts/keep-copy.mjs +172 -0
- package/scripts/land.mjs +34 -4
- package/scripts/lane-live.mjs +136 -0
- package/scripts/leftovers-report.mjs +47 -0
- package/scripts/lint-dispatch.mjs +5 -0
- package/scripts/music/export-midi.mjs +3 -2
- package/scripts/prepare-product.mjs +3 -2
- package/scripts/scratch-dir.d.mts +3 -0
- package/scripts/scratch-dir.mjs +33 -14
- package/scripts/scratch-sweep.mjs +15 -23
- package/scripts/typecheck.mjs +15 -0
- package/scripts/worktree-reap.mjs +46 -104
- package/scripts/worktree.mjs +35 -13
- package/skills/wildshard/SKILL.md +3 -1
- package/src/cli/content-command.ts +44 -0
- package/src/cli/content.ts +287 -0
- package/src/cli/help.ts +7 -2
- package/src/cli/hero/hero.ts +51 -3
- package/src/cli/hero/scene-card.ts +46 -0
- package/src/cli/hero/stamp.ts +5 -3
- package/src/sharddev/authorManifest.ts +20 -2
- package/src/sharddev/cli.ts +1 -1
- package/src/sharddev/dev.ts +23 -4
- package/src/sharddev/newProject.ts +27 -8
- package/src/sharddev/project.ts +2 -2
- package/src/sharddev/refusals.ts +1 -0
- package/src/sharddev/scene/author.ts +22 -1
- package/src/sharddev/scene/budget.ts +87 -0
- package/src/sharddev/scene/creature.ts +171 -0
- package/src/sharddev/scene/description.ts +41 -0
- package/src/sharddev/scene/lower.ts +127 -3
- package/src/sharddev/scene/shardfile.ts +222 -20
- package/src/sharddev/shardSource.ts +2 -2
- package/src/sharddev/test/diskScriptScenario.ts +4 -2
- package/src/sharddev/test/ownedScratch.ts +14 -0
- package/src/sharddev/test/scriptScenario.ts +18 -13
- package/src/sharddev/tsconfig.json +3 -0
- package/src/sharddev/watch/pageEntry.ts +1 -19
- package/src/sharddev/watch/parity-baseline.json +8 -8
- package/src/sharddev/watch/parity.mjs +24 -0
- package/src/sharddev/watch/watch.ts +10 -2
- package/src/shards/_template/behaviour/boss.as +13 -4
- package/src/shards/_template/behaviour/door.as +8 -3
- package/src/shards/_template/behaviour/hooks.json +35 -0
- package/src/shards/_template/card/landscape.jpg +0 -0
- package/src/shards/_template/card/portrait.jpg +0 -0
- package/src/shards/_template/card/thumb.jpg +0 -0
- package/src/shards/_template/data/bossDecision.json +11 -1
- package/src/shards/_template/data/card.json +49 -1
- package/src/shards/_template/data/clientScripts.json +411 -0
- package/src/shards/_template/data/creatures.json +280 -2
- package/src/shards/_template/data/items.json +1 -1
- package/src/shards/_template/data/layout.json +32 -1
- package/src/shards/_template/data/ledger.json +45 -0
- package/src/shards/_template/data/npcs/hermit.json +72 -0
- package/src/shards/_template/data/quests.json +297 -11
- package/src/shards/_template/data/rows.json +154 -0
- package/src/shards/_template/data/skins.json +14 -0
- package/src/shards/_template/data/targets.json +47 -0
- package/src/shards/_template/data/text.json +4 -1
- package/src/shards/_template/generators/lift.ts +71 -0
- package/src/shards/_template/generators/product.ts +19 -5
- package/src/shards/_template/generators/templatePropsSource.ts +5 -4
- package/src/shards/_template/generators/terrain.ts +10 -2
- package/src/shards/_template/generators/world.ts +42 -7
- package/src/shards/_template/hero.json +6 -6
- package/src/shards/_template/manifest.json +49 -1
- package/src/shards/authoring-slice/generators/shard.ts +2 -1
- package/src/shards/authoring-slice/generators/world.ts +8 -1
- package/tsconfig.author.json +24 -0
|
@@ -13,6 +13,45 @@
|
|
|
13
13
|
"attackCooldownTicks": 60,
|
|
14
14
|
"wanderRadius": 4,
|
|
15
15
|
"wanderEveryTicks": 420
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "sow-ram",
|
|
19
|
+
"kind": "ram-grazer",
|
|
20
|
+
"strike": "template.sow.ram",
|
|
21
|
+
"grazeSpeed": 1,
|
|
22
|
+
"ramSpeed": 7,
|
|
23
|
+
"noticeRadius": 8,
|
|
24
|
+
"rimMargin": 2,
|
|
25
|
+
"fallDrop": 1.5,
|
|
26
|
+
"levelTolerance": 2.5,
|
|
27
|
+
"threatSpeed": 1.4,
|
|
28
|
+
"wanderMinSeconds": 2,
|
|
29
|
+
"wanderMaxSeconds": 5,
|
|
30
|
+
"rampRate": 4
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "wisp-dive",
|
|
34
|
+
"kind": "orbit-diver",
|
|
35
|
+
"strike": "template.wisp.dive",
|
|
36
|
+
"home": {
|
|
37
|
+
"x": -19.4,
|
|
38
|
+
"z": 0,
|
|
39
|
+
"r": 7,
|
|
40
|
+
"y": 5
|
|
41
|
+
},
|
|
42
|
+
"circleSpeed": 5,
|
|
43
|
+
"hangAltitude": 5,
|
|
44
|
+
"stalkSpeed": 7,
|
|
45
|
+
"diveSpeed": 12,
|
|
46
|
+
"restSeconds": 6,
|
|
47
|
+
"noticeRadius": 18,
|
|
48
|
+
"giveUpRadius": 30,
|
|
49
|
+
"initialRestSeconds": 3,
|
|
50
|
+
"stalkMaxSeconds": 8,
|
|
51
|
+
"riseMargin": 1.5,
|
|
52
|
+
"targetHeight": 1.2,
|
|
53
|
+
"alignRadius": 2.5,
|
|
54
|
+
"alignTolerance": 1.4
|
|
16
55
|
}
|
|
17
56
|
],
|
|
18
57
|
"spawns": [
|
|
@@ -21,7 +60,7 @@
|
|
|
21
60
|
"species": "grey-blob",
|
|
22
61
|
"variant": "grey",
|
|
23
62
|
"brain": "blob-pursuit",
|
|
24
|
-
"strike":
|
|
63
|
+
"strike": "template.blob.bump",
|
|
25
64
|
"seed": 435,
|
|
26
65
|
"scale": 1,
|
|
27
66
|
"at": [
|
|
@@ -29,7 +68,204 @@
|
|
|
29
68
|
0,
|
|
30
69
|
-16.5
|
|
31
70
|
],
|
|
32
|
-
"yaw": 0
|
|
71
|
+
"yaw": 0,
|
|
72
|
+
"respawn": 60
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "mossling:1",
|
|
76
|
+
"species": "mossling",
|
|
77
|
+
"variant": "moss",
|
|
78
|
+
"brain": "template.mosslings",
|
|
79
|
+
"strike": null,
|
|
80
|
+
"seed": 501,
|
|
81
|
+
"scale": 1,
|
|
82
|
+
"at": [
|
|
83
|
+
34.5,
|
|
84
|
+
0,
|
|
85
|
+
-97.5
|
|
86
|
+
],
|
|
87
|
+
"yaw": 0,
|
|
88
|
+
"respawn": 45
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "mossling:2",
|
|
92
|
+
"species": "mossling",
|
|
93
|
+
"variant": "moss",
|
|
94
|
+
"brain": "template.mosslings",
|
|
95
|
+
"strike": null,
|
|
96
|
+
"seed": 502,
|
|
97
|
+
"scale": 1,
|
|
98
|
+
"at": [
|
|
99
|
+
37.2,
|
|
100
|
+
0,
|
|
101
|
+
-98.8
|
|
102
|
+
],
|
|
103
|
+
"yaw": 0,
|
|
104
|
+
"respawn": 45
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": "mossling:3",
|
|
108
|
+
"species": "mossling",
|
|
109
|
+
"variant": "moss",
|
|
110
|
+
"brain": "template.mosslings",
|
|
111
|
+
"strike": null,
|
|
112
|
+
"seed": 503,
|
|
113
|
+
"scale": 1,
|
|
114
|
+
"at": [
|
|
115
|
+
36.4,
|
|
116
|
+
0,
|
|
117
|
+
-96.4
|
|
118
|
+
],
|
|
119
|
+
"yaw": 0,
|
|
120
|
+
"respawn": 45
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"id": "mossling:4",
|
|
124
|
+
"species": "mossling",
|
|
125
|
+
"variant": "moss",
|
|
126
|
+
"brain": "template.mosslings",
|
|
127
|
+
"strike": null,
|
|
128
|
+
"seed": 504,
|
|
129
|
+
"scale": 1,
|
|
130
|
+
"at": [
|
|
131
|
+
35.4,
|
|
132
|
+
0,
|
|
133
|
+
-99.9
|
|
134
|
+
],
|
|
135
|
+
"yaw": 0,
|
|
136
|
+
"respawn": 45
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"id": "grey-blob:2",
|
|
140
|
+
"species": "grey-blob",
|
|
141
|
+
"variant": "grey",
|
|
142
|
+
"brain": "blob-pursuit",
|
|
143
|
+
"strike": "template.blob.bump",
|
|
144
|
+
"seed": 511,
|
|
145
|
+
"scale": 1,
|
|
146
|
+
"at": [
|
|
147
|
+
-8,
|
|
148
|
+
0,
|
|
149
|
+
-4
|
|
150
|
+
],
|
|
151
|
+
"yaw": 0,
|
|
152
|
+
"respawn": 60
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"id": "grey-blob:3",
|
|
156
|
+
"species": "grey-blob",
|
|
157
|
+
"variant": "grey",
|
|
158
|
+
"brain": "blob-pursuit",
|
|
159
|
+
"strike": "template.blob.lane",
|
|
160
|
+
"seed": 512,
|
|
161
|
+
"scale": 1,
|
|
162
|
+
"at": [
|
|
163
|
+
8,
|
|
164
|
+
0,
|
|
165
|
+
2
|
|
166
|
+
],
|
|
167
|
+
"yaw": 0,
|
|
168
|
+
"respawn": 60
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "grey-blob:4",
|
|
172
|
+
"species": "grey-blob",
|
|
173
|
+
"variant": "grey",
|
|
174
|
+
"brain": "blob-pursuit",
|
|
175
|
+
"strike": "template.blob.bump",
|
|
176
|
+
"seed": 513,
|
|
177
|
+
"scale": 1,
|
|
178
|
+
"at": [
|
|
179
|
+
-2,
|
|
180
|
+
0,
|
|
181
|
+
-24
|
|
182
|
+
],
|
|
183
|
+
"yaw": 0,
|
|
184
|
+
"respawn": 60
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"id": "sow:1",
|
|
188
|
+
"species": "boar",
|
|
189
|
+
"variant": "sow",
|
|
190
|
+
"brain": "sow-ram",
|
|
191
|
+
"strike": null,
|
|
192
|
+
"seed": 521,
|
|
193
|
+
"scale": 1,
|
|
194
|
+
"at": [
|
|
195
|
+
-22,
|
|
196
|
+
0,
|
|
197
|
+
15
|
|
198
|
+
],
|
|
199
|
+
"yaw": 0,
|
|
200
|
+
"home": {
|
|
201
|
+
"x": -22,
|
|
202
|
+
"y": 0,
|
|
203
|
+
"z": 15,
|
|
204
|
+
"r": 5
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "sow:2",
|
|
209
|
+
"species": "boar",
|
|
210
|
+
"variant": "sow",
|
|
211
|
+
"brain": "sow-ram",
|
|
212
|
+
"strike": null,
|
|
213
|
+
"seed": 522,
|
|
214
|
+
"scale": 1,
|
|
215
|
+
"at": [
|
|
216
|
+
-25,
|
|
217
|
+
0,
|
|
218
|
+
7
|
|
219
|
+
],
|
|
220
|
+
"yaw": 0,
|
|
221
|
+
"home": {
|
|
222
|
+
"x": -25,
|
|
223
|
+
"y": 0,
|
|
224
|
+
"z": 7,
|
|
225
|
+
"r": 5
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": "bog-wisp:1",
|
|
230
|
+
"species": "bog-wisp",
|
|
231
|
+
"variant": "bog",
|
|
232
|
+
"brain": "wisp-dive",
|
|
233
|
+
"strike": null,
|
|
234
|
+
"seed": 531,
|
|
235
|
+
"scale": 1,
|
|
236
|
+
"at": [
|
|
237
|
+
-17,
|
|
238
|
+
5,
|
|
239
|
+
-2
|
|
240
|
+
],
|
|
241
|
+
"yaw": 0,
|
|
242
|
+
"home": {
|
|
243
|
+
"x": -19.4,
|
|
244
|
+
"y": 5,
|
|
245
|
+
"z": 0,
|
|
246
|
+
"r": 7
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"id": "bog-wisp:2",
|
|
251
|
+
"species": "bog-wisp",
|
|
252
|
+
"variant": "bog",
|
|
253
|
+
"brain": "wisp-dive",
|
|
254
|
+
"strike": null,
|
|
255
|
+
"seed": 532,
|
|
256
|
+
"scale": 1,
|
|
257
|
+
"at": [
|
|
258
|
+
-22,
|
|
259
|
+
5,
|
|
260
|
+
2
|
|
261
|
+
],
|
|
262
|
+
"yaw": 0,
|
|
263
|
+
"home": {
|
|
264
|
+
"x": -19.4,
|
|
265
|
+
"y": 5,
|
|
266
|
+
"z": 0,
|
|
267
|
+
"r": 7
|
|
268
|
+
}
|
|
33
269
|
},
|
|
34
270
|
{
|
|
35
271
|
"id": "greyback",
|
|
@@ -61,5 +297,47 @@
|
|
|
61
297
|
],
|
|
62
298
|
"yaw": -1.5708
|
|
63
299
|
}
|
|
300
|
+
],
|
|
301
|
+
"groups": [
|
|
302
|
+
{
|
|
303
|
+
"id": "template.mosslings",
|
|
304
|
+
"kind": "pack",
|
|
305
|
+
"thinkDivisor": 6,
|
|
306
|
+
"members": [
|
|
307
|
+
"mossling:1",
|
|
308
|
+
"mossling:2",
|
|
309
|
+
"mossling:3",
|
|
310
|
+
"mossling:4"
|
|
311
|
+
],
|
|
312
|
+
"home": [
|
|
313
|
+
36.0,
|
|
314
|
+
-98.0
|
|
315
|
+
],
|
|
316
|
+
"trotSpeed": 2.5,
|
|
317
|
+
"runSpeed": 6.5,
|
|
318
|
+
"shadowMinRadius": 10,
|
|
319
|
+
"shadowMaxRadius": 15,
|
|
320
|
+
"ringMinRadius": 4,
|
|
321
|
+
"ringMaxRadius": 7,
|
|
322
|
+
"biteRadius": 1.3,
|
|
323
|
+
"sightRadius": 20,
|
|
324
|
+
"coneAngle": 1.2,
|
|
325
|
+
"smellRadius": 24,
|
|
326
|
+
"hearing": [
|
|
327
|
+
3,
|
|
328
|
+
6,
|
|
329
|
+
12,
|
|
330
|
+
20
|
|
331
|
+
],
|
|
332
|
+
"telegraphSeconds": 0.5,
|
|
333
|
+
"dashSeconds": 1.3,
|
|
334
|
+
"breakoffSeconds": 1.0,
|
|
335
|
+
"attackSeconds": 0.4,
|
|
336
|
+
"leaderVariant": "moss",
|
|
337
|
+
"yipCue": "mossling_yip",
|
|
338
|
+
"howlCue": "mossling_howl",
|
|
339
|
+
"snarlCue": "mossling_snarl",
|
|
340
|
+
"biteCue": "mossling_bite"
|
|
341
|
+
}
|
|
64
342
|
]
|
|
65
343
|
}
|
|
@@ -93,5 +93,36 @@
|
|
|
93
93
|
12.5,
|
|
94
94
|
8
|
|
95
95
|
]
|
|
96
|
-
]
|
|
96
|
+
],
|
|
97
|
+
"CHEST": {
|
|
98
|
+
"x": -8.2,
|
|
99
|
+
"z": -7.6
|
|
100
|
+
},
|
|
101
|
+
"HERMIT": {
|
|
102
|
+
"x": -15.2,
|
|
103
|
+
"z": 7.0
|
|
104
|
+
},
|
|
105
|
+
"RACK": {
|
|
106
|
+
"x": 1.0,
|
|
107
|
+
"z": -12.0
|
|
108
|
+
},
|
|
109
|
+
"MEADOW": {
|
|
110
|
+
"x": 36.0,
|
|
111
|
+
"z": -98.0,
|
|
112
|
+
"r": 12
|
|
113
|
+
},
|
|
114
|
+
"LEVER": {
|
|
115
|
+
"x": 8.5,
|
|
116
|
+
"z": -16.6
|
|
117
|
+
},
|
|
118
|
+
"LIFT": {
|
|
119
|
+
"x": 8.5,
|
|
120
|
+
"z": 3.65
|
|
121
|
+
},
|
|
122
|
+
"LEDGE": {
|
|
123
|
+
"x": 8.5,
|
|
124
|
+
"z": 6.4,
|
|
125
|
+
"hx": 2,
|
|
126
|
+
"hz": 1.4
|
|
127
|
+
}
|
|
97
128
|
}
|
|
@@ -28,5 +28,50 @@
|
|
|
28
28
|
"threshold": 1
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"fact": "template.warden",
|
|
34
|
+
"origin": {
|
|
35
|
+
"kind": "engine",
|
|
36
|
+
"source": "quest.complete"
|
|
37
|
+
},
|
|
38
|
+
"rewards": [
|
|
39
|
+
{
|
|
40
|
+
"kind": "achievement",
|
|
41
|
+
"id": "template.warden",
|
|
42
|
+
"title": "Barrow Warden",
|
|
43
|
+
"threshold": 1
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"fact": "template.chest",
|
|
49
|
+
"origin": {
|
|
50
|
+
"kind": "engine",
|
|
51
|
+
"source": "quest.complete"
|
|
52
|
+
},
|
|
53
|
+
"rewards": [
|
|
54
|
+
{
|
|
55
|
+
"kind": "achievement",
|
|
56
|
+
"id": "template.chest",
|
|
57
|
+
"title": "Finders keepers",
|
|
58
|
+
"threshold": 1
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"fact": "template.ledge",
|
|
64
|
+
"origin": {
|
|
65
|
+
"kind": "engine",
|
|
66
|
+
"source": "quest.complete"
|
|
67
|
+
},
|
|
68
|
+
"rewards": [
|
|
69
|
+
{
|
|
70
|
+
"kind": "achievement",
|
|
71
|
+
"id": "template.ledge",
|
|
72
|
+
"title": "High ground",
|
|
73
|
+
"threshold": 1
|
|
74
|
+
}
|
|
75
|
+
]
|
|
31
76
|
}
|
|
32
77
|
]
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"npc": {
|
|
3
|
+
"dialogue": {
|
|
4
|
+
"id": "template.hermit",
|
|
5
|
+
"name": "The Pond Hermit",
|
|
6
|
+
"start": "offer",
|
|
7
|
+
"nodes": [
|
|
8
|
+
{
|
|
9
|
+
"id": "offer",
|
|
10
|
+
"lines": [
|
|
11
|
+
"Mind your step, traveller. Four mosslings have taken the meadow past the south road.",
|
|
12
|
+
"They nip at the reeds and at me. Drive the pack off and I'll make it worth your while.",
|
|
13
|
+
"But the Lamplighter's braziers come first. Help her, then come see me."
|
|
14
|
+
],
|
|
15
|
+
"choices": [
|
|
16
|
+
{
|
|
17
|
+
"id": "accept",
|
|
18
|
+
"label": "I'll deal with the pack.",
|
|
19
|
+
"next": "waiting",
|
|
20
|
+
"sets": [
|
|
21
|
+
"template.hermit.accepted"
|
|
22
|
+
],
|
|
23
|
+
"when": {
|
|
24
|
+
"all": [
|
|
25
|
+
"template.lamp.done"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "waiting",
|
|
33
|
+
"lines": [
|
|
34
|
+
"They lurk past the yard, south of the trail. They circle before they bite: strike the one that comes in.",
|
|
35
|
+
"Come back when all four are still."
|
|
36
|
+
],
|
|
37
|
+
"choices": [
|
|
38
|
+
{
|
|
39
|
+
"id": "report",
|
|
40
|
+
"label": "The pack is gone.",
|
|
41
|
+
"next": "thanks",
|
|
42
|
+
"sets": [
|
|
43
|
+
"template.hermit.reported"
|
|
44
|
+
],
|
|
45
|
+
"when": {
|
|
46
|
+
"all": [
|
|
47
|
+
"dead:mossling:1",
|
|
48
|
+
"dead:mossling:2",
|
|
49
|
+
"dead:mossling:3",
|
|
50
|
+
"dead:mossling:4"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "thanks",
|
|
58
|
+
"lines": [
|
|
59
|
+
"Quiet at last. The reeds will grow back. Take these coins, and my thanks."
|
|
60
|
+
],
|
|
61
|
+
"choices": []
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"talk": {
|
|
66
|
+
"id": "template.hermit.talk",
|
|
67
|
+
"radius": 2.5,
|
|
68
|
+
"label": "Talk to the Pond Hermit",
|
|
69
|
+
"dialogue": "template.hermit"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|