@maka/maka-cli 5.1.25 → 5.1.27

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 (60) hide show
  1. package/bundle/typescript/package.json +1 -1
  2. package/bundle/typescript/src/commands/game/sideQuest/commands/look.js +3 -17
  3. package/bundle/typescript/src/commands/game/sideQuest/commands/look.js.map +1 -1
  4. package/bundle/typescript/src/commands/game/sideQuest/commands/say.js +1 -1
  5. package/bundle/typescript/src/commands/game/sideQuest/commands/say.js.map +1 -1
  6. package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js +2 -0
  7. package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js.map +1 -1
  8. package/bundle/typescript/src/commands/game/sideQuest/factories/roomsF.d.ts +2 -4
  9. package/bundle/typescript/src/commands/game/sideQuest/factories/roomsF.js +2 -51
  10. package/bundle/typescript/src/commands/game/sideQuest/factories/roomsF.js.map +1 -1
  11. package/bundle/typescript/src/commands/game/sideQuest/factories/sceneSynthesizer.js +18 -7
  12. package/bundle/typescript/src/commands/game/sideQuest/factories/sceneSynthesizer.js.map +1 -1
  13. package/bundle/typescript/src/commands/game/sideQuest/game.d.ts +2 -1
  14. package/bundle/typescript/src/commands/game/sideQuest/game.js.map +1 -1
  15. package/bundle/typescript/src/commands/game/sideQuest/models/door.d.ts +1 -0
  16. package/bundle/typescript/src/commands/game/sideQuest/models/door.js +3 -2
  17. package/bundle/typescript/src/commands/game/sideQuest/models/door.js.map +1 -1
  18. package/bundle/typescript/src/commands/game/sideQuest/models/item.d.ts +5 -4
  19. package/bundle/typescript/src/commands/game/sideQuest/models/item.js +13 -1
  20. package/bundle/typescript/src/commands/game/sideQuest/models/item.js.map +1 -1
  21. package/bundle/typescript/src/commands/game/sideQuest/models/npc.d.ts +3 -0
  22. package/bundle/typescript/src/commands/game/sideQuest/models/npc.js +7 -0
  23. package/bundle/typescript/src/commands/game/sideQuest/models/npc.js.map +1 -1
  24. package/bundle/typescript/src/commands/game/sideQuest/models/player.js +1 -1
  25. package/bundle/typescript/src/commands/game/sideQuest/models/player.js.map +1 -1
  26. package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.d.ts +4 -2
  27. package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js +12 -2
  28. package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js.map +1 -1
  29. package/bundle/typescript/src/commands/game/sideQuest/models/room.d.ts +2 -2
  30. package/bundle/typescript/src/commands/game/sideQuest/models/room.js +2 -2
  31. package/bundle/typescript/src/commands/game/sideQuest/models/room.js.map +1 -1
  32. package/bundle/typescript/src/commands/game/sideQuest/models/scene.d.ts +1 -0
  33. package/bundle/typescript/src/commands/game/sideQuest/models/scene.js +12 -0
  34. package/bundle/typescript/src/commands/game/sideQuest/models/scene.js.map +1 -1
  35. package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.js +1 -0
  36. package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.js.map +1 -0
  37. package/bundle/typescript/src/commands/game/sideQuest/scenes/scene1.json +69 -24
  38. package/bundle/typescript/src/commands/game/sideQuest/scenes/scene2.json +211 -0
  39. package/bundle/typescript/src/commands/game/sideQuest/scenes/scene3.json +380 -0
  40. package/bundle/typescript/src/commands/game/sideQuest/types/abstracts.d.ts +7 -7
  41. package/bundle/typescript/src/commands/game/sideQuest/types/abstracts.js +0 -1
  42. package/bundle/typescript/src/commands/game/sideQuest/types/abstracts.js.map +1 -1
  43. package/bundle/typescript/src/commands/game/sideQuest/types/enums.d.ts +4 -43
  44. package/bundle/typescript/src/commands/game/sideQuest/types/enums.js +2 -45
  45. package/bundle/typescript/src/commands/game/sideQuest/types/enums.js.map +1 -1
  46. package/bundle/typescript/src/commands/game/sideQuest/types/interfaces.d.ts +18 -13
  47. package/bundle/typescript/src/commands/game/sideQuest/ui.js +23 -18
  48. package/bundle/typescript/src/commands/game/sideQuest/ui.js.map +1 -1
  49. package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js +6 -2
  50. package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js.map +1 -1
  51. package/package.json +1 -1
  52. package/bundle/typescript/src/commands/game/sideQuest/scenes/items.d.ts +0 -59
  53. package/bundle/typescript/src/commands/game/sideQuest/scenes/items.js +0 -271
  54. package/bundle/typescript/src/commands/game/sideQuest/scenes/items.js.map +0 -1
  55. package/bundle/typescript/src/commands/game/sideQuest/scenes/puzzles.js +0 -1
  56. package/bundle/typescript/src/commands/game/sideQuest/scenes/puzzles.js.map +0 -1
  57. package/bundle/typescript/src/commands/game/sideQuest/scenes/rooms.d.ts +0 -4
  58. package/bundle/typescript/src/commands/game/sideQuest/scenes/rooms.js +0 -350
  59. package/bundle/typescript/src/commands/game/sideQuest/scenes/rooms.js.map +0 -1
  60. /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, Shape, Color, Texture, Rating, Direction, RoomType } from './enums.js';
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: 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: Shape;
96
- color: Color;
97
- texture: 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 requiredItem?: string;
135
+ abstract name: string;
136
+ abstract requiredItem?: Item;
137
137
  abstract requiredPhrase?: string;
