@maka/maka-cli 5.1.26 → 5.1.28
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/bundle/typescript/package.json +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js +3 -17
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/roomsF.d.ts +2 -4
- package/bundle/typescript/src/commands/game/sideQuest/factories/roomsF.js +2 -51
- package/bundle/typescript/src/commands/game/sideQuest/factories/roomsF.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/sceneSynthesizer.js +18 -6
- package/bundle/typescript/src/commands/game/sideQuest/factories/sceneSynthesizer.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/door.d.ts +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/door.js +3 -2
- package/bundle/typescript/src/commands/game/sideQuest/models/door.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/item.d.ts +5 -4
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js +13 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.d.ts +3 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.d.ts +4 -2
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js +12 -2
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/room.d.ts +2 -2
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js +2 -2
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.d.ts +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js +12 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.js +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene1.json +69 -24
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene2.json +211 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene3.json +380 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/abstracts.d.ts +7 -7
- package/bundle/typescript/src/commands/game/sideQuest/types/abstracts.js +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/abstracts.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.d.ts +4 -43
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.js +2 -45
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/interfaces.d.ts +18 -11
- package/bundle/typescript/src/commands/game/sideQuest/ui.js +6 -12
- package/bundle/typescript/src/commands/game/sideQuest/ui.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js +6 -2
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js.map +1 -1
- package/package.json +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/scenes/items.d.ts +0 -59
- package/bundle/typescript/src/commands/game/sideQuest/scenes/items.js +0 -271
- package/bundle/typescript/src/commands/game/sideQuest/scenes/items.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/scenes/puzzles.js +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/scenes/puzzles.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/scenes/rooms.d.ts +0 -4
- package/bundle/typescript/src/commands/game/sideQuest/scenes/rooms.js +0 -350
- package/bundle/typescript/src/commands/game/sideQuest/scenes/rooms.js.map +0 -1
- /package/bundle/typescript/src/commands/game/sideQuest/scenes/{puzzles.d.ts → _index.d.ts} +0 -0
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Shadow Grid: Scene 3",
|
|
3
|
+
"residenceTiers": [
|
|
4
|
+
"Puyallup Squatter Den",
|
|
5
|
+
"Downtown Condo",
|
|
6
|
+
"Everett Dockyard Loft"
|
|
7
|
+
],
|
|
8
|
+
"currency": {
|
|
9
|
+
"type": "nuyen",
|
|
10
|
+
"carrier": "credstick",
|
|
11
|
+
"carrierItemSizes": [
|
|
12
|
+
"Small",
|
|
13
|
+
"Medium"
|
|
14
|
+
],
|
|
15
|
+
"authorityRoomTags": [
|
|
16
|
+
"Bank"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"rooms": [
|
|
20
|
+
{
|
|
21
|
+
"name": "Puyallup Squatter Den",
|
|
22
|
+
"description": "A burnt-out tenement with boarded windows and jury-rigged electronics.",
|
|
23
|
+
"tags": [
|
|
24
|
+
"residence"
|
|
25
|
+
],
|
|
26
|
+
"supportedLifestyles": {
|
|
27
|
+
"residenceTiers": [
|
|
28
|
+
"Puyallup Squatter Den"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"exits": [
|
|
32
|
+
{
|
|
33
|
+
"direction": "north",
|
|
34
|
+
"targetRoom": "Black Alley"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"isStartRoom": true
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "Black Alley",
|
|
41
|
+
"description": "A narrow passage where deals go down in the dark.",
|
|
42
|
+
"tags": [
|
|
43
|
+
"street",
|
|
44
|
+
"vice"
|
|
45
|
+
],
|
|
46
|
+
"supportedLifestyles": {
|
|
47
|
+
"habitTags": [
|
|
48
|
+
"Drugs"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"exits": [
|
|
52
|
+
{
|
|
53
|
+
"direction": "south",
|
|
54
|
+
"targetRoom": "Puyallup Squatter Den"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"direction": "east",
|
|
58
|
+
"targetRoom": "Junk Market"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "Junk Market",
|
|
64
|
+
"description": "A tangle of booths, neon lights, and fence deals.",
|
|
65
|
+
"tags": [
|
|
66
|
+
"market"
|
|
67
|
+
],
|
|
68
|
+
"exits": [
|
|
69
|
+
{
|
|
70
|
+
"direction": "west",
|
|
71
|
+
"targetRoom": "Black Alley"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"direction": "north",
|
|
75
|
+
"targetRoom": "Rusted Clinic"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "Rusted Clinic",
|
|
81
|
+
"description": "A makeshift street doc's office with bloodstains on the gurney.",
|
|
82
|
+
"tags": [
|
|
83
|
+
"employment"
|
|
84
|
+
],
|
|
85
|
+
"supportedLifestyles": {
|
|
86
|
+
"employmentRoles": [
|
|
87
|
+
"Street Doc"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"exits": [
|
|
91
|
+
{
|
|
92
|
+
"direction": "south",
|
|
93
|
+
"targetRoom": "Junk Market"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"direction": "east",
|
|
97
|
+
"targetRoom": "Downtown Gateway"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "Downtown Gateway",
|
|
103
|
+
"description": "A corporate checkpoint connecting the Barrens to the arcology.",
|
|
104
|
+
"tags": [
|
|
105
|
+
"checkpoint"
|
|
106
|
+
],
|
|
107
|
+
"exits": [
|
|
108
|
+
{
|
|
109
|
+
"direction": "west",
|
|
110
|
+
"targetRoom": "Rusted Clinic"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"direction": "north",
|
|
114
|
+
"targetRoom": "Downtown Condo"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"direction": "east",
|
|
118
|
+
"targetRoom": "Everett Dockyard Loft",
|
|
119
|
+
"keyRequired": "Dockyard Key"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "Downtown Condo",
|
|
125
|
+
"description": "A sleek, minimalist high-rise apartment.",
|
|
126
|
+
"tags": [
|
|
127
|
+
"residence"
|
|
128
|
+
],
|
|
129
|
+
"supportedLifestyles": {
|
|
130
|
+
"residenceTiers": [
|
|
131
|
+
"Downtown Condo"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"exits": [
|
|
135
|
+
{
|
|
136
|
+
"direction": "south",
|
|
137
|
+
"targetRoom": "Downtown Gateway"
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "Everett Dockyard Loft",
|
|
143
|
+
"description": "An open-plan converted warehouse with exposed steel beams and encrypted Matrix ports.",
|
|
144
|
+
"tags": [
|
|
145
|
+
"residence",
|
|
146
|
+
"employment"
|
|
147
|
+
],
|
|
148
|
+
"supportedLifestyles": {
|
|
149
|
+
"residenceTiers": [
|
|
150
|
+
"Everett Dockyard Loft"
|
|
151
|
+
],
|
|
152
|
+
"employmentRoles": [
|
|
153
|
+
"Decker"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"exits": [
|
|
157
|
+
{
|
|
158
|
+
"direction": "west",
|
|
159
|
+
"targetRoom": "Downtown Gateway"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"direction": "north",
|
|
163
|
+
"targetRoom": "Matrix Terminal"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "Matrix Terminal",
|
|
169
|
+
"description": "A glowing pillar of wireless signals and data nodes.",
|
|
170
|
+
"tags": [
|
|
171
|
+
"puzzle"
|
|
172
|
+
],
|
|
173
|
+
"exits": [
|
|
174
|
+
{
|
|
175
|
+
"direction": "south",
|
|
176
|
+
"targetRoom": "Everett Dockyard Loft"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"direction": "north",
|
|
180
|
+
"targetRoom": "Ares Data Nexus"
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "Ares Data Nexus",
|
|
186
|
+
"description": "A cold server vault protected by ICE and steel.",
|
|
187
|
+
"tags": [
|
|
188
|
+
"bank",
|
|
189
|
+
"locked"
|
|
190
|
+
],
|
|
191
|
+
"exits": [
|
|
192
|
+
{
|
|
193
|
+
"direction": "south",
|
|
194
|
+
"targetRoom": "Matrix Terminal"
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"npcs": [
|
|
200
|
+
{
|
|
201
|
+
"name": "Doc Trencher",
|
|
202
|
+
"dialogue": [
|
|
203
|
+
"I patch you up, no questions asked.",
|
|
204
|
+
"Hope you got the creds this time.",
|
|
205
|
+
"Some wounds tech can't fix."
|
|
206
|
+
],
|
|
207
|
+
"lifestyleChoices": [
|
|
208
|
+
{
|
|
209
|
+
"type": "employment",
|
|
210
|
+
"metadata": {
|
|
211
|
+
"jobTitle": "Street Doc"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"startRoom": "Rusted Clinic"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "Nyx",
|
|
219
|
+
"dialogue": [
|
|
220
|
+
"The grid sings if you know how to listen.",
|
|
221
|
+
"Ares doesn't guard secrets \u2014 it cages them.",
|
|
222
|
+
"This world\u2019s written in code, omae."
|
|
223
|
+
],
|
|
224
|
+
"lifestyleChoices": [
|
|
225
|
+
{
|
|
226
|
+
"type": "residence",
|
|
227
|
+
"metadata": {
|
|
228
|
+
"lifestyle": "Everett Dockyard Loft"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"type": "employment",
|
|
233
|
+
"metadata": {
|
|
234
|
+
"jobTitle": "Decker"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"type": "hobby",
|
|
239
|
+
"metadata": {
|
|
240
|
+
"hobbies": [
|
|
241
|
+
"Hacking"
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"startRoom": "Matrix Terminal"
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"items": [
|
|
250
|
+
{
|
|
251
|
+
"name": "Stim Patch",
|
|
252
|
+
"description": "Keeps you moving even with a hole in your gut.",
|
|
253
|
+
"size": "Small",
|
|
254
|
+
"category": "Medical",
|
|
255
|
+
"shape": "Square",
|
|
256
|
+
"color": "White",
|
|
257
|
+
"texture": "Sticky",
|
|
258
|
+
"rating": "Common",
|
|
259
|
+
"weight": 0.1,
|
|
260
|
+
"room": "Rusted Clinic"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "Dockyard Key",
|
|
264
|
+
"description": "A chipped brass key with a digital lock override.",
|
|
265
|
+
"size": "Small",
|
|
266
|
+
"category": "Key",
|
|
267
|
+
"shape": "Rectangle",
|
|
268
|
+
"color": "Bronze",
|
|
269
|
+
"texture": "Rough",
|
|
270
|
+
"rating": "Rare",
|
|
271
|
+
"weight": 0.1,
|
|
272
|
+
"room": "Black Alley"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "Credstick: Nyx\u2019s Cache",
|
|
276
|
+
"description": "A polished credstick with a spiderweb etching.",
|
|
277
|
+
"size": "Small",
|
|
278
|
+
"category": "CurrencyContainer",
|
|
279
|
+
"shape": "Cylinder",
|
|
280
|
+
"color": "Black",
|
|
281
|
+
"texture": "Glossy",
|
|
282
|
+
"rating": "Common",
|
|
283
|
+
"weight": 0.2,
|
|
284
|
+
"currencyAmount": 2500,
|
|
285
|
+
"room": "Ares Data Nexus"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "Encrypted File Shard",
|
|
289
|
+
"description": "A glowing crystal with shimmering data inside.",
|
|
290
|
+
"size": "Small",
|
|
291
|
+
"category": "Book",
|
|
292
|
+
"shape": "Shard",
|
|
293
|
+
"color": "Blue",
|
|
294
|
+
"texture": "Smooth",
|
|
295
|
+
"rating": "Rare",
|
|
296
|
+
"weight": 0.1,
|
|
297
|
+
"room": "Matrix Terminal",
|
|
298
|
+
"details": "Decode to unlock hidden access protocol."
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "Budget Arms C-2",
|
|
302
|
+
"description": "A cheap and dirty pistol. It works, usually.",
|
|
303
|
+
"size": "Small",
|
|
304
|
+
"category": "Weapon",
|
|
305
|
+
"shape": "pistol",
|
|
306
|
+
"color": "gray",
|
|
307
|
+
"texture": "matte",
|
|
308
|
+
"rating": "Common",
|
|
309
|
+
"weight": 1.2,
|
|
310
|
+
"room": "Puyallup Squatter Den"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "Secondhand Credstick",
|
|
314
|
+
"description": "Scratched up and half-charged. Holds enough for a meal.",
|
|
315
|
+
"size": "Small",
|
|
316
|
+
"category": "CurrencyContainer",
|
|
317
|
+
"shape": "cylinder",
|
|
318
|
+
"color": "blue",
|
|
319
|
+
"texture": "smooth",
|
|
320
|
+
"rating": "Common",
|
|
321
|
+
"weight": 0.2,
|
|
322
|
+
"currencyAmount": 150,
|
|
323
|
+
"room": "Puyallup Squatter Den"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "Leather Duster",
|
|
327
|
+
"description": "Worn leather jacket with armored lining.",
|
|
328
|
+
"size": "Medium",
|
|
329
|
+
"category": "BodyArmor",
|
|
330
|
+
"shape": "coat",
|
|
331
|
+
"color": "brown",
|
|
332
|
+
"texture": "rough",
|
|
333
|
+
"rating": "Common",
|
|
334
|
+
"weight": 3.0,
|
|
335
|
+
"room": "Puyallup Squatter Den"
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"puzzles": [
|
|
339
|
+
{
|
|
340
|
+
"requiredItem": "Encrypted File Shard",
|
|
341
|
+
"requiredPhrase": "access protocol",
|
|
342
|
+
"riddle": "Invisible but everywhere. Unlock me, and the vault obeys.",
|
|
343
|
+
"successMessage": "A secure handshake pings back: ACCESS GRANTED.",
|
|
344
|
+
"failureMessage": "The protocol rejects your signal. Try again.",
|
|
345
|
+
"hobbyTags": [
|
|
346
|
+
"Hacking"
|
|
347
|
+
],
|
|
348
|
+
"room": "Matrix Terminal",
|
|
349
|
+
"rewardItem": "Credstick: Nyx\u2019s Cache"
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"player": {
|
|
353
|
+
"startRoom": "Puyallup Squatter Den",
|
|
354
|
+
"lifestyleChoices": [
|
|
355
|
+
{
|
|
356
|
+
"type": "residence",
|
|
357
|
+
"metadata": {
|
|
358
|
+
"lifestyle": "Puyallup Squatter Den"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"type": "employment",
|
|
363
|
+
"metadata": {
|
|
364
|
+
"jobTitle": "Runner"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"type": "vice",
|
|
369
|
+
"metadata": {
|
|
370
|
+
"addictions": [
|
|
371
|
+
"Stim"
|
|
372
|
+
],
|
|
373
|
+
"habits": [
|
|
374
|
+
"Risk"
|
|
375
|
+
]
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
2
|
import { Room, Player, NPC, Item, Puzzle, Door, Inventory } from '../models/_index';
|
|
3
3
|
import { IRooms, IPlayer } from './interfaces';
|
|
4
|
-
import { Size, Category,
|
|
4
|
+
import { Size, Category, Rating, Direction } from './enums.js';
|
|
5
5
|
import { PlayerEquipment } from './types.js';
|
|
6
6
|
import { Logger } from '../utilities/logger.js';
|
|
7
7
|
/**
|
|
@@ -37,7 +37,7 @@ export declare abstract class AbstractRoom extends EventEmitter {
|
|
|
37
37
|
exits: Map<Direction, Door | string>;
|
|
38
38
|
inventory: Inventory;
|
|
39
39
|
puzzle?: Puzzle;
|
|
40
|
-
roomType:
|
|
40
|
+
roomType: string;
|
|
41
41
|
isStartRoom: boolean;
|
|
42
42
|
abstract addExit(direction: Direction, targetRoom: Room, keyItemOrSolution?: string): void;
|
|
43
43
|
abstract attemptUnlockExit(direction: Direction, itemOrSolution: string): string;
|
|
@@ -59,7 +59,6 @@ export declare abstract class AbstractDoor {
|
|
|
59
59
|
roomB: Room;
|
|
60
60
|
isLocked: boolean;
|
|
61
61
|
unlockItemOrSolution?: string;
|
|
62
|
-
name: string;
|
|
63
62
|
logger: Logger;
|
|
64
63
|
isLockable: boolean;
|
|
65
64
|
abstract getOtherSide(currentRoom: Room): Room;
|
|
@@ -92,9 +91,9 @@ export declare abstract class AbstractItem {
|
|
|
92
91
|
description: string;
|
|
93
92
|
size: Size;
|
|
94
93
|
category: Category;
|
|
95
|
-
shape:
|
|
96
|
-
color:
|
|
97
|
-
texture:
|
|
94
|
+
shape: string;
|
|
95
|
+
color: string;
|
|
96
|
+
texture: string;
|
|
98
97
|
rating: Rating;
|
|
99
98
|
weight: number;
|
|
100
99
|
abstract use(): string;
|
|
@@ -133,7 +132,8 @@ export declare abstract class AbstractPlayer implements IPlayer {
|
|
|
133
132
|
export declare abstract class AbstractPuzzle {
|
|
134
133
|
protected logger: Logger;
|
|
135
134
|
protected solved: boolean;
|
|
136
|
-
abstract
|
|
135
|
+
abstract name: string;
|
|
136
|
+
abstract requiredItem?: Item;
|
|
137
137
|
abstract requiredPhrase?: string;
|
|
138
138
|
abstract riddle?: string;
|
|
139
139
|
abstract rewardItem?: Item;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstracts.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/types/abstracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"abstracts.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/types/abstracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAyBtC;;;GAGG;AACH,MAAM,OAAgB,aAAa;IACvB,KAAK,CAAS;IACd,MAAM,CAAS;IACf,MAAM,CAAS;IACf,kBAAkB,CAAoB;CAcjD;AAED;;;;GAIG;AACH,MAAM,OAAgB,YAAa,SAAQ,YAAY;IAC9C,IAAI,CAAS;IACb,WAAW,CAAS;IACpB,KAAK,CAAgC;IACrC,SAAS,CAAY;IACrB,MAAM,CAAU;IAChB,QAAQ,CAAS;IACjB,WAAW,CAAU;CAW7B;AAED;;;;GAIG;AACH,MAAM,OAAgB,YAAY;IAChC,KAAK,CAAO,CAAE,uBAAuB;IACrC,KAAK,CAAO,CAAE,6BAA6B;IAC3C,QAAQ,CAAU;IAClB,oBAAoB,CAAU;IAC9B,MAAM,CAAS;IACf,UAAU,CAAU;CAMrB;AAED;;;GAGG;AACH,MAAM,OAAgB,iBAAiB;IAC3B,KAAK,CAAoB;IACzB,MAAM,CAAS;CAS1B;AAED;;;GAGG;AACH,MAAM,OAAgB,YAAY;IACzB,IAAI,CAAS;IACb,IAAI,CAAS;IACb,WAAW,CAAS;IACpB,IAAI,CAAO;IACX,QAAQ,CAAW;IACnB,KAAK,CAAS;IACd,KAAK,CAAS;IACd,OAAO,CAAS;IAChB,MAAM,CAAS;IACf,MAAM,CAAS;CAGvB;AAED;;;;GAIG;AACH,MAAM,OAAgB,cAAc;IACzB,WAAW,CAAS;IACnB,gBAAgB,CAAO;IACvB,UAAU,CAAY;IACtB,UAAU,CAAkB;IAC5B,kBAAkB,CAAS;IAC3B,OAAO,CAAS;CAqB3B;AAED;;;;GAIG;AACH,MAAM,OAAgB,cAAc;IACxB,MAAM,CAAS;IACf,MAAM,CAAU;CAc3B"}
|
|
@@ -8,7 +8,8 @@ export declare enum Size {
|
|
|
8
8
|
export declare enum Rating {
|
|
9
9
|
Common = "common",
|
|
10
10
|
Rare = "rare",
|
|
11
|
-
Legendary = "legendary"
|
|
11
|
+
Legendary = "legendary",
|
|
12
|
+
MilitaryGrade = "military-grade"
|
|
12
13
|
}
|
|
13
14
|
export declare enum Category {
|
|
14
15
|
Weapon = "weapon",
|
|
@@ -24,48 +25,8 @@ export declare enum Category {
|
|
|
24
25
|
Book = "book",
|
|
25
26
|
Cup = "cup",
|
|
26
27
|
Unknown = "unknown",
|
|
27
|
-
CurrencyContainer = "currency container"
|
|
28
|
-
|
|
29
|
-
export declare enum Shape {
|
|
30
|
-
Circle = "circle",
|
|
31
|
-
Square = "square",
|
|
32
|
-
Triangle = "triangle",
|
|
33
|
-
Rectangle = "rectangle",
|
|
34
|
-
Blade = "blade",
|
|
35
|
-
Rifle = "rifle",
|
|
36
|
-
Pistol = "pistol"
|
|
37
|
-
}
|
|
38
|
-
export declare enum Color {
|
|
39
|
-
Red = "red",
|
|
40
|
-
Blue = "blue",
|
|
41
|
-
Green = "green",
|
|
42
|
-
Yellow = "yellow",
|
|
43
|
-
Orange = "orange",
|
|
44
|
-
Purple = "purple",
|
|
45
|
-
Grey = "grey",
|
|
46
|
-
Brown = "brown",
|
|
47
|
-
Gold = "gold",
|
|
48
|
-
Black = "black"
|
|
49
|
-
}
|
|
50
|
-
export declare enum Texture {
|
|
51
|
-
Smooth = "smooth",
|
|
52
|
-
Rough = "rough",
|
|
53
|
-
Bumpy = "bumpy",
|
|
54
|
-
Fuzzy = "fuzzy",
|
|
55
|
-
Grainy = "grainy",
|
|
56
|
-
Metallic = "metallic"
|
|
57
|
-
}
|
|
58
|
-
export declare enum RoomType {
|
|
59
|
-
INSIDE = "inside",
|
|
60
|
-
OUTSIDE = "outside",
|
|
61
|
-
UNDERGROUND = "underground",
|
|
62
|
-
CAVE = "cave",
|
|
63
|
-
TOWER = "tower",
|
|
64
|
-
FOREST = "forest",
|
|
65
|
-
DESERT = "desert",
|
|
66
|
-
MOUNTAIN = "mountain",
|
|
67
|
-
BEACH = "beach",
|
|
68
|
-
SEA = "sea"
|
|
28
|
+
CurrencyContainer = "currency container",
|
|
29
|
+
Medical = "medical"
|
|
69
30
|
}
|
|
70
31
|
export declare enum Direction {
|
|
71
32
|
NORTH = "north",
|
|
@@ -11,6 +11,7 @@ export var Rating;
|
|
|
11
11
|
Rating["Common"] = "common";
|
|
12
12
|
Rating["Rare"] = "rare";
|
|
13
13
|
Rating["Legendary"] = "legendary";
|
|
14
|
+
Rating["MilitaryGrade"] = "military-grade";
|
|
14
15
|
})(Rating || (Rating = {}));
|
|
15
16
|
export var Category;
|
|
16
17
|
(function (Category) {
|
|
@@ -28,52 +29,8 @@ export var Category;
|
|
|
28
29
|
Category["Cup"] = "cup";
|
|
29
30
|
Category["Unknown"] = "unknown";
|
|
30
31
|
Category["CurrencyContainer"] = "currency container";
|
|
32
|
+
Category["Medical"] = "medical";
|
|
31
33
|
})(Category || (Category = {}));
|
|
32
|
-
export var Shape;
|
|
33
|
-
(function (Shape) {
|
|
34
|
-
Shape["Circle"] = "circle";
|
|
35
|
-
Shape["Square"] = "square";
|
|
36
|
-
Shape["Triangle"] = "triangle";
|
|
37
|
-
Shape["Rectangle"] = "rectangle";
|
|
38
|
-
Shape["Blade"] = "blade";
|
|
39
|
-
Shape["Rifle"] = "rifle";
|
|
40
|
-
Shape["Pistol"] = "pistol";
|
|
41
|
-
})(Shape || (Shape = {}));
|
|
42
|
-
export var Color;
|
|
43
|
-
(function (Color) {
|
|
44
|
-
Color["Red"] = "red";
|
|
45
|
-
Color["Blue"] = "blue";
|
|
46
|
-
Color["Green"] = "green";
|
|
47
|
-
Color["Yellow"] = "yellow";
|
|
48
|
-
Color["Orange"] = "orange";
|
|
49
|
-
Color["Purple"] = "purple";
|
|
50
|
-
Color["Grey"] = "grey";
|
|
51
|
-
Color["Brown"] = "brown";
|
|
52
|
-
Color["Gold"] = "gold";
|
|
53
|
-
Color["Black"] = "black";
|
|
54
|
-
})(Color || (Color = {}));
|
|
55
|
-
export var Texture;
|
|
56
|
-
(function (Texture) {
|
|
57
|
-
Texture["Smooth"] = "smooth";
|
|
58
|
-
Texture["Rough"] = "rough";
|
|
59
|
-
Texture["Bumpy"] = "bumpy";
|
|
60
|
-
Texture["Fuzzy"] = "fuzzy";
|
|
61
|
-
Texture["Grainy"] = "grainy";
|
|
62
|
-
Texture["Metallic"] = "metallic";
|
|
63
|
-
})(Texture || (Texture = {}));
|
|
64
|
-
export var RoomType;
|
|
65
|
-
(function (RoomType) {
|
|
66
|
-
RoomType["INSIDE"] = "inside";
|
|
67
|
-
RoomType["OUTSIDE"] = "outside";
|
|
68
|
-
RoomType["UNDERGROUND"] = "underground";
|
|
69
|
-
RoomType["CAVE"] = "cave";
|
|
70
|
-
RoomType["TOWER"] = "tower";
|
|
71
|
-
RoomType["FOREST"] = "forest";
|
|
72
|
-
RoomType["DESERT"] = "desert";
|
|
73
|
-
RoomType["MOUNTAIN"] = "mountain";
|
|
74
|
-
RoomType["BEACH"] = "beach";
|
|
75
|
-
RoomType["SEA"] = "sea";
|
|
76
|
-
})(RoomType || (RoomType = {}));
|
|
77
34
|
export var Direction;
|
|
78
35
|
(function (Direction) {
|
|
79
36
|
Direction["NORTH"] = "north";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/types/enums.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,IAMX;AAND,WAAY,IAAI;IACd,qBAAa,CAAA;IACX,uBAAe,CAAA;IACf,yBAAiB,CAAA;IACjB,uBAAe,CAAA;IACf,gCAAwB,CAAA;AAC5B,CAAC,EANW,IAAI,KAAJ,IAAI,QAMf;AAED,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/types/enums.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,IAMX;AAND,WAAY,IAAI;IACd,qBAAa,CAAA;IACX,uBAAe,CAAA;IACf,yBAAiB,CAAA;IACjB,uBAAe,CAAA;IACf,gCAAwB,CAAA;AAC5B,CAAC,EANW,IAAI,KAAJ,IAAI,QAMf;AAED,MAAM,CAAN,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,2BAAiB,CAAA;IACf,uBAAa,CAAA;IACb,iCAAuB,CAAA;IACvB,0CAAgC,CAAA;AACpC,CAAC,EALW,MAAM,KAAN,MAAM,QAKjB;AAED,MAAM,CAAN,IAAY,QAgBX;AAhBD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,uBAAW,CAAA;IACX,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,uBAAW,CAAA;IACX,2BAAe,CAAA;IACf,kCAAsB,CAAA;IACtB,kCAAsB,CAAA;IACtB,oCAAwB,CAAA;IACxB,yBAAa,CAAA;IACb,uBAAW,CAAA;IACX,+BAAmB,CAAA;IACnB,oDAAwC,CAAA;IACxC,+BAAmB,CAAA;AACrB,CAAC,EAhBW,QAAQ,KAAR,QAAQ,QAgBnB;AAED,MAAM,CAAN,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACb,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,sBAAS,CAAA;IACT,0BAAa,CAAA;AACjB,CAAC,EAPW,SAAS,KAAT,SAAS,QAOpB"}
|
|
@@ -7,7 +7,7 @@ import { Inventory } from '../models/inventory.js';
|
|
|
7
7
|
import { Puzzle } from '../models/puzzle.js';
|
|
8
8
|
import { NPC } from '../models/npc.js';
|
|
9
9
|
import { PlayerEquipment, RoomConfiguration } from './types.js';
|
|
10
|
-
import { Size, Category,
|
|
10
|
+
import { Size, Category, Rating, Direction } from '../types/enums.js';
|
|
11
11
|
export interface IRooms {
|
|
12
12
|
[key: string]: Room;
|
|
13
13
|
}
|
|
@@ -18,7 +18,7 @@ export interface IMainGameConfig {
|
|
|
18
18
|
export interface IRoomConfig {
|
|
19
19
|
name: string;
|
|
20
20
|
description: string;
|
|
21
|
-
roomType
|
|
21
|
+
roomType: string;
|
|
22
22
|
exits?: Map<Direction, Door | string>;
|
|
23
23
|
inventory?: Inventory;
|
|
24
24
|
puzzle?: Puzzle;
|
|
@@ -31,7 +31,8 @@ export interface IRoomConfig {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
export interface IPuzzleConstructorConfig {
|
|
34
|
-
|
|
34
|
+
name: string;
|
|
35
|
+
requiredItem?: Item;
|
|
35
36
|
requiredPhrase?: string;
|
|
36
37
|
riddle?: string;
|
|
37
38
|
rewardItem?: Item;
|
|
@@ -48,6 +49,8 @@ export interface ISceneConstructorConfig {
|
|
|
48
49
|
authorityRoomTags: string[];
|
|
49
50
|
};
|
|
50
51
|
residenceTiers: string[];
|
|
52
|
+
puzzles?: Puzzle[];
|
|
53
|
+
items?: Item[];
|
|
51
54
|
}
|
|
52
55
|
export interface IPlayer {
|
|
53
56
|
readonly _playerName: string;
|
|
@@ -79,18 +82,18 @@ export interface IDoorConstructorConfig {
|
|
|
79
82
|
roomB: Room;
|
|
80
83
|
isLocked?: boolean;
|
|
81
84
|
unlockItemOrSolution?: string;
|
|
82
|
-
name?: string;
|
|
83
85
|
}
|
|
84
86
|
export interface IItemConstructorConfig {
|
|
85
87
|
name: string;
|
|
86
88
|
description: string;
|
|
87
89
|
size: Size;
|
|
88
90
|
category: Category;
|
|
89
|
-
shape:
|
|
90
|
-
color:
|
|
91
|
-
texture:
|
|
91
|
+
shape: string;
|
|
92
|
+
color: string;
|
|
93
|
+
texture: string;
|
|
92
94
|
rating: Rating;
|
|
93
95
|
weight: number;
|
|
96
|
+
details?: string;
|
|
94
97
|
satisfiesLifestyle?: {
|
|
95
98
|
addictionTypes?: string[];
|
|
96
99
|
habitTags?: string[];
|
|
@@ -103,6 +106,7 @@ export interface IItem {
|
|
|
103
106
|
content?: string;
|
|
104
107
|
}
|
|
105
108
|
export interface IPuzzle {
|
|
109
|
+
requiredItem?: IItem[];
|
|
106
110
|
requiredPhrase: string;
|
|
107
111
|
riddle: string;
|
|
108
112
|
rewardItem: IItem;
|
|
@@ -119,7 +123,7 @@ export interface IRoomConfiguration {
|
|
|
119
123
|
name: string;
|
|
120
124
|
description: string;
|
|
121
125
|
isStartRoom?: boolean;
|
|
122
|
-
roomType
|
|
126
|
+
roomType: string;
|
|
123
127
|
items?: IItem[];
|
|
124
128
|
puzzle?: IPuzzle;
|
|
125
129
|
exits?: IExit[];
|
|
@@ -166,11 +170,12 @@ export interface ISceneSeedJson {
|
|
|
166
170
|
description: string;
|
|
167
171
|
size: keyof typeof Size;
|
|
168
172
|
category: keyof typeof Category;
|
|
169
|
-
shape:
|
|
170
|
-
color:
|
|
171
|
-
texture:
|
|
173
|
+
shape: string;
|
|
174
|
+
color: string;
|
|
175
|
+
texture: string;
|
|
172
176
|
rating: keyof typeof Rating;
|
|
173
177
|
weight: number;
|
|
178
|
+
details?: string;
|
|
174
179
|
currencyAmount?: number;
|
|
175
180
|
satisfiesLifestyle?: {
|
|
176
181
|
addictionTypes?: string[];
|
|
@@ -179,6 +184,7 @@ export interface ISceneSeedJson {
|
|
|
179
184
|
room: string;
|
|
180
185
|
}>;
|
|
181
186
|
puzzles?: Array<{
|
|
187
|
+
name: string;
|
|
182
188
|
requiredItem?: string;
|
|
183
189
|
requiredPhrase?: string;
|
|
184
190
|
riddle?: string;
|
|
@@ -186,5 +192,6 @@ export interface ISceneSeedJson {
|
|
|
186
192
|
failureMessage?: string;
|
|
187
193
|
hobbyTags?: string[];
|
|
188
194
|
room: string;
|
|
195
|
+
rewardItem: string;
|
|
189
196
|
}>;
|
|
190
197
|
}
|