@maka/maka-cli 5.1.32 → 5.1.33

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 (48) hide show
  1. package/bundle/typescript/package.json +1 -1
  2. package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js +43 -8
  3. package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js.map +1 -1
  4. package/bundle/typescript/src/commands/game/sideQuest/commands/give.js +3 -0
  5. package/bundle/typescript/src/commands/game/sideQuest/commands/give.js.map +1 -1
  6. package/bundle/typescript/src/commands/game/sideQuest/commands/go.js +4 -2
  7. package/bundle/typescript/src/commands/game/sideQuest/commands/go.js.map +1 -1
  8. package/bundle/typescript/src/commands/game/sideQuest/commands/kill.js +2 -0
  9. package/bundle/typescript/src/commands/game/sideQuest/commands/kill.js.map +1 -1
  10. package/bundle/typescript/src/commands/game/sideQuest/commands/lock.js +2 -0
  11. package/bundle/typescript/src/commands/game/sideQuest/commands/lock.js.map +1 -1
  12. package/bundle/typescript/src/commands/game/sideQuest/commands/look.d.ts +1 -0
  13. package/bundle/typescript/src/commands/game/sideQuest/commands/look.js +58 -6
  14. package/bundle/typescript/src/commands/game/sideQuest/commands/look.js.map +1 -1
  15. package/bundle/typescript/src/commands/game/sideQuest/commands/say.js +11 -15
  16. package/bundle/typescript/src/commands/game/sideQuest/commands/say.js.map +1 -1
  17. package/bundle/typescript/src/commands/game/sideQuest/commands/take.js +5 -3
  18. package/bundle/typescript/src/commands/game/sideQuest/commands/take.js.map +1 -1
  19. package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js +3 -1
  20. package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js.map +1 -1
  21. package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js +10 -1
  22. package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js.map +1 -1
  23. package/bundle/typescript/src/commands/game/sideQuest/game.d.ts +1 -0
  24. package/bundle/typescript/src/commands/game/sideQuest/game.js +4 -1
  25. package/bundle/typescript/src/commands/game/sideQuest/game.js.map +1 -1
  26. package/bundle/typescript/src/commands/game/sideQuest/models/npc.d.ts +8 -0
  27. package/bundle/typescript/src/commands/game/sideQuest/models/npc.js +260 -94
  28. package/bundle/typescript/src/commands/game/sideQuest/models/npc.js.map +1 -1
  29. package/bundle/typescript/src/commands/game/sideQuest/models/player.d.ts +6 -2
  30. package/bundle/typescript/src/commands/game/sideQuest/models/player.js +141 -18
  31. package/bundle/typescript/src/commands/game/sideQuest/models/player.js.map +1 -1
  32. package/bundle/typescript/src/commands/game/sideQuest/models/room.d.ts +2 -1
  33. package/bundle/typescript/src/commands/game/sideQuest/models/room.js +23 -17
  34. package/bundle/typescript/src/commands/game/sideQuest/models/room.js.map +1 -1
  35. package/bundle/typescript/src/commands/game/sideQuest/models/scene.d.ts +3 -1
  36. package/bundle/typescript/src/commands/game/sideQuest/models/scene.js +12 -14
  37. package/bundle/typescript/src/commands/game/sideQuest/models/scene.js.map +1 -1
  38. package/bundle/typescript/src/commands/game/sideQuest/scenes/scene1.json +113 -1
  39. package/bundle/typescript/src/commands/game/sideQuest/scenes/scene2.json +82 -0
  40. package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.d.ts +16 -5
  41. package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.d.ts +2 -0
  42. package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.d.ts +3 -0
  43. package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.d.ts +47 -12
  44. package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js +53 -11
  45. package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js.map +1 -1
  46. package/bundle/typescript/src/templates/meteor/api/api.js +1 -1
  47. package/bundle/typescript/src/templates/meteor/api/api.js.ts +1 -1
  48. package/package.json +1 -1
@@ -7,6 +7,88 @@
7
7
  "carrier": "credstick",
8
8
  "authorityRoomTags": ["Vault"]
9
9
  },