138
138
  abstract riddle?: string;
139
139
  abstract rewardItem?: Item;
@@ -33,7 +33,6 @@ export class AbstractDoor {
33
33
  roomB; // The other side of the door
34
34
  isLocked;
35
35
  unlockItemOrSolution;
36
- name;
37
36
  logger;
38
37
  isLockable;
39
38
  }
@@ -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;AA6BtC;;;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,CAAW;IACnB,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,IAAI,CAAS;IACb,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,CAAQ;IACb,KAAK,CAAQ;IACb,OAAO,CAAU;IACjB,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;CAa3B"}
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,MAIX;AAJD,WAAY,MAAM;IAChB,2BAAiB,CAAA;IACf,uBAAa,CAAA;IACb,iCAAuB,CAAA;AAC3B,CAAC,EAJW,MAAM,KAAN,MAAM,QAIjB;AAED,MAAM,CAAN,IAAY,QAeX;AAfD,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;AAC1C,CAAC,EAfW,QAAQ,KAAR,QAAQ,QAenB;AAED,MAAM,CAAN,IAAY,KAQX;AARD,WAAY,KAAK;IACf,0BAAiB,CAAA;IACf,0BAAiB,CAAA;IACjB,8BAAqB,CAAA;IACrB,gCAAuB,CAAA;IACvB,wBAAe,CAAA;IACf,wBAAe,CAAA;IACf,0BAAiB,CAAA;AACrB,CAAC,EARW,KAAK,KAAL,KAAK,QAQhB;AAED,MAAM,CAAN,IAAY,KAWX;AAXD,WAAY,KAAK;IACf,oBAAW,CAAA;IACT,sBAAa,CAAA;IACb,wBAAe,CAAA;IACf,0BAAiB,CAAA;IACjB,0BAAiB,CAAA;IACjB,0BAAiB,CAAA;IACjB,sBAAa,CAAA;IACb,wBAAe,CAAA;IACf,sBAAa,CAAA;IACb,wBAAe,CAAA;AACnB,CAAC,EAXW,KAAK,KAAL,KAAK,QAWhB;AAED,MAAM,CAAN,IAAY,OAOX;AAPD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACf,0BAAe,CAAA;IACf,0BAAe,CAAA;IACf,0BAAe,CAAA;IACf,4BAAiB,CAAA;IACjB,gCAAqB,CAAA;AACzB,CAAC,EAPW,OAAO,KAAP,OAAO,QAOlB;AAED,MAAM,CAAN,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACf,+BAAmB,CAAA;IACnB,uCAA2B,CAAA;IAC3B,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,iCAAqB,CAAA;IACrB,2BAAe,CAAA;IACf,uBAAW,CAAA;AACf,CAAC,EAXW,QAAQ,KAAR,QAAQ,QAWnB;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"}
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, Shape, Color, Texture, Rating, RoomType, Direction } from '../types/enums.js';
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?: 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
- requiredItem?: string;
34
+ name: string;
35
+ requiredItem?: Item;
35
36
  requiredPhrase?: string;
