@maka/maka-cli 5.121.0 → 5.122.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/bundle/typescript/package.json +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/archetypes.d.ts +72 -0
- package/bundle/typescript/src/commands/game/sideQuest/archetypes.js +300 -61
- package/bundle/typescript/src/commands/game/sideQuest/archetypes.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/aspects.js +11 -1
- package/bundle/typescript/src/commands/game/sideQuest/aspects.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/augmentations.d.ts +33 -0
- package/bundle/typescript/src/commands/game/sideQuest/augmentations.js +85 -0
- package/bundle/typescript/src/commands/game/sideQuest/augmentations.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/buy.js +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/buy.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/equipment.js +4 -2
- package/bundle/typescript/src/commands/game/sideQuest/commands/equipment.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/hack.d.ts +16 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/hack.js +273 -28
- package/bundle/typescript/src/commands/game/sideQuest/commands/hack.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/mark.d.ts +19 -10
- package/bundle/typescript/src/commands/game/sideQuest/commands/mark.js +43 -227
- package/bundle/typescript/src/commands/game/sideQuest/commands/mark.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/move.js +31 -3
- package/bundle/typescript/src/commands/game/sideQuest/commands/move.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/rest.js +5 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/rest.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/sell.js +4 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/sell.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/silent.js +4 -6
- package/bundle/typescript/src/commands/game/sideQuest/commands/silent.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/stance.d.ts +10 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/stance.js +50 -2
- package/bundle/typescript/src/commands/game/sideQuest/commands/stance.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js +27 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/engine-version.d.ts +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/engine-version.js +17 -1
- package/bundle/typescript/src/commands/game/sideQuest/engine-version.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/chargen-factory.d.ts +3 -2
- package/bundle/typescript/src/commands/game/sideQuest/factories/chargen-factory.js +34 -41
- package/bundle/typescript/src/commands/game/sideQuest/factories/chargen-factory.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js +37 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/game.d.ts +47 -0
- package/bundle/typescript/src/commands/game/sideQuest/game.js +103 -4
- package/bundle/typescript/src/commands/game/sideQuest/game.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/headless-harness.d.ts +17 -0
- package/bundle/typescript/src/commands/game/sideQuest/headless-harness.js +30 -2
- package/bundle/typescript/src/commands/game/sideQuest/headless-harness.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/device.d.ts +14 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/device.js +14 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/device.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/item.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/player.d.ts +82 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js +118 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/qualities.d.ts +4 -0
- package/bundle/typescript/src/commands/game/sideQuest/qualities.js +16 -0
- package/bundle/typescript/src/commands/game/sideQuest/qualities.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene1.json +9 -9
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene2.json +6 -6
- package/bundle/typescript/src/commands/game/sideQuest/types/save-file.d.ts +5 -1
- package/bundle/typescript/src/commands/game/sideQuest/ui.js +23 -26
- package/bundle/typescript/src/commands/game/sideQuest/ui.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/catalog.d.ts +24 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/catalog.js +34 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/catalog.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/cloud-saves.d.ts +9 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/cloud-saves.js +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/cloud-saves.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/combat-exchange.js +25 -2
- package/bundle/typescript/src/commands/game/sideQuest/utilities/combat-exchange.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/comm-style.d.ts +32 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/comm-style.js +33 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/comm-style.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/dice.d.ts +5 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/dice.js +35 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/dice.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/matrix-intrusion.d.ts +121 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/matrix-intrusion.js +141 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/matrix-intrusion.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/persistence.js +5 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/persistence.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/pregen-worksheet.d.ts +93 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/pregen-worksheet.js +201 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/pregen-worksheet.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/room-view.js +91 -9
- package/bundle/typescript/src/commands/game/sideQuest/utilities/room-view.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/spots.d.ts +16 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/spots.js +50 -3
- package/bundle/typescript/src/commands/game/sideQuest/utilities/spots.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/web-character-generator.d.ts +7 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/web-character-generator.js +7 -2
- package/bundle/typescript/src/commands/game/sideQuest/utilities/web-character-generator.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js +43 -3
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.122.0",
|
|
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.",
|
|
@@ -27,11 +27,39 @@ export interface IArchetypeGearDef {
|
|
|
27
27
|
color: string;
|
|
28
28
|
texture: string;
|
|
29
29
|
}
|
|
30
|
+
export type PriorityLetter = 'A' | 'B' | 'C' | 'D' | 'E';
|
|
31
|
+
export interface IArchetypePriorities {
|
|
32
|
+
metatype: PriorityLetter;
|
|
33
|
+
attributes: PriorityLetter;
|
|
34
|
+
magic: PriorityLetter;
|
|
35
|
+
skills: PriorityLetter;
|
|
36
|
+
resources: PriorityLetter;
|
|
37
|
+
}
|
|
30
38
|
export interface IArchetype {
|
|
31
39
|
name: string;
|
|
32
40
|
description: string;
|
|
33
41
|
combat: ICombatAttributes;
|
|
34
42
|
gear?: IArchetypeGearDef[];
|
|
43
|
+
/**
|
|
44
|
+
* SIGNATURE GEAR BY CATALOG SLUG (2026-09-03, the v13 pass): a row's
|
|
45
|
+
* name is what Item.row resolves, so a Predator built from its row is
|
|
46
|
+
* DV 8P at AP -1 with a smartgun inside, a Navigator has its p.227
|
|
47
|
+
* array, a medkit its Rating. Hand-written `gear` above was invisible
|
|
48
|
+
* to all of that (a "Trauma Kit" had no row). Custom, flavor-only
|
|
49
|
+
* pieces stay in `gear`; anything the book sells goes here.
|
|
50
|
+
*/
|
|
51
|
+
gearSlugs?: string[];
|
|
52
|
+
/**
|
|
53
|
+
* THE PRIORITY ROW (SR5 p.65; user 2026-09-03: a pregen bound through
|
|
54
|
+
* the wizard must arrive as a COMPLETE, legal build on the Review step,
|
|
55
|
+
* not a spread the validator argues with). Each letter once. The
|
|
56
|
+
* spread above is built to it: attribute spend EXACTLY the column's
|
|
57
|
+
* points (human minimum 1 each), skills within the column's, Edge and
|
|
58
|
+
* any Magic above the offer within the metatype column's special
|
|
59
|
+
* points, the kit within Resources plus converted karma.
|
|
60
|
+
* archetype-priorities.test.ts checks every row the validator's way.
|
|
61
|
+
*/
|
|
62
|
+
priorities: IArchetypePriorities;
|
|
35
63
|
/**
|
|
36
64
|
* Signature chrome, by augmentation key (see augmentations.ts) --
|
|
37
65
|
* installed at character creation with the essence already paid. The
|
|
@@ -50,6 +78,41 @@ export interface IArchetype {
|
|
|
50
78
|
qualities?: string[];
|
|
51
79
|
}
|
|
52
80
|
export declare const ARCHETYPES: IArchetype[];
|
|
81
|
+
/** The p.65 Resources column, lowest to highest. */
|
|
82
|
+
export declare const RESOURCES_PRIORITY: Record<'E' | 'D' | 'C' | 'B' | 'A', number>;
|
|
83
|
+
export interface IArchetypeLedger {
|
|
84
|
+
gearNuyen: number;
|
|
85
|
+
augNuyen: number;
|
|
86
|
+
karmaRemainder: number;
|
|
87
|
+
karmaCarry: number;
|
|
88
|
+
karmaConverted: number;
|
|
89
|
+
/** The archetype's declared Resources column. */
|
|
90
|
+
resources: 'E' | 'D' | 'C' | 'B' | 'A';
|
|
91
|
+
nuyenBudget: number;
|
|
92
|
+
nuyenRemaining: number;
|
|
93
|
+
/** What the runner actually walks onto the street holding (p.95 cap). */
|
|
94
|
+
held: number;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* THE CREATION LEDGER, THE WAY THE CHARGEN VALIDATOR RUNS IT (user,
|
|
98
|
+
* 2026-09-03: "ensure the starting nuyen is appropriate for the archetype
|
|
99
|
+
* -- use the chargen api to validate"). maka-cli.com's validateWorksheet
|
|
100
|
+
* prices a build as: budget = the Resources column + converted karma x
|
|
101
|
+
* 2,000 (at most 10 karma, after 7 carry over, p.98); spent = gear at
|
|
102
|
+
* catalog price + 'ware at its cost x grade + the first month's
|
|
103
|
+
* lifestyle; and the factory caps what a runner may HOLD out of the
|
|
104
|
+
* remainder at 5,000 (p.95) -- the rest is gone into the build. Same
|
|
105
|
+
* constants, same prices, same rows; mirrored here because a pregen has
|
|
106
|
+
* no worksheet to POST (its skill spread is a spread, not a priority
|
|
107
|
+
* column, and the validator would refuse it on that before it priced
|
|
108
|
+
* it). The column is the archetype's own (IArchetype.priorities): the book's
|
|
109
|
+
* pregens are priority builds, and now so are these.
|
|
110
|
+
*
|
|
111
|
+
* Before this, outfitArchetype handed the converted karma over as CASH
|
|
112
|
+
* (up to 20,000): a pregen started with four times what a web-built
|
|
113
|
+
* runner may hold. Street lifestyle (the scenes' tier) costs nothing.
|
|
114
|
+
*/
|
|
115
|
+
export declare function archetypeLedger(archetype: IArchetype): IArchetypeLedger;
|
|
53
116
|
export declare function getArchetype(name?: string): IArchetype;
|
|
54
117
|
/**
|
|
55
118
|
* Instantiates an archetype's requisite gear (see IArchetype.gear).
|
|
@@ -57,6 +120,15 @@ export declare function getArchetype(name?: string): IArchetype;
|
|
|
57
120
|
* ones -- a samurai starts with the Predator IN HAND, not in a duffel.
|
|
58
121
|
*/
|
|
59
122
|
export declare function createArchetypeGear(archetype: IArchetype): Item[];
|
|
123
|
+
/**
|
|
124
|
+
* Every piece an archetype starts with, as constructor configs: the
|
|
125
|
+
* catalog rows first (by slug, converted once in utilities/catalog.ts),
|
|
126
|
+
* then any custom pieces. The harness serializes these into a save; the
|
|
127
|
+
* game instantiates them. A slug with no row throws -- at build time, in
|
|
128
|
+
* the tests that walk every archetype -- rather than shipping a runner
|
|
129
|
+
* without her gun.
|
|
130
|
+
*/
|
|
131
|
+
export declare function archetypeGearDefs(archetype: IArchetype): IArchetypeGearDef[];
|
|
60
132
|
/**
|
|
61
133
|
* Stamps an archetype onto a Player: records the archetype's name (scene
|
|
62
134
|
* generation's dossier reads it -- see buildPlayerDossier), grants the
|