10
+ "player": {
11
+ "name": "Maka",
12
+ "startLocation": "Barrens Apartment",
13
+ "lifestyleChoices": [
14
+ {
15
+ "type": "residence",
16
+ "metadata": {
17
+ "tier": "Street",
18
+ "location": "Barrens Apartment"
19
+ }
20
+ }
21
+ ],
22
+ "startingItems": [
23
+ {
24
+ "name": "Ares Light Fire 75",
25
+ "description": "A small, concealable pistol favored by shadowrunners on a budget.",
26
+ "size": "Small",
27
+ "category": "RangedWeapon",
28
+ "shape": "Pistol",
29
+ "color": "Black",
30
+ "texture": "Matte",
31
+ "rating": "Common",
32
+ "weight": 1.2
33
+ },
34
+ {
35
+ "name": "Armored Jacket",
36
+ "description": "A rugged armored jacket with built-in smartweave. Offers decent protection without looking too suspicious.",
37
+ "size": "Large",
38
+ "category": "Armor",
39
+ "shape": "Jacket",
40
+ "color": "Dark Green",
41
+ "texture": "Kevlar",
42
+ "rating": "Standard",
43
+ "weight": 3.5
44
+ },
45
+ {
46
+ "name": "MetaLink Commlink",
47
+ "description": "A cheap but functional commlink. You hope it doesn't get hacked.",
48
+ "size": "Tiny",
49
+ "category": "Commlink",
50
+ "shape": "Rectangle",
51
+ "color": "Gray",
52
+ "texture": "Plastic",
53
+ "rating": "Common",
54
+ "weight": 0.1
55
+ },
56
+ {
57
+ "name": "Starter Credstick",
58
+ "description": "A basic credstick loaded with some nuyen for expenses.",
59
+ "size": "Small",
60
+ "category": "Credstick",
61
+ "shape": "Cylinder",
62
+ "color": "Silver",
63
+ "texture": "Smooth",
64
+ "rating": "Common",
65
+ "weight": 0.2,
66
+ "currencyAmount": 250
67
+ },
68
+ {
69
+ "name": "Urban Explorer Boots",
70
+ "description": "Sturdy street boots with impact gel soles and reinforced toes.",
71
+ "size": "Medium",
72
+ "category": "Boots",
73
+ "shape": "Boots",
74
+ "color": "Black",
75
+ "texture": "Rugged",
76
+ "rating": "Common",
77
+ "weight": 2.0
78
+ },
79
+ {
80
+ "name": "Knockoff Smart Glasses",
81
+ "description": "AR overlay glasses with minor signal lag. Still decent for the price.",
82
+ "size": "Tiny",
83
+ "category": "Glasses",
84
+ "shape": "Glasses",
85
+ "color": "Black",
86
+ "texture": "Plastic",
87
+ "rating": "Common",
88
+ "weight": 0.1
89
+ }
90
+ ]
91
+ },
10
92
  "rooms": [
11
93
  {
12
94
  "name": "Drowned Alley",
@@ -2,42 +2,53 @@ import { Item } from '../models/item.js';
2
2
  export type Inventory = Item[];
3
3
  export type HeadEquipment = {
4
4
  eyes: Item | null;
5
- skull: Item | null;
6
5
  ears: Item | null;
6
+ skull: Item | null;
7
7
  mouth: Item | null;
8
8
  nose: Item | null;
9
+ commlink: Item | null;
9
10
  };
10
11
  export type TorsoEquipment = {
12
+ armorVest: Item | null;
13
+ armorCoat: Item | null;
11
14
  backpack: Item | null;
15
+ tacticalRig: Item | null;
12
16
  leftShoulder: Item | null;
13
17
  rightShoulder: Item | null;
14
18
  bandolier: Item | null;
15
19
  };
16
20
  export type LegEquipment = {
21
+ pants: Item | null;
22
+ thighRig: Item | null;
17
23
  leftHip: Item | null;
18
24
  rightHip: Item | null;
19
- leftThigh: Item | null;
20
- rightThigh: Item | null;
21
25
  };
22
26
  export type FeetEquipment = {
27
+ boots: Item | null;
23
28
  leftAnkle: Item | null;
24
29
  rightAnkle: Item | null;
25
30
  };
26
31
  export type ArmsEquipment = {
27
- leftBicept: Item | null;
28
- rightBicept: Item | null;
29
32
  leftForearm: Item | null;
30
33
  rightForearm: Item | null;
34
+ leftBicept: Item | null;
35
+ rightBicept: Item | null;
36
+ cyberware: Item | null;
31
37
  };
32
38
  export type GlovesEquipment = {
33
39
  leftWrist: Item | null;
34
40
  rightWrist: Item | null;
35
41
  };
36
42
  export type LeftHandEquipment = {
43
+ weapon: Item | null;
44
+ shield: Item | null;
37
45
  ring: Item | null;
46
+ device: Item | null;
38
47
  };
39
48
  export type RightHandEquipment = {
49
+ weapon: Item | null;
40
50
  ring: Item | null;
51
+ device: Item | null;
41
52
  };
42
53
  export type PlayerEquipment = {
43
54
  head: HeadEquipment | null;
@@ -1,6 +1,8 @@
1
1
  import { LifestyleChoice } from './lifestyle-seed.js';
2
+ import { IItemSeedJson } from './item-seed.js';
2
3
  export interface IPlayerSeedJson {
3
4
  name: string;
4
5
  startLocation: string;
5
6
  lifestyleChoices: LifestyleChoice[];
7
+ startingItems?: IItemSeedJson[];
6
8
  }
@@ -2,6 +2,7 @@ import { IRoomSeedJson } from './room-seed.js';
2
2
  import { INPCSeedJson } from './npc-seed.js';
3
3
  import { IItemSeedJson } from './item-seed.js';
4
4
  import { IPuzzleSeedJson } from './puzzle-seed.js';
5
+ import { IPlayerSeedJson } from './player-seed.js';
5
6
  export interface ISceneSeedJson {
6
7
  name: string;
7
8
  currency: {
@@ -14,4 +15,6 @@ export interface ISceneSeedJson {
14
15
  puzzles: IPuzzleSeedJson[];
15
16
  residenceTiers: string[];
16
17
  story: string;
18
+ /** The logging-in player who will be actively controlled */
19
+ player: IPlayerSeedJson;
17
20
  }
@@ -14,21 +14,56 @@ export declare enum Rating {
14
14
  }
15
15
  export declare enum Category {
16
16
  Weapon = "weapon",
17
+ MeleeWeapon = "melee weapon",
18
+ RangedWeapon = "ranged weapon",
19
+ Ammunition = "ammunition",
20
+ Explosive = "explosive",
21
+ BodyArmor = "body armor",
22
+ Armor = "armor",
17
23
  Shield = "shield",
18
- Key = "key",
19
- Gloves = "gloves",
20
24
  Helmet = "helmet",
21
- Hat = "hat",
22
- Boots = "boots",
23
- LegArmor = "leg armor",
24
25
  ArmArmor = "arm armor",
25
- BodyArmor = "body armor",
26
- Book = "book",
27
- Cup = "cup",
28
- Unknown = "unknown",
29
- CurrencyContainer = "currency container",
26
+ LegArmor = "leg armor",
27
+ Boots = "boots",
28
+ Gloves = "gloves",
29
+ Cyberware = "cyberware",
30
+ Bioware = "bioware",
31
+ Nanoware = "nanoware",
32
+ Geneware = "geneware",
33
+ Commlink = "commlink",
34
+ Cyberdeck = "cyberdeck",
35
+ RCC = "rcc",// Rigger Command Console
36
+ Drone = "drone",
37
+ Software = "software",
38
+ Electronics = "electronics",
39
+ EyeCyberwere = "eyewear",
40
+ Focus = "focus",
41
+ SpellFormula = "spell formula",
42
+ AlchemicalItem = "alchemical item",
43
+ MagicalReagent = "magical reagent",
44
+ Fetish = "fetish",
45
+ Grimoire = "grimoire",
46
+ Clothing = "clothing",
47
+ ArmorClothing = "armor clothing",
30
48
  Medical = "medical",
31
- Consumable = "consumable",
32
49
  Tool = "tool",
33
- Vice = "vice"
50
+ Consumable = "consumable",
51
+ Sensor = "sensor",
52
+ SlapPatch = "slap patch",
53
+ BiometricScanner = "biometric scanner",
54
+ Hat = "hat",
55
+ Glasses = "glasses",
56
+ SIN = "sin",
57
+ FakeSIN = "fake sin",
58
+ License = "license",
59
+ CurrencyContainer = "currency container",
60
+ Credstick = "credstick",
61
+ Vice = "vice",
62
+ Book = "book",
63
+ Key = "key",
64
+ Trinket = "trinket",
65
+ Document = "document",
66
+ Datachip = "datachip",
67
+ Badge = "badge",
68
+ Unknown = "unknown"
34
69
  }
@@ -16,23 +16,65 @@ export var Rating;
16
16
  })(Rating || (Rating = {}));
17
17
  export var Category;
18
18
  (function (Category) {
19
+ // Combat
19
20
  Category["Weapon"] = "weapon";
21
+ Category["MeleeWeapon"] = "melee weapon";
22
+ Category["RangedWeapon"] = "ranged weapon";
23
+ Category["Ammunition"] = "ammunition";
24
+ Category["Explosive"] = "explosive";
25
+ Category["BodyArmor"] = "body armor";
26
+ Category["Armor"] = "armor";
20
27
  Category["Shield"] = "shield";
21
- Category["Key"] = "key";
22
- Category["Gloves"] = "gloves";
23
28
  Category["Helmet"] = "helmet";
24
- Category["Hat"] = "hat";
25
- Category["Boots"] = "boots";
26
- Category["LegArmor"] = "leg armor";
27
29
  Category["ArmArmor"] = "arm armor";
28
- Category["BodyArmor"] = "body armor";
29
- Category["Book"] = "book";
30
- Category["Cup"] = "cup";
31
- Category["Unknown"] = "unknown";
32
- Category["CurrencyContainer"] = "currency container";
30
+ Category["LegArmor"] = "leg armor";
31
+ Category["Boots"] = "boots";
32
+ Category["Gloves"] = "gloves";
33
+ // Cyberware / Bioware / Augmentations
34
+ Category["Cyberware"] = "cyberware";
35
+ Category["Bioware"] = "bioware";
36
+ Category["Nanoware"] = "nanoware";
37
+ Category["Geneware"] = "geneware";
38
+ // Electronics and Matrix
39
+ Category["Commlink"] = "commlink";
40
+ Category["Cyberdeck"] = "cyberdeck";
41
+ Category["RCC"] = "rcc";
42
+ Category["Drone"] = "drone";
43
+ Category["Software"] = "software";
44
+ Category["Electronics"] = "electronics";
45
+ Category["EyeCyberwere"] = "eyewear";
46
+ // Magic
47
+ Category["Focus"] = "focus";
48
+ Category["SpellFormula"] = "spell formula";
49
+ Category["AlchemicalItem"] = "alchemical item";
50
+ Category["MagicalReagent"] = "magical reagent";
51
+ Category["Fetish"] = "fetish";
52
+ Category["Grimoire"] = "grimoire";
53
+ // Gear and Utility
54
+ Category["Clothing"] = "clothing";
55
+ Category["ArmorClothing"] = "armor clothing";
33
56
  Category["Medical"] = "medical";
34
- Category["Consumable"] = "consumable";
35
57
  Category["Tool"] = "tool";
58
+ Category["Consumable"] = "consumable";
59
+ Category["Sensor"] = "sensor";
60
+ Category["SlapPatch"] = "slap patch";
61
+ Category["BiometricScanner"] = "biometric scanner";
62
+ Category["Hat"] = "hat";
63
+ Category["Glasses"] = "glasses";
64
+ // Economy & Identity
65
+ Category["SIN"] = "sin";
66
+ Category["FakeSIN"] = "fake sin";
67
+ Category["License"] = "license";
68
+ Category["CurrencyContainer"] = "currency container";
69
+ Category["Credstick"] = "credstick";
70
+ // Misc and World
36
71
  Category["Vice"] = "vice";
72
+ Category["Book"] = "book";
73
+ Category["Key"] = "key";
74
+ Category["Trinket"] = "trinket";
75
+ Category["Document"] = "document";
76
+ Category["Datachip"] = "datachip";
77
+ Category["Badge"] = "badge";
78
+ Category["Unknown"] = "unknown";
37
79
  })(Category || (Category = {}));
38
80
  //# sourceMappingURL=item-enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"item-enum.js","sourceRoot":"","sources":["../../../../../../../../src/commands/game/sideQuest/types/shared/item-enum.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,MAMX;AAND,WAAY,MAAM;IAChB,2BAAiB,CAAA;IACf,+BAAqB,CAAA;IACrB,uBAAa,CAAA;IACb,iCAAuB,CAAA;IACvB,0CAAgC,CAAA;AACpC,CAAC,EANW,MAAM,KAAN,MAAM,QAMjB;AAED,MAAM,CAAN,IAAY,QAmBX;AAnBD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACf,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;IACnB,qCAAyB,CAAA;IACzB,yBAAa,CAAA;IACb,yBAAa,CAAA;AACjB,CAAC,EAnBW,QAAQ,KAAR,QAAQ,QAmBnB"}
1
+ {"version":3,"file":"item-enum.js","sourceRoot":"","sources":["../../../../../../../../src/commands/game/sideQuest/types/shared/item-enum.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,MAMX;AAND,WAAY,MAAM;IAChB,2BAAi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CAAA;IACX,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,2BAAe,CAAA;IACf,+BAAmB,CAAA;AACrB,CAAC,EAnEW,QAAQ,KAAR,QAAQ,QAmEnB"}
@@ -6,7 +6,7 @@ const <%= name %>Api = new MakaRest({
6
6
  version: '<%= apiVersion %>',
7
7
  prettyJson: Meteor.isDevelopment,
8
8
  rateLimitOptions: {
9
- useRedits: false,
9
+ useRedis: false,
10
10
  points: 2,
11
11
  duration: 5, // seconds
12
12
  }
@@ -6,7 +6,7 @@ const <%= name %>Api = new MakaRest({
6
6
  version: '<%= apiVersion %>',
7
7
  prettyJson: Meteor.isDevelopment,
8
8
  rateLimitOptions: {
9
- useRedits: false,
9
+ useRedis: false,
10
10
  points: 2,
11
11
  duration: 5, // seconds
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.1.32",
3
+ "version": "5.1.33",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",