36
37
  riddle?: string;
37
38
  rewardItem?: Item;
@@ -44,11 +45,12 @@ export interface ISceneConstructorConfig {
44
45
  roomConfiguration: RoomConfiguration;
45
46
  currency?: {
46
47
  type: string;
47
- carrier: string;
48
48
  carrierItemSizes: Size[];
49
49
  authorityRoomTags: string[];
50
50
  };
51
51
  residenceTiers: string[];
52
+ puzzles?: Puzzle[];
53
+ items?: Item[];
52
54
  }
53
55
  export interface IPlayer {
54
56
  readonly _playerName: string;
@@ -80,18 +82,18 @@ export interface IDoorConstructorConfig {
80
82
  roomB: Room;
81
83
  isLocked?: boolean;
82
84
  unlockItemOrSolution?: string;
83
- name?: string;
84
85
  }
85
86
  export interface IItemConstructorConfig {
86
87
  name: string;
87
88
  description: string;
88
89
  size: Size;
89
90
  category: Category;
90
- shape: Shape;
91
- color: Color;
92
- texture: Texture;
91
+ shape: string;
92
+ color: string;
93
+ texture: string;
93
94
  rating: Rating;
94
95
  weight: number;
96
+ details?: string;
95
97
  satisfiesLifestyle?: {
96
98
  addictionTypes?: string[];
97
99
  habitTags?: string[];
@@ -104,6 +106,7 @@ export interface IItem {
104
106
  content?: string;
105
107
  }
106
108
  export interface IPuzzle {
109
+ requiredItem?: IItem[];
107
110
  requiredPhrase: string;
108
111
  riddle: string;
109
112
  rewardItem: IItem;
@@ -120,7 +123,7 @@ export interface IRoomConfiguration {
120
123
  name: string;
121
124
  description: string;
122
125
  isStartRoom?: boolean;
123
- roomType?: string;
126
+ roomType: string;
124
127
  items?: IItem[];
125
128
  puzzle?: IPuzzle;
126
129
  exits?: IExit[];
@@ -151,7 +154,6 @@ export interface ISceneSeedJson {
151
154
  name: string;
152
155
  currency: {
153
156
  type: string;
154
- carrier: string;
155
157
  carrierItemSizes: string[];
156
158
  authorityRoomTags: string[];
157
159
  };
@@ -168,11 +170,12 @@ export interface ISceneSeedJson {
168
170
  description: string;
169
171
  size: keyof typeof Size;
170
172
  category: keyof typeof Category;
171
- shape: keyof typeof Shape;
172
- color: keyof typeof Color;
173
- texture: keyof typeof Texture;
173
+ shape: string;
174
+ color: string;
175
+ texture: string;
174
176
  rating: keyof typeof Rating;
175
177
  weight: number;
178
+ details?: string;
176
179
  currencyAmount?: number;
177
180
  satisfiesLifestyle?: {
178
181
  addictionTypes?: string[];
@@ -181,6 +184,7 @@ export interface ISceneSeedJson {
181
184
  room: string;
182
185
  }>;
183
186
  puzzles?: Array<{
187
+ name: string;
184
188
  requiredItem?: string;
185
189
  requiredPhrase?: string;
186
190
  riddle?: string;
@@ -188,5 +192,6 @@ export interface ISceneSeedJson {
188
192
  failureMessage?: string;
189
193
  hobbyTags?: string[];
190
194
  room: string;
195
+ rewardItem: string;
191
196
  }>;
192
197
  }