@maka/maka-cli 5.6.0 → 5.8.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 +2 -2
- package/bundle/typescript/src/commands/_index.d.ts +4 -0
- package/bundle/typescript/src/commands/_index.js +4 -0
- package/bundle/typescript/src/commands/_index.js.map +1 -1
- package/bundle/typescript/src/commands/debug.js +1 -7
- package/bundle/typescript/src/commands/debug.js.map +1 -1
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.js +33 -32
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.js.map +1 -1
- package/bundle/typescript/src/commands/env/_index.d.ts +3 -0
- package/bundle/typescript/src/commands/env/_index.js +4 -0
- package/bundle/typescript/src/commands/env/_index.js.map +1 -0
- package/bundle/typescript/src/commands/env/env.command.d.ts +3 -0
- package/bundle/typescript/src/commands/env/env.command.js +22 -0
- package/bundle/typescript/src/commands/env/env.command.js.map +1 -0
- package/bundle/typescript/src/commands/env/get.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/env/get.sub.cmd.js +46 -0
- package/bundle/typescript/src/commands/env/get.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/env/prompt-for-env.d.ts +10 -0
- package/bundle/typescript/src/commands/env/prompt-for-env.js +27 -0
- package/bundle/typescript/src/commands/env/prompt-for-env.js.map +1 -0
- package/bundle/typescript/src/commands/env/set.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/env/set.sub.cmd.js +59 -0
- package/bundle/typescript/src/commands/env/set.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/archetypes.d.ts +16 -0
- package/bundle/typescript/src/commands/game/sideQuest/archetypes.js +81 -2
- package/bundle/typescript/src/commands/game/sideQuest/archetypes.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/augmentations.d.ts +31 -0
- package/bundle/typescript/src/commands/game/sideQuest/augmentations.js +125 -0
- package/bundle/typescript/src/commands/game/sideQuest/augmentations.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/advance.d.ts +17 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/advance.js +113 -15
- package/bundle/typescript/src/commands/game/sideQuest/commands/advance.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/ask.d.ts +37 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/ask.js +197 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/ask.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/assense.js +3 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/assense.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/attack.js +21 -11
- package/bundle/typescript/src/commands/game/sideQuest/commands/attack.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/bluff.d.ts +3 -2
- package/bundle/typescript/src/commands/game/sideQuest/commands/bluff.js +13 -5
- package/bundle/typescript/src/commands/game/sideQuest/commands/bluff.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/brandish.js +7 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/brandish.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/buy.d.ts +16 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/buy.js +97 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/buy.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/bypass-command.d.ts +21 -10
- package/bundle/typescript/src/commands/game/sideQuest/commands/bypass-command.js +41 -27
- package/bundle/typescript/src/commands/game/sideQuest/commands/bypass-command.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/call.d.ts +6 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/call.js +54 -20
- package/bundle/typescript/src/commands/game/sideQuest/commands/call.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/cast.d.ts +35 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/cast.js +306 -55
- package/bundle/typescript/src/commands/game/sideQuest/commands/cast.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/companions.d.ts +33 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/companions.js +137 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/companions.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/contacts.d.ts +13 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/contacts.js +37 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/contacts.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/drink.d.ts +14 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/drink.js +15 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/drink.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/drone.js +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/drone.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.js +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/eat.d.ts +14 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/eat.js +15 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/eat.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/edge.js +10 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/edge.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js +3 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.js +101 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.d.ts +6 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js +67 -22
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/hack.js +15 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/hack.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/haggle.js +58 -2
- package/bundle/typescript/src/commands/game/sideQuest/commands/haggle.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/initiate.d.ts +26 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/initiate.js +125 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/initiate.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/install.d.ts +21 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/install.js +125 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/install.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/jump.d.ts +16 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/jump.js +83 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/jump.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/lifestyle.d.ts +16 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/lifestyle.js +76 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/lifestyle.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.js +4 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js +7 -6
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/order.d.ts +19 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/order.js +151 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/order.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/pay.d.ts +13 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/pay.js +39 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/pay.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/persuade.js +5 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/persuade.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/pick.js +6 -3
- package/bundle/typescript/src/commands/game/sideQuest/commands/pick.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/quality-trade.d.ts +21 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/quality-trade.js +121 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/quality-trade.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/rest.js +60 -12
- package/bundle/typescript/src/commands/game/sideQuest/commands/rest.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js +27 -10
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.js +15 -4
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/sell.d.ts +17 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/sell.js +125 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/sell.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/sheet.js +36 -3
- package/bundle/typescript/src/commands/game/sideQuest/commands/sheet.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/sneak.js +9 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/sneak.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/spells.js +27 -4
- package/bundle/typescript/src/commands/game/sideQuest/commands/spells.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/stance.js +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/stance.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/summon.d.ts +19 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/summon.js +112 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/summon.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/treat.d.ts +14 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/treat.js +67 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/treat.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.d.ts +29 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.js +118 -11
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/work.d.ts +15 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/work.js +68 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/work.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-chunks.d.ts +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-chunks.js +132 -5
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-chunks.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-seed-generator.d.ts +6 -2
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-seed-generator.js +10 -6
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-seed-generator.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/game.d.ts +196 -0
- package/bundle/typescript/src/commands/game/sideQuest/game.js +828 -31
- package/bundle/typescript/src/commands/game/sideQuest/game.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/item.d.ts +28 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js +111 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.d.ts +33 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js +232 -10
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/player.d.ts +111 -5
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js +432 -41
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.d.ts +6 -6
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js +38 -14
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/room.d.ts +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.d.ts +9 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js +48 -8
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/qualities.d.ts +44 -0
- package/bundle/typescript/src/commands/game/sideQuest/qualities.js +155 -0
- package/bundle/typescript/src/commands/game/sideQuest/qualities.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene2.json +274 -5
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.d.ts +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.d.ts +17 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.d.ts +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js +4 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/ui.js +82 -8
- package/bundle/typescript/src/commands/game/sideQuest/ui.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/auto-fight.d.ts +13 -6
- package/bundle/typescript/src/commands/game/sideQuest/utilities/auto-fight.js +28 -15
- package/bundle/typescript/src/commands/game/sideQuest/utilities/auto-fight.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/combat-exchange.d.ts +15 -3
- package/bundle/typescript/src/commands/game/sideQuest/utilities/combat-exchange.js +207 -34
- package/bundle/typescript/src/commands/game/sideQuest/utilities/combat-exchange.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/commerce.d.ts +56 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/commerce.js +144 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/commerce.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/dice.d.ts +7 -4
- package/bundle/typescript/src/commands/game/sideQuest/utilities/dice.js +8 -5
- package/bundle/typescript/src/commands/game/sideQuest/utilities/dice.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/log-style.d.ts +14 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/log-style.js +15 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/log-style.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.d.ts +16 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.js +49 -4
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/outdoors.d.ts +10 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/outdoors.js +16 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/outdoors.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/planes.d.ts +21 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/planes.js +107 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/planes.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/terminal-reset.d.ts +17 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/terminal-reset.js +23 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/terminal-reset.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js +51 -15
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js.map +1 -1
- package/bundle/typescript/src/commands/remote/reconfig.sub.cmd.js +27 -1
- package/bundle/typescript/src/commands/remote/reconfig.sub.cmd.js.map +1 -1
- package/bundle/typescript/src/commands/run/run.command.js +1 -7
- package/bundle/typescript/src/commands/run/run.command.js.map +1 -1
- package/bundle/typescript/src/commands/ssl.js +10 -15
- package/bundle/typescript/src/commands/ssl.js.map +1 -1
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.js +1 -6
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.js.map +1 -1
- package/bundle/typescript/src/generators/config.js +11 -10
- package/bundle/typescript/src/generators/config.js.map +1 -1
- package/bundle/typescript/src/templates/meteor/config/pm2.config.js +3 -3
- package/bundle/typescript/src/templates/meteor/project/gitignore +2 -1
- package/bundle/typescript/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.tsx +3 -4
- package/bundle/typescript/src/tool.d.ts +2 -0
- package/bundle/typescript/src/tool.js +3 -0
- package/bundle/typescript/src/tool.js.map +1 -1
- package/bundle/typescript/src/tools/aws/aws.class.js +6 -4
- package/bundle/typescript/src/tools/aws/aws.class.js.map +1 -1
- package/bundle/typescript/src/tools/dotenvx/dotenvx.class.d.ts +24 -0
- package/bundle/typescript/src/tools/dotenvx/dotenvx.class.js +66 -0
- package/bundle/typescript/src/tools/dotenvx/dotenvx.class.js.map +1 -0
- package/bundle/typescript/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/typescript/src/tools/ssh/ssh.class.js.map +1 -1
- package/bundle/typescript/src/tools/ssl/ssl.class.d.ts +8 -0
- package/bundle/typescript/src/tools/ssl/ssl.class.js +53 -0
- package/bundle/typescript/src/tools/ssl/ssl.class.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Command, ICommand } from './command.js';
|
|
2
|
+
/**
|
|
3
|
+
* The rigger's autonomous frames (SR5e p.269-271): "deploy <drone>" puts
|
|
4
|
+
* a carried frame in the air under its own DOG-BRAIN -- no control rig
|
|
5
|
+
* needed, Pilot (2 + quality) standing in for every attribute it lacks.
|
|
6
|
+
* It follows you, watches, and (armed frames only) shoots what threatens
|
|
7
|
+
* you; damage lands on the HULL and a wreck is a wreck (rest to repair).
|
|
8
|
+
* "recall" folds it back to your hand, and "jump" (jump.ts) seizes the
|
|
9
|
+
* stick from the dog-brain wherever the frame flies.
|
|
10
|
+
*/
|
|
11
|
+
export declare class DeployCommand extends Command implements ICommand {
|
|
12
|
+
protected static verb: string;
|
|
13
|
+
protected static description: string;
|
|
14
|
+
execute(args?: string[]): Promise<string>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* "agent" (SR5e p.246): a decker's autonomous program, deployed while
|
|
18
|
+
* jacked in. It runs ON the deck -- attacks against it damage the DECK
|
|
19
|
+
* (shared condition monitor, RAW), and a brick derezzes it. Rating
|
|
20
|
+
* follows the deck's quality. Toggles: "agent" again folds it back in.
|
|
21
|
+
*/
|
|
22
|
+
export declare class AgentCommand extends Command implements ICommand {
|
|
23
|
+
protected static verb: string;
|
|
24
|
+
protected static description: string;
|
|
25
|
+
execute(_args?: string[]): Promise<string>;
|
|
26
|
+
}
|
|
27
|
+
/** "recall": fold a deployed autonomous drone back to hand (or, with
|
|
28
|
+
* nothing in the air, spin a remote agent down into its deck). */
|
|
29
|
+
export declare class RecallCommand extends Command implements ICommand {
|
|
30
|
+
protected static verb: string;
|
|
31
|
+
protected static description: string;
|
|
32
|
+
execute(_args?: string[]): Promise<string>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { Command } from './command.js';
|
|
2
|
+
import { fuzzyPickName } from '../utilities/fuzzy-match.js';
|
|
3
|
+
/**
|
|
4
|
+
* The rigger's autonomous frames (SR5e p.269-271): "deploy <drone>" puts
|
|
5
|
+
* a carried frame in the air under its own DOG-BRAIN -- no control rig
|
|
6
|
+
* needed, Pilot (2 + quality) standing in for every attribute it lacks.
|
|
7
|
+
* It follows you, watches, and (armed frames only) shoots what threatens
|
|
8
|
+
* you; damage lands on the HULL and a wreck is a wreck (rest to repair).
|
|
9
|
+
* "recall" folds it back to your hand, and "jump" (jump.ts) seizes the
|
|
10
|
+
* stick from the dog-brain wherever the frame flies.
|
|
11
|
+
*/
|
|
12
|
+
export class DeployCommand extends Command {
|
|
13
|
+
static verb = 'deploy';
|
|
14
|
+
static description = 'Launch a carried drone on its own dog-brain autopilot (no rig needed): it follows and, if armed, fights for you. "recall" brings it back to hand.';
|
|
15
|
+
async execute(args = []) {
|
|
16
|
+
const actor = this.actor;
|
|
17
|
+
const game = this.game;
|
|
18
|
+
if (!game)
|
|
19
|
+
return `The autopilot has nothing to report to.`;
|
|
20
|
+
if (actor.plane !== 'meat') {
|
|
21
|
+
return `Deploying is a hands job -- come back to your body.`;
|
|
22
|
+
}
|
|
23
|
+
const drones = actor.inventory.getAllItems().filter(i => i.isDrone());
|
|
24
|
+
if (drones.length === 0) {
|
|
25
|
+
return `No drone in your pack to deploy. (Ratchet's Circuit Bazaar stocks airframes.)`;
|
|
26
|
+
}
|
|
27
|
+
let drone = drones.length === 1 ? drones[0] : undefined;
|
|
28
|
+
if (args.length > 0) {
|
|
29
|
+
const picked = fuzzyPickName(args.join(' '), drones.map(d => d.name));
|
|
30
|
+
drone = picked ? drones.find(d => d.name === picked) : undefined;
|
|
31
|
+
if (!drone)
|
|
32
|
+
return `No drone by that name in your pack. Carried: ${drones.map(d => d.name).join(', ')}.`;
|
|
33
|
+
}
|
|
34
|
+
if (!drone)
|
|
35
|
+
return `Which frame? Carried: ${drones.map(d => d.name).join(', ')}. ("deploy <name>")`;
|
|
36
|
+
if (drone.isWrecked)
|
|
37
|
+
return `The ${drone.name} is a wreck -- it deploys nowhere until you rest and true the rotors.`;
|
|
38
|
+
if (game.companions.some(c => c.boundDevice === drone)) {
|
|
39
|
+
return `The ${drone.name} is already in the air.`;
|
|
40
|
+
}
|
|
41
|
+
const shell = game.deployDroneShell(drone, actor.currentLocation);
|
|
42
|
+
if (!shell)
|
|
43
|
+
return `The autopilot stutters -- something already answers to that designation here.`;
|
|
44
|
+
actor.performAction('deploys', `${drone.name} -- rotors spinning up to a hover`);
|
|
45
|
+
this.logger.write(`DeployCommand: ${actor.name} deployed ${drone.name} on autopilot.`);
|
|
46
|
+
this.scene.updateStatus();
|
|
47
|
+
const armed = shell.skillRating('firearms') > 0;
|
|
48
|
+
return [
|
|
49
|
+
`The ${drone.name} lifts off your hand and settles into a watchful hover -- dog-brain running, Pilot ${2 + drone.qualityBonus}.`,
|
|
50
|
+
` It follows where you walk${armed ? ` and its mount tracks what threatens you` : ` -- cameras only; it will not fight`}. Hull ${drone.droneSummary()}. ("order ${drone.name.toLowerCase()} ..." to direct it, "recall" to bring it home, "jump" to take the stick yourself, wherever it flies.)`,
|
|
51
|
+
].join('\n');
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* "agent" (SR5e p.246): a decker's autonomous program, deployed while
|
|
56
|
+
* jacked in. It runs ON the deck -- attacks against it damage the DECK
|
|
57
|
+
* (shared condition monitor, RAW), and a brick derezzes it. Rating
|
|
58
|
+
* follows the deck's quality. Toggles: "agent" again folds it back in.
|
|
59
|
+
*/
|
|
60
|
+
export class AgentCommand extends Command {
|
|
61
|
+
static verb = 'agent';
|
|
62
|
+
static description = 'Deploy your deck\'s agent while jacked in (RAW: it shares the deck\'s condition monitor). It fights ice at your side. "agent" again folds it back into the deck.';
|
|
63
|
+
async execute(_args = []) {
|
|
64
|
+
const actor = this.actor;
|
|
65
|
+
const game = this.game;
|
|
66
|
+
if (!game)
|
|
67
|
+
return `The agent has nothing to report to.`;
|
|
68
|
+
const standing = game.companions.find(c => c.kind === 'agent');
|
|
69
|
+
if (standing) {
|
|
70
|
+
game.dismissCompanion(standing, 'folded back into the deck');
|
|
71
|
+
this.scene.updateStatus();
|
|
72
|
+
return `You fold the agent back into the deck -- its icon collapses into your persona.`;
|
|
73
|
+
}
|
|
74
|
+
if (actor.plane !== 'matrix') {
|
|
75
|
+
return `Agents live on the grid -- "jack in" first, then deploy it.`;
|
|
76
|
+
}
|
|
77
|
+
const deck = actor.activeDeck ?? actor.getCyberdeck();
|
|
78
|
+
if (!deck) {
|
|
79
|
+
return actor.isTechnomancer()
|
|
80
|
+
? `Your living persona runs alone -- agents are DECK software, and you never needed a deck.`
|
|
81
|
+
: `No deck, no agent -- it needs hardware to run on.`;
|
|
82
|
+
}
|
|
83
|
+
if (deck.isBricked) {
|
|
84
|
+
return `The ${deck.name} is bricked -- nothing runs on dead boards.`;
|
|
85
|
+
}
|
|
86
|
+
const rating = 3 + deck.qualityBonus;
|
|
87
|
+
const shell = game.spawnCompanionShell({
|
|
88
|
+
name: `Agent (${deck.name})`,
|
|
89
|
+
description: `${actor.name}'s autonomous agent program, running on their ${deck.name}: a sharp-edged icon that guards their persona and cuts at whatever ice engages them. Attacks against it damage the deck it runs on.`,
|
|
90
|
+
kind: 'agent',
|
|
91
|
+
combat: { logic: rating, intuition: rating, willpower: rating, reaction: rating, body: 1, agility: 1, strength: 1, charisma: 1, skills: { hacking: rating, perception: rating } },
|
|
92
|
+
room: actor.currentLocation,
|
|
93
|
+
plane: 'matrix',
|
|
94
|
+
force: rating,
|
|
95
|
+
boundDevice: deck,
|
|
96
|
+
});
|
|
97
|
+
if (!shell)
|
|
98
|
+
return `The agent stalls on load -- its process name is already taken here.`;
|
|
99
|
+
actor.performAction('spins up an agent', `a second icon unfolding beside their persona`);
|
|
100
|
+
this.logger.write(`AgentCommand: ${actor.name} deployed agent rating ${rating} on ${deck.name}.`);
|
|
101
|
+
this.scene.updateStatus();
|
|
102
|
+
return [
|
|
103
|
+
`A second icon unfolds beside your persona -- your agent, rating ${rating}, running hot off the ${deck.name}.`,
|
|
104
|
+
` It rides the grid with you and fights the ice at your side -- but every hit it takes lands on YOUR deck (${deck.deckSummary()}). ("order agent ..." to direct it; "agent" again to fold it away; it folds on jack-out.)`,
|
|
105
|
+
].join('\n');
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/** "recall": fold a deployed autonomous drone back to hand (or, with
|
|
109
|
+
* nothing in the air, spin a remote agent down into its deck). */
|
|
110
|
+
export class RecallCommand extends Command {
|
|
111
|
+
static verb = 'recall';
|
|
112
|
+
static description = 'Recall your deployed drone to your hand (or fold a running agent back into its deck).';
|
|
113
|
+
async execute(_args = []) {
|
|
114
|
+
const game = this.game;
|
|
115
|
+
const entry = game?.companions.find(c => c.kind === 'drone');
|
|
116
|
+
if (!entry) {
|
|
117
|
+
// No drone aloft -- but an agent on the grid answers to the same
|
|
118
|
+
// word (a real session tried every phrasing but the bare "agent"
|
|
119
|
+
// toggle and couldn't bring it home).
|
|
120
|
+
const agent = game?.companions.find(c => c.kind === 'agent');
|
|
121
|
+
if (agent) {
|
|
122
|
+
game.dismissCompanion(agent, 'recalled');
|
|
123
|
+
this.scene.updateStatus();
|
|
124
|
+
return this.actor.plane === 'matrix'
|
|
125
|
+
? `Your agent's icon collapses back into your persona -- folded into the deck.`
|
|
126
|
+
: `The deck spins its agent down -- the DECK IN AR light dies as the icon folds home.`;
|
|
127
|
+
}
|
|
128
|
+
return `Nothing of yours is in the air.`;
|
|
129
|
+
}
|
|
130
|
+
const name = entry.boundDevice?.name ?? entry.npc.name;
|
|
131
|
+
game.dismissCompanion(entry, 'recalled');
|
|
132
|
+
this.actor.performAction('recalls', name);
|
|
133
|
+
this.scene.updateStatus();
|
|
134
|
+
return `The ${name} banks once and settles back onto your hand, rotors folding.${entry.boundDevice && entry.boundDevice.droneDamage > 0 ? ` The airframe carries its dents (${entry.boundDevice.droneSummary()}) -- rest repairs it.` : ''}`;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=companions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companions.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/companions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;;;;;;;GAQG;AACH,MAAM,OAAO,aAAc,SAAQ,OAAO;IAC9B,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC;IACvB,MAAM,CAAC,WAAW,GAAG,mJAAmJ,CAAC;IAEnL,KAAK,CAAC,OAAO,CAAC,OAAiB,EAAE;QAC/B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,IAAI;YAAE,OAAO,yCAAyC,CAAC;QAE5D,IAAI,KAAK,CAAC,KAAK,KAAK,MAAM,EAAE,CAAC;YAC3B,OAAO,qDAAqD,CAAC;QAC/D,CAAC;QAED,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;QACtE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,OAAO,+EAA+E,CAAC;QACzF,CAAC;QACD,IAAI,KAAK,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACxD,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpB,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAA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OAAO,IAAI,+DAA+D,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,WAAW,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,oCAAoC,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,uBAAuB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAC/O,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Command, ICommand } from './command.js';
|
|
2
|
+
/**
|
|
3
|
+
* The roster: who talks to you, how plugged-in they are, and how deep
|
|
4
|
+
* the relationship runs. Contacts are EARNED (see Game.touchContact) --
|
|
5
|
+
* a first real transaction opens one at Loyalty 1, gigs deepen to 6,
|
|
6
|
+
* patronage alone tops out at 3. Viewable anywhere: it's your own
|
|
7
|
+
* memory, not a service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ContactsCommand extends Command implements ICommand {
|
|
10
|
+
protected static verb: string;
|
|
11
|
+
protected static description: string;
|
|
12
|
+
execute(_args?: string[]): Promise<string>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Command } from './command.js';
|
|
2
|
+
/**
|
|
3
|
+
* The roster: who talks to you, how plugged-in they are, and how deep
|
|
4
|
+
* the relationship runs. Contacts are EARNED (see Game.touchContact) --
|
|
5
|
+
* a first real transaction opens one at Loyalty 1, gigs deepen to 6,
|
|
6
|
+
* patronage alone tops out at 3. Viewable anywhere: it's your own
|
|
7
|
+
* memory, not a service.
|
|
8
|
+
*/
|
|
9
|
+
export class ContactsCommand extends Command {
|
|
10
|
+
static verb = 'contacts';
|
|
11
|
+
static description = 'Your contact roster: Connection (their reach), Loyalty (your standing), and what deepened it. "ask <contact> about <thing>" puts them to work.';
|
|
12
|
+
async execute(_args = []) {
|
|
13
|
+
const roster = this.game?.contacts;
|
|
14
|
+
if (!this.game?.hasHub) {
|
|
15
|
+
return `Contacts are a home-turf thing -- out here there's just the job and whoever's pointing what at you.`;
|
|
16
|
+
}
|
|
17
|
+
if (!roster || roster.size === 0) {
|
|
18
|
+
return `Nobody owes you their attention yet. Relationships on this street start with TRANSACTIONS -- buy a bowl, fence a score, get stitched, deliver a package. Then "contacts" has names in it.`;
|
|
19
|
+
}
|
|
20
|
+
const lines = [`=== CONTACTS ===`];
|
|
21
|
+
for (const [name, c] of roster) {
|
|
22
|
+
const depth = c.loyalty >= 5 ? 'would take a risk for you'
|
|
23
|
+
: c.loyalty >= 3 ? 'genuinely glad to see you'
|
|
24
|
+
: c.loyalty === 2 ? 'knows your usual'
|
|
25
|
+
: 'knows your name';
|
|
26
|
+
const ledger = [
|
|
27
|
+
c.spent > 0 ? `${c.spent} nuyen through the counter` : '',
|
|
28
|
+
c.gigs > 0 ? `${c.gigs} gig${c.gigs === 1 ? '' : 's'} run` : '',
|
|
29
|
+
].filter(Boolean).join(', ');
|
|
30
|
+
lines.push(` ${name.padEnd(18)} Connection ${c.connection}, Loyalty ${c.loyalty} -- ${depth}${ledger ? ` (${ledger})` : ''}${c.asked ? ' [network tapped -- refreshes at homecoming]' : ''}`);
|
|
31
|
+
}
|
|
32
|
+
lines.push('');
|
|
33
|
+
lines.push(`"ask <contact> about <thing>" taps their network -- Loyalty rides your roll (SR5e p.387). "ask <contact> about work" gets a gig of theirs (Loyalty 2+; 5+ pays the family rate). Gigs deepen loyalty to 6; money alone stops at 3.`);
|
|
34
|
+
return lines.join('\n');
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=contacts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/contacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,OAAO,eAAgB,SAAQ,OAAO;IAChC,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC;IACzB,MAAM,CAAC,WAAW,GAAG,gJAAgJ,CAAC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AO,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,8CAA8C,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACjM,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,oOAAoO,CAAC,CAAC;QACjP,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UseCommand } from './use.js';
|
|
2
|
+
import { Category } from '../types/shared/item-enum.js';
|
|
3
|
+
/**
|
|
4
|
+
* "drink" is use with a barstool: it knows it's about Drink items, so
|
|
5
|
+
* "drink kaf"/"drink beer"/bare "drink" find whatever's in your pack.
|
|
6
|
+
* A drink pours liquid courage -- +1 die on the next social roll (see
|
|
7
|
+
* UseCommand.drink).
|
|
8
|
+
*/
|
|
9
|
+
export declare class DrinkCommand extends UseCommand {
|
|
10
|
+
protected static verb: string;
|
|
11
|
+
protected static description: string;
|
|
12
|
+
protected preferredCategory: Category;
|
|
13
|
+
protected verbNoun: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UseCommand } from './use.js';
|
|
2
|
+
import { Category } from '../types/shared/item-enum.js';
|
|
3
|
+
/**
|
|
4
|
+
* "drink" is use with a barstool: it knows it's about Drink items, so
|
|
5
|
+
* "drink kaf"/"drink beer"/bare "drink" find whatever's in your pack.
|
|
6
|
+
* A drink pours liquid courage -- +1 die on the next social roll (see
|
|
7
|
+
* UseCommand.drink).
|
|
8
|
+
*/
|
|
9
|
+
export class DrinkCommand extends UseCommand {
|
|
10
|
+
static verb = 'drink';
|
|
11
|
+
static description = 'Drink from your pack -- liquid courage: +1 die on your next social play (no stacking; one too many costs a stun). "drink" alone finds what you\'re carrying.';
|
|
12
|
+
preferredCategory = Category.Drink;
|
|
13
|
+
verbNoun = 'drink';
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=drink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drink.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/drink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD;;;;;GAKG;AACH,MAAM,OAAO,YAAa,SAAQ,UAAU;IAChC,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC;IACtB,MAAM,CAAC,WAAW,GAAG,8JAA8J,CAAC;IACpL,iBAAiB,GAAG,QAAQ,CAAC,KAAK,CAAC;IACnC,QAAQ,GAAG,OAAO,CAAC"}
|
|
@@ -37,7 +37,7 @@ export class DroneCommand extends Command {
|
|
|
37
37
|
// feed is only as good as the hands on the sticks. Zero hits and the
|
|
38
38
|
// sweep comes back as static -- relaunch and try again.
|
|
39
39
|
const piloting = actor.skillRating('piloting');
|
|
40
|
-
const roll = rollPool(Math.max(1, actor.reaction + (piloting > 0 ? piloting : -1) + actor.woundModifier - actor.sustainingPenalty));
|
|
40
|
+
const roll = rollPool(Math.max(1, actor.reaction + (piloting > 0 ? piloting : -1) + actor.augBonus('piloting') + actor.qualityBonus('piloting') + actor.woundModifier - actor.sustainingPenalty));
|
|
41
41
|
if (roll.hits === 0) {
|
|
42
42
|
return [
|
|
43
43
|
`The ${drone.name} whirs off your palm -- Piloting: ${formatRoll(roll)}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drone.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/drone.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE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,CAAC,CAAC;QACzE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC"}
|
|
@@ -7,6 +7,13 @@ export class DropCommand extends Command {
|
|
|
7
7
|
return await this.drop(args);
|
|
8
8
|
}
|
|
9
9
|
async drop(args) {
|
|
10
|
+
// Your pack travels with your BODY: dropping from a drone (or any
|
|
11
|
+
// off-plane presence) would teleport gear across the district.
|
|
12
|
+
if (this.actor.plane !== 'meat') {
|
|
13
|
+
return this.actor.plane === 'drone'
|
|
14
|
+
? `Your pack is streets away with your body -- the ${this.actor.riggedDrone?.name ?? 'drone'} carries nothing to drop.`
|
|
15
|
+
: `Your pack is with your body. Come back to it first.`;
|
|
16
|
+
}
|
|
10
17
|
const itemName = args.join(' ').toLowerCase(); // Assuming the item name may contain spaces
|
|
11
18
|
// Check if the item exists in the player's inventory
|
|
12
19
|
if (!this.actor.inventory.hasItem(itemName)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/drop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AAEjD,MAAM,OAAO,WAAY,SAAQ,OAAO;IAC5B,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,MAAM,CAAC,WAAW,GAAG,mCAAmC,CAAC;IAEnE,KAAK,CAAC,OAAO,CAAC,IAAc;QAC1B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,4CAA4C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAClG,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAEO,KAAK,CAAC,IAAI,CAAC,IAAc;QAC/B,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,WAAW,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AAe,QAAQ,GAAG,CAAC;IACpC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UseCommand } from './use.js';
|
|
2
|
+
import { Category } from '../types/shared/item-enum.js';
|
|
3
|
+
/**
|
|
4
|
+
* "eat" is use with table manners: it knows it's about Food, so menu-speak
|
|
5
|
+
* works -- "eat noodles" eats the Bowl of Laksa when that's the food you
|
|
6
|
+
* carry, and a bare "eat" eats your only meal. Hot food heals stun (see
|
|
7
|
+
* UseCommand.eat).
|
|
8
|
+
*/
|
|
9
|
+
export declare class EatCommand extends UseCommand {
|
|
10
|
+
protected static verb: string;
|
|
11
|
+
protected static description: string;
|
|
12
|
+
protected preferredCategory: Category;
|
|
13
|
+
protected verbNoun: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UseCommand } from './use.js';
|
|
2
|
+
import { Category } from '../types/shared/item-enum.js';
|
|
3
|
+
/**
|
|
4
|
+
* "eat" is use with table manners: it knows it's about Food, so menu-speak
|
|
5
|
+
* works -- "eat noodles" eats the Bowl of Laksa when that's the food you
|
|
6
|
+
* carry, and a bare "eat" eats your only meal. Hot food heals stun (see
|
|
7
|
+
* UseCommand.eat).
|
|
8
|
+
*/
|
|
9
|
+
export class EatCommand extends UseCommand {
|
|
10
|
+
static verb = 'eat';
|
|
11
|
+
static description = 'Eat food from your pack -- hot food heals stun. "eat" alone (or any loose order like "eat noodles") finds the meal you\'re carrying.';
|
|
12
|
+
preferredCategory = Category.Food;
|
|
13
|
+
verbNoun = 'eat';
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=eat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eat.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/eat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD;;;;;GAKG;AACH,MAAM,OAAO,UAAW,SAAQ,UAAU;IAC9B,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC;IACpB,MAAM,CAAC,WAAW,GAAG,sIAAsI,CAAC;IAC5J,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC;IAClC,QAAQ,GAAG,KAAK,CAAC"}
|
|
@@ -21,6 +21,16 @@ export class EdgeCommand extends Command {
|
|
|
21
21
|
return `You're out of luck -- literally. Edge refreshes when the next job starts.`;
|
|
22
22
|
}
|
|
23
23
|
actor.edgeRemaining -= 1;
|
|
24
|
+
// Bad Luck (SR5e p.79): spent Edge can turn on you. One die -- on a 1
|
|
25
|
+
// the point is gone and the boost never arms.
|
|
26
|
+
if (actor.hasQuality('bad-luck')) {
|
|
27
|
+
const die = 1 + Math.floor(Math.random() * 6);
|
|
28
|
+
if (die === 1) {
|
|
29
|
+
this.logger.write(`${actor.name} burned an edge point and BAD LUCK ate it (${actor.edgeRemaining}/${actor.edge} left).`);
|
|
30
|
+
this.scene.updateStatus();
|
|
31
|
+
return `You reach for the luck that got you this far -- and it CURDLES. The point is spent; nothing comes. (Bad Luck. ${actor.edgeRemaining}/${actor.edge} edge left this job.)`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
24
34
|
actor.edgeBoostArmed = true;
|
|
25
35
|
this.logger.write(`${actor.name} burned an edge point (${actor.edgeRemaining}/${actor.edge} left).`);
|
|
26
36
|
this.actor.performAction('pushes the limit', '');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/edge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,OAAO,WAAY,SAAQ,OAAO;IAC5B,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,MAAM,CAAC,WAAW,GAAG,yGAAyG,CAAC;IAEzI,KAAK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,UAAU,CAAC,EAAE,CAAC;YACjC,MAAM,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;YAC9C,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC;gBACd,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,IAAI,8CAA8C,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,SAAS,CAAC,CAAC;gBACzH,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;gBAC1B,OAAO,iHAAiH,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,uBAAuB,CAAC;YACnL,CAAC;QACH,CAAC;QAED,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,IAAI,0BAA0B,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,SAAS,CAAC,CAAC;QACrG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;QAE1B,OAAO,kFAAkF,KAAK,CAAC,IAAI,WAAW,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,uBAAuB,CAAC;IACzK,CAAC"}
|
|
@@ -110,6 +110,9 @@ export class EquipCommand extends Command {
|
|
|
110
110
|
if (category === Category.Drone) {
|
|
111
111
|
return `The ${name} doesn't wear -- it launches from your kit. "drone" to send it scouting.`;
|
|
112
112
|
}
|
|
113
|
+
if (category === Category.Cyberware) {
|
|
114
|
+
return `The ${name} doesn't wear -- it gets INSTALLED. Take it to a street clinic and "install ${name.toLowerCase()}": with the part in hand, the surgery's fee is waived.`;
|
|
115
|
+
}
|
|
113
116
|
return null;
|
|
114
117
|
}
|
|
115
118
|
/** Resolves "equip deck"/"cyberdeck"/"drone" to the carried kit device's note. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equip.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/equip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,OAAO,YAAa,SAAQ,OAAO;IAC7B,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC;IACtB,MAAM,CAAC,WAAW,GAAG,gDAAgD,CAAC;IAEhF,KAAK,CAAC,OAAO,CAAC,IAAc;QAC1B,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEO,KAAK,CAAC,IAAc;QAC1B,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QACrB,MAAM,KAAK,GAAG,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAEnD,YAAY;QACZ,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;YACpB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;YACjD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACvB,OAAO,4BAA4B,CAAC;YACtC,CAAC;YAED,MAAM,OAAO,GAAa,EAAE,CAAC;YAE7B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;gBACzB,iEAAiE;gBACjE,4DAA4D;gBAC5D,4DAA4D;gBAC5D,kDAAkD;gBAClD,MAAM,OAAO,GAAG,YAAY,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;gBACrE,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1,5 @@
|
|
|
1
1
|
import { Command } from './command.js';
|
|
2
|
+
import { priceOf } from '../utilities/commerce.js';
|
|
2
3
|
export class GiveCommand extends Command {
|
|
3
4
|
static verb = 'give';
|
|
4
5
|
static description = 'Give an item or money to someone.';
|
|
@@ -22,6 +23,21 @@ export class GiveCommand extends Command {
|
|
|
22
23
|
this.logger.write(`Recipient "${recipientName}" not found in room ${room.name}`);
|
|
23
24
|
return `You don’t see anyone named "${recipientName}" here.`;
|
|
24
25
|
}
|
|
26
|
+
// Handing things over is MEAT work on both ends. A jumped-in drone
|
|
27
|
+
// (or any off-plane presence) can't give -- its pack is with its
|
|
28
|
+
// body -- and can't receive: an item "handed" to a hovering drone
|
|
29
|
+
// would teleport into a backpack streets away (a real session had
|
|
30
|
+
// Mama Wu about to serve soup to a Fly-Spy).
|
|
31
|
+
if (this.actor.plane !== 'meat') {
|
|
32
|
+
return this.actor.plane === 'drone'
|
|
33
|
+
? `The ${this.actor.riggedDrone?.name ?? 'drone'} has nothing to give -- your pack is wherever your body is.`
|
|
34
|
+
: `Your hands are with your body. Come back to it first.`;
|
|
35
|
+
}
|
|
36
|
+
if (recipient.plane !== 'meat') {
|
|
37
|
+
return recipient.plane === 'drone'
|
|
38
|
+
? `${recipient.name} is a drone right now -- hand it something and it'd still be here when the rotors leave. Wait for the flesh.`
|
|
39
|
+
: `${recipient.name} isn't HERE in any way that can carry things.`;
|
|
40
|
+
}
|
|
25
41
|
// === Try to give currency ===
|
|
26
42
|
const currencyMatch = itemOrAmount.match(/^(\d+)\s*(nuyen|¥)?$/i);
|
|
27
43
|
if (currencyMatch) {
|
|
@@ -38,11 +54,71 @@ export class GiveCommand extends Command {
|
|
|
38
54
|
return `You gave ${amount} ${currencyType} to ${recipient.name}.`;
|
|
39
55
|
}
|
|
40
56
|
// === Try to give an item ===
|
|
41
|
-
|
|
57
|
+
let item = this.actor.inventory.getItem(itemOrAmount);
|
|
58
|
+
// SERVING SHOP STOCK: a vendor's wares live in the ROOM (owner-tagged),
|
|
59
|
+
// not in their pockets -- so "give bowl of laksa to Maka" from Mama Wu
|
|
60
|
+
// used to fail silently while she stood next to her own wok. A real
|
|
61
|
+
// session had her promise a bowl and never bring it: her AI issued the
|
|
62
|
+
// right intent and the engine had no path for it. Now an actor can give
|
|
63
|
+
// an item they OWN from the room they're standing in; when an NPC
|
|
64
|
+
// serves the PLAYER this way, the till settles automatically at street
|
|
65
|
+
// price (or as much of it as the customer can cover -- Mama Wu feeds
|
|
66
|
+
// everyone; the district's kindness is diegetic, not an exploit,
|
|
67
|
+
// because only the NPC's own AI decides to serve).
|
|
68
|
+
let servedFromShelf = false;
|
|
69
|
+
if (!item) {
|
|
70
|
+
const shelfItem = room.inventory.getItem(itemOrAmount);
|
|
71
|
+
if (shelfItem && shelfItem.owner === this.actor.name) {
|
|
72
|
+
item = shelfItem;
|
|
73
|
+
servedFromShelf = true;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
42
76
|
if (!item) {
|
|
43
77
|
this.logger.write(`${this.actor.name} tried to give item "${itemOrAmount}" but does not have it.`);
|
|
44
78
|
return `You don’t have "${itemOrAmount}".`;
|
|
45
79
|
}
|
|
80
|
+
if (servedFromShelf) {
|
|
81
|
+
room.inventory.removeItem(item.name);
|
|
82
|
+
try {
|
|
83
|
+
recipient.addInventory(item);
|
|
84
|
+
}
|
|
85
|
+
catch {
|
|
86
|
+
room.inventory.addItem(item);
|
|
87
|
+
return `${recipient.name} can't carry the ${item.name} -- it stays on the counter.`;
|
|
88
|
+
}
|
|
89
|
+
item.owner = recipient.name;
|
|
90
|
+
// The till: an NPC serving the player charges street price, or what
|
|
91
|
+
// the customer can actually cover.
|
|
92
|
+
let tillNote = '';
|
|
93
|
+
const player = this.scene.getPlayer();
|
|
94
|
+
if (recipient === player && this.actor !== player) {
|
|
95
|
+
const price = priceOf(item);
|
|
96
|
+
const paid = Math.min(price, recipient.currency);
|
|
97
|
+
if (paid > 0)
|
|
98
|
+
recipient.adjustCurrency(-paid);
|
|
99
|
+
tillNote = paid >= price
|
|
100
|
+
? ` (${paid} nuyen, squared)`
|
|
101
|
+
: paid > 0
|
|
102
|
+
? ` (${paid} of ${price} nuyen -- the rest is on the house)`
|
|
103
|
+
: ` (on the house)`;
|
|
104
|
+
this.logger.logWithColor(`💴 ${item.name}: ${paid >= price ? `${paid} nuyen to ${this.actor.name} -- squared.` : `${this.actor.name} waves off the short cred -- ${paid}/${price} paid.`}`, 'yellow');
|
|
105
|
+
// Being a regular at the counter is a relationship (contacts).
|
|
106
|
+
// The bond line goes straight to the screen -- this command's
|
|
107
|
+
// return feeds the SERVING NPC's history, not the player's.
|
|
108
|
+
// NOTE: the actor here is the NPC, whose command context has NO
|
|
109
|
+
// `game` (a real session bought dumplings and got no contact) --
|
|
110
|
+
// reach Game through the scene instead.
|
|
111
|
+
const bond = (this.game ?? this.scene.ownerGame)?.touchContact(this.actor.name, 'trade', paid);
|
|
112
|
+
if (bond)
|
|
113
|
+
this.logger.logWithColor(bond, 'yellow');
|
|
114
|
+
this.scene.updateStatus();
|
|
115
|
+
}
|
|
116
|
+
this.scene.updateInventory(this.scene.getPlayer().inventory);
|
|
117
|
+
this.actor.performAction('serves', `${item.name} to ${recipient.name}${tillNote}`);
|
|
118
|
+
this.logger.write(`${this.actor.name} served ${item.name} to ${recipient.name}${tillNote}.`);
|
|
119
|
+
this.scene.checkWinCondition(item.name, recipient.name);
|
|
120
|
+
return `You hand over the ${item.name}.${tillNote}`;
|
|
121
|
+
}
|
|
46
122
|
const didTransfer = this.actor.inventory.transferItemTo(item.name, recipient.inventory);
|
|
47
123
|
if (!didTransfer) {
|
|
48
124
|
this.logger.write(`Item "${item.name}" is not transferable.`);
|
|
@@ -58,6 +134,30 @@ export class GiveCommand extends Command {
|
|
|
58
134
|
// completion banner announces itself directly to the screen, since the
|
|
59
135
|
// trigger here might not even be the player's own action.
|
|
60
136
|
this.scene.checkWinCondition(item.name, recipient.name);
|
|
137
|
+
// Side-gig delivery (see work.ts): the right package into the right
|
|
138
|
+
// hands is a payday -- the ordinary "give" IS the completion verb.
|
|
139
|
+
const gig = this.game?.activeGig;
|
|
140
|
+
if (gig && this.actor === this.scene.getPlayer()
|
|
141
|
+
&& item.name.toLowerCase() === gig.itemName.toLowerCase()
|
|
142
|
+
&& recipient.name.toLowerCase() === gig.to.toLowerCase()) {
|
|
143
|
+
// SINner tax (p.84-85) skims gig pay like any other income.
|
|
144
|
+
const gigTax = Math.floor(gig.pay * this.actor.sinTaxRate);
|
|
145
|
+
const gigNet = gig.pay - gigTax;
|
|
146
|
+
this.actor.adjustCurrency(gigNet);
|
|
147
|
+
this.game.activeGig = undefined;
|
|
148
|
+
this.scene.addWorldEvent(`${this.actor.name} delivered ${gig.itemName} from ${gig.from} to ${gig.to}.`);
|
|
149
|
+
this.logger.write(`Gig delivered: ${gig.itemName} to ${gig.to}, paid ${gigNet}${gigTax > 0 ? ` (${gigTax} withheld: SIN tax)` : ''} (${this.actor.currency} carried).`);
|
|
150
|
+
this.scene.updateStatus();
|
|
151
|
+
void Promise.resolve(recipient.hear(this.actor, `From ${gig.from}. [System note: ${this.actor.name} just delivered the ${gig.itemName} you were expecting from ${gig.from} and has been paid ${gigNet} nuyen. React briefly, in character.]`)).catch(err => {
|
|
152
|
+
this.logger.error(`${recipient.name} failed to hear the delivery: ${err}`);
|
|
153
|
+
});
|
|
154
|
+
// A gig well run deepens BOTH ends of it (see Game.touchContact).
|
|
155
|
+
const bonds = [
|
|
156
|
+
this.game?.touchContact(gig.from, 'gig'),
|
|
157
|
+
this.game?.touchContact(gig.to, 'gig'),
|
|
158
|
+
].filter((b) => !!b);
|
|
159
|
+
return `You gave ${item.name} to ${recipient.name}.\n${gigNet} nuyen lands on your stick the moment it leaves your hands.${gigTax > 0 ? ` (${gigTax}¥ skimmed at source -- SIN on file.)` : ''} (${this.actor.currency} carried.)${bonds.length > 0 ? `\n${bonds.join('\n')}` : ''}`;
|
|
160
|
+
}
|
|
61
161
|
return `You gave ${item.name} to ${recipient.name}.`;
|
|
62
162
|
}
|
|
63
163
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"give.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/give.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"give.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/give.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,MAAM,OAAO,WAAY,SAAQ,OAAO;IAC5B,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,MAAM,CAAC,WAAW,GAAG,mCAAmC,CAAC;IAEnE,KAAK,CAAC,OAAO,CAAC,IAAc;QAC1B,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QACrB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,yCAAyC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC7E,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAEO,IAAI,CAAC,IAAc;QACzB,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjC,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAElD,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sCAAsC,SAAS,EAAE,CAAC,CAAC;YACrE,OAAO,sCAAsC,CAAC;QAChD,CAAC;QAED,MAAM,CAAC,EAAE,YAAY,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC;QAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC;QACxC,MAAM,SAAS,GAAG,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E,CAAC,CAAC;YAC7E,CAAC,CAAC,CAAC;YACH,kEAAkE;YAClE,MAAM,KAAK,GAAG;gBACZ,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC;gBACxC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC;aACvC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAe,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAClC,OAAO,YAAY,IAAI,CAAC,IAAI,OAAO,SAAS,CAAC,IAAI,MAAM,MAAM,8DAA8D,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,MAAM,sCAAsC,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,QAAQ,aAAa,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACvR,CAAC;QAED,OAAO,YAAY,IAAI,CAAC,IAAI,OAAO,SAAS,CAAC,IAAI,GAAG,CAAC;IACvD,CAAC"}
|
|
@@ -13,8 +13,13 @@ export declare class GoCommand extends Command implements ICommand {
|
|
|
13
13
|
*/
|
|
14
14
|
private resolvePartingShot;
|
|
15
15
|
private go;
|
|
16
|
+
/** The revisit short form: name, exits, and who the actor can see. */
|
|
17
|
+
private shortArrival;
|
|
16
18
|
/** The direction that undoes a move -- feeds the HUD breadcrumb. */
|
|
17
19
|
private static opposite;
|
|
18
|
-
/** Wards block astral forms and nothing else. Returns the refusal, or
|
|
20
|
+
/** Wards block astral forms and nothing else. Returns the refusal, or
|
|
21
|
+
* null. MASKING (metamagic, p.325-326, adapted): a masked aura reads as
|
|
22
|
+
* mundane background -- the ward has nothing to flare at, and the
|
|
23
|
+
* initiate slips through like weather. */
|
|
19
24
|
private checkWard;
|
|
20
25
|
}
|