rpg-engine 0.12.0 → 0.14.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/README.md +1 -1
- package/dist/campaign/choices.d.ts +30 -0
- package/dist/campaign/choices.js +84 -0
- package/dist/campaign/index.d.ts +4 -1
- package/dist/campaign/index.js +4 -1
- package/dist/campaign/last-choices.d.ts +6 -0
- package/dist/campaign/last-choices.js +34 -0
- package/dist/campaign/levels.d.ts +50 -0
- package/dist/campaign/levels.js +189 -0
- package/dist/campaign/settings.d.ts +35 -13
- package/dist/campaign/settings.js +20 -51
- package/dist/commands/ask.d.ts +8 -0
- package/dist/commands/ask.js +2 -1
- package/dist/commands/change/change.js +6 -4
- package/dist/commands/choices.d.ts +64 -0
- package/dist/commands/choices.js +216 -0
- package/dist/commands/config.d.ts +8 -1
- package/dist/commands/config.js +165 -21
- package/dist/commands/effect.d.ts +1 -1
- package/dist/commands/index.js +2 -0
- package/dist/commands/init.d.ts +1 -0
- package/dist/commands/init.js +8 -4
- package/dist/commands/rename.js +8 -3
- package/dist/commands/save.d.ts +1 -1
- package/dist/commands/shared/experience.d.ts +9 -2
- package/dist/commands/shared/experience.js +42 -7
- package/dist/commands/shared/inputs.d.ts +2 -2
- package/dist/commands/shared/inputs.js +15 -2
- package/dist/commands/shared/knowledge.d.ts +2 -0
- package/dist/commands/shared/knowledge.js +5 -0
- package/dist/commands/shared/mode.js +10 -3
- package/dist/commands/shared/offers.d.ts +3 -1
- package/dist/commands/shared/offers.js +6 -1
- package/dist/commands/shared/page-words.d.ts +4 -0
- package/dist/commands/shared/page-words.js +7 -7
- package/dist/commands/shared/rules.js +5 -1
- package/dist/commands/shared/system-texts.d.ts +11 -0
- package/dist/commands/shared/system-texts.js +203 -0
- package/dist/commands/shared/time.d.ts +6 -0
- package/dist/commands/shared/time.js +35 -3
- package/dist/commands/shared/upkeep.js +3 -3
- package/dist/commands/shared/world.d.ts +2 -0
- package/dist/commands/shared/world.js +20 -7
- package/dist/commands/status.d.ts +2 -0
- package/dist/commands/status.js +15 -7
- package/dist/commands/view/view.d.ts +4 -0
- package/dist/commands/view/view.js +24 -10
- package/dist/commands/write/write.d.ts +3 -3
- package/dist/commands/write/write.js +5 -2
- package/dist/core/context.d.ts +16 -0
- package/dist/core/files.js +2 -3
- package/dist/core/language.d.ts +2 -0
- package/dist/core/language.js +8 -0
- package/dist/core/text.d.ts +2 -0
- package/dist/core/text.js +5 -0
- package/dist/dashboard/address.js +8 -1
- package/dist/dashboard/api.js +20 -0
- package/dist/dashboard/app.js +20 -7
- package/dist/dashboard/choices.js +338 -0
- package/dist/dashboard/guide/ar.md +8 -8
- package/dist/dashboard/guide/cs.md +8 -8
- package/dist/dashboard/guide/da.md +9 -9
- package/dist/dashboard/guide/de.md +8 -8
- package/dist/dashboard/guide/el.md +10 -10
- package/dist/dashboard/guide/en.md +7 -7
- package/dist/dashboard/guide/es.md +8 -8
- package/dist/dashboard/guide/fi.md +8 -8
- package/dist/dashboard/guide/fr.md +8 -8
- package/dist/dashboard/guide/he.md +8 -8
- package/dist/dashboard/guide/hi.md +8 -8
- package/dist/dashboard/guide/hu.md +8 -8
- package/dist/dashboard/guide/is.md +9 -9
- package/dist/dashboard/guide/it.md +8 -8
- package/dist/dashboard/guide/ja.md +8 -8
- package/dist/dashboard/guide/ko.md +9 -9
- package/dist/dashboard/guide/nb.md +9 -9
- package/dist/dashboard/guide/nl.md +8 -8
- package/dist/dashboard/guide/pl.md +8 -8
- package/dist/dashboard/guide/pt.md +8 -8
- package/dist/dashboard/guide/ro.md +8 -8
- package/dist/dashboard/guide/ru.md +8 -8
- package/dist/dashboard/guide/sv.md +8 -8
- package/dist/dashboard/guide/tr.md +8 -8
- package/dist/dashboard/guide/uk.md +8 -8
- package/dist/dashboard/guide/zh.md +8 -8
- package/dist/dashboard/i18n/ar.json +81 -1
- package/dist/dashboard/i18n/cs.json +81 -1
- package/dist/dashboard/i18n/da.json +81 -1
- package/dist/dashboard/i18n/de.json +81 -1
- package/dist/dashboard/i18n/el.json +81 -1
- package/dist/dashboard/i18n/es.json +81 -1
- package/dist/dashboard/i18n/fi.json +81 -1
- package/dist/dashboard/i18n/fr.json +81 -1
- package/dist/dashboard/i18n/he.json +81 -1
- package/dist/dashboard/i18n/hi.json +81 -1
- package/dist/dashboard/i18n/hu.json +81 -1
- package/dist/dashboard/i18n/is.json +81 -1
- package/dist/dashboard/i18n/it.json +81 -1
- package/dist/dashboard/i18n/ja.json +81 -1
- package/dist/dashboard/i18n/ko.json +81 -1
- package/dist/dashboard/i18n/nb.json +81 -1
- package/dist/dashboard/i18n/nl.json +81 -1
- package/dist/dashboard/i18n/pl.json +81 -1
- package/dist/dashboard/i18n/pt.json +81 -1
- package/dist/dashboard/i18n/ro.json +81 -1
- package/dist/dashboard/i18n/ru.json +81 -1
- package/dist/dashboard/i18n/sv.json +81 -1
- package/dist/dashboard/i18n/tr.json +81 -1
- package/dist/dashboard/i18n/uk.json +81 -1
- package/dist/dashboard/i18n/zh.json +81 -1
- package/dist/dashboard/icons.js +4 -0
- package/dist/dashboard/labels.js +32 -0
- package/dist/dashboard/notices.js +9 -2
- package/dist/dashboard/party.js +13 -5
- package/dist/dashboard/saves.js +1 -1
- package/dist/dashboard/settings.js +89 -40
- package/dist/dashboard/setup.js +1 -1
- package/dist/dashboard/sheet.js +3 -2
- package/dist/dashboard/style.css +729 -1
- package/dist/dashboard/text.js +7 -2
- package/dist/dashboard/top.js +8 -4
- package/dist/documents/png.d.ts +2 -3
- package/dist/documents/png.js +6 -6
- package/dist/documents/read.js +2 -1
- package/dist/extensions/words.js +2 -1
- package/dist/languages/language-pack.js +2 -2
- package/dist/pages/index.d.ts +1 -1
- package/dist/pages/index.js +1 -1
- package/dist/pages/world.d.ts +5 -0
- package/dist/pages/world.js +22 -11
- package/dist/server/dashboard/choices.d.ts +38 -0
- package/dist/server/dashboard/choices.js +174 -0
- package/dist/server/dashboard/files.js +3 -2
- package/dist/server/dashboard/index.d.ts +3 -1
- package/dist/server/dashboard/index.js +20 -2
- package/dist/server/mcp.js +3 -1
- package/dist/systems/game-system.js +2 -1
- package/dist/systems/words.js +2 -1
- package/dist/testing/index.js +1 -1
- package/dist/time/game-date.d.ts +9 -0
- package/dist/time/game-date.js +9 -0
- package/dist/time/index.d.ts +1 -1
- package/dist/time/index.js +1 -1
- package/instructions/dashboard-guide.md +1 -1
- package/instructions/play.md +1 -1
- package/package.json +4 -4
|
@@ -6,44 +6,21 @@ import { files } from "../core/store.js";
|
|
|
6
6
|
import { comparableText } from "../core/text.js";
|
|
7
7
|
import { readYamlFile, readYamlValues, writeYamlFile } from "../core/yaml-file.js";
|
|
8
8
|
import { campaignFileName } from "./find-campaign.js";
|
|
9
|
+
import { customLevel, difficulties, difficultyItems, levelMeaning, rigorItems, rigors } from "./levels.js";
|
|
9
10
|
const settingsHold = 'settings, such as "name: ..."';
|
|
10
|
-
/** How hard the world plays (D-13, D-141). */
|
|
11
|
-
export const difficulties = ["story", "easy", "normal", "hard", "brutal"];
|
|
12
11
|
/** What a fall means (D-13, D-141): the character never dies, dies only when it matters, or as the dice say. */
|
|
13
12
|
export const lethalities = ["narrative", "epic", "dice"];
|
|
14
13
|
/** When the game may go back (D-55): never, to the last end of a scene once the player character dies, or to any save, which the player may also ask for. */
|
|
15
14
|
export const saveModes = ["permadeath", "checkpoint", "free"];
|
|
16
|
-
/** How closely the rules are followed, apart from difficulty (D-42): the master glosses over them, as they are written, or beyond them. */
|
|
17
|
-
export const rigors = ["smooth", "rules", "simulation"];
|
|
18
|
-
/** What each difficulty means in play, from the GDD's table, which status and config give for the chosen one (D-263); fights in the words of a budget of low, moderate and high (D-266). */
|
|
19
|
-
const difficultyMeanings = {
|
|
20
|
-
story: "fights low, yet each asks one choice that counts; the plain approach wins at a small cost, the risk falling on goals and allies; foes naive, ignoring the place, quick to flee; "
|
|
21
|
-
+ "clues obvious, four or more; resources plentiful; random encounters rare; threat clocks slow: one of them a step every other day; you may soften your own rolls; take-backs granted whenever asked",
|
|
22
|
-
easy: "fights low to moderate; the plain approach wins at a cost; foes with simple tactics, using the plainest feature of the place; clues plain; resources generous; "
|
|
23
|
-
+ "random encounters rare; threat clocks slow: one of them a step every other day; small take-backs granted gladly",
|
|
24
|
-
normal: "fights moderate to high; two to four between full rests; the plain approach wins at a real cost, a good choice cheaply; "
|
|
25
|
-
+ "foes with sensible tactics, using the place, normal morale; resources standard (treasure, supplies, prices); random encounters normal; "
|
|
26
|
-
+ "threat clocks at their pace: one of them a step each day; a take-back now and then, when little hangs on it",
|
|
27
|
-
hard: "fights high and beyond; the plain approach may lose, a good choice wins at a cost; foes smart (focus, control), taking the place first, tenacious; clues subtle; "
|
|
28
|
-
+ "resources scarce; random encounters frequent; threat clocks fast: each of them a step each day; take-backs rare",
|
|
29
|
-
brutal: "fights far beyond high; the plain approach loses, only good choices win; foes optimized (prepared ground, retreats, ambushes, finishing the fallen), fanatical; "
|
|
30
|
-
+ "clues subtle; resources very scarce; random encounters frequent; threat clocks fast: each of them a step each day; rests at their harshest; no take-backs",
|
|
31
|
-
};
|
|
32
|
-
/** What each rigor means in play (D-42, D-263): what the master counts, which status and config give for the chosen one. */
|
|
33
|
-
const rigorMeanings = {
|
|
34
|
-
smooth: "you gloss over food and water, light, encumbrance, fatigue and the like: count them only when the story turns on them",
|
|
35
|
-
rules: "as written: charge with change what is used up; encumbrance, fatigue and the like as the rules say; warn before something runs out, and once it has, the rule applies",
|
|
36
|
-
simulation: "as rules, and beyond what is written: wear, spoilage, weather and the like",
|
|
37
|
-
};
|
|
38
15
|
/**
|
|
39
|
-
* What the chosen difficulty, rigor or mentor means, as status and config give it, the rigor with what the game counts itself
|
|
40
|
-
* or a value it does not take.
|
|
16
|
+
* What the chosen difficulty, rigor or mentor means, as status and config give it, the rigor with what the game counts itself, a custom one with the levels of
|
|
17
|
+
* its items as custom-difficulty or custom-rigor writes them (T-132); undefined for another setting or a value it does not take.
|
|
41
18
|
*/
|
|
42
|
-
export function settingMeaning(name, value, counted) {
|
|
43
|
-
if (name === "rigor" && typeof value === "string") {
|
|
44
|
-
return
|
|
19
|
+
export function settingMeaning(name, value, counted, custom) {
|
|
20
|
+
if ((name === "difficulty" || name === "rigor") && typeof value === "string") {
|
|
21
|
+
return levelMeaning(name, value, counted, custom);
|
|
45
22
|
}
|
|
46
|
-
const meanings = {
|
|
23
|
+
const meanings = { mentor: mentorMeanings, ...styleMeanings };
|
|
47
24
|
const own = Object.hasOwn(meanings, name) ? meanings[name] : undefined;
|
|
48
25
|
return typeof value === "string" && own !== undefined && Object.hasOwn(own, value) ? own[value] : undefined;
|
|
49
26
|
}
|
|
@@ -276,20 +253,6 @@ export function checkSettingName(name) {
|
|
|
276
253
|
}
|
|
277
254
|
return name;
|
|
278
255
|
}
|
|
279
|
-
/** A rigor's meaning with what the game counts itself said (review of 17 October): a game that counts no food is never promised it. */
|
|
280
|
-
function rigorMeaning(rigor, counted) {
|
|
281
|
-
const meaning = rigorMeanings[rigor];
|
|
282
|
-
const burns = counted?.burning === undefined ? "" : `an effect named after what burns, such as ${counted.burning}, spends it as it is lit`;
|
|
283
|
-
if (meaning === undefined || rigor === "simulation" || counted === undefined) {
|
|
284
|
-
return meaning;
|
|
285
|
-
}
|
|
286
|
-
if (rigor === "smooth") {
|
|
287
|
-
return burns === "" ? meaning : `${meaning}; a light you put on as an effect, as a ${counted.burning}, still spends one`;
|
|
288
|
-
}
|
|
289
|
-
const food = counted.upkeep ? "advance spends the day's food outside a settlement; water, lifestyle and wages are yours to charge" : "";
|
|
290
|
-
const counts = [food, burns].filter((part) => part !== "").join("; ");
|
|
291
|
-
return counts === "" ? meaning : meaning.replace("charge with change what is used up; ", `charge with change what is used up; ${counts}; `);
|
|
292
|
-
}
|
|
293
256
|
/** How much the master teaches the game, out of the story (D-347): the story alone, a hint now and then, or each rule as it first comes up. */
|
|
294
257
|
export const mentorWays = ["off", "hints", "tutorial"];
|
|
295
258
|
/** What each way of the mentor means to the master, which config gives for the chosen one, and the player's change of it on the dashboard (D-347). */
|
|
@@ -323,10 +286,10 @@ export const proseWays = ["plain", "literary", "pulp", "wry"];
|
|
|
323
286
|
export const storyWays = ["situations", "arcs", "episodes", "mystery"];
|
|
324
287
|
/** The settings with a closed list of values, each with them: those a game system may offer only some of (DAT-16). */
|
|
325
288
|
export const closedSettings = {
|
|
326
|
-
difficulty: difficulties,
|
|
289
|
+
difficulty: [...difficulties, customLevel],
|
|
327
290
|
lethality: lethalities,
|
|
328
291
|
saves: saveModes,
|
|
329
|
-
rigor: rigors,
|
|
292
|
+
rigor: [...rigors, customLevel],
|
|
330
293
|
mentor: mentorWays,
|
|
331
294
|
dice: diceWays,
|
|
332
295
|
"master-rolls": masterRollWays,
|
|
@@ -376,10 +339,14 @@ export const settingsSchema = z.object({
|
|
|
376
339
|
story: z.enum(storyWays).optional().describe("how the master builds what they invent: situations, arcs, episodes or mystery; a written adventure keeps its own"),
|
|
377
340
|
author: oneLine(styleTextLengths.author).optional().describe("an author the master writes like, as the player named them: their way, never their sentences, names or places"),
|
|
378
341
|
style: oneLine(styleTextLengths.style).optional().describe("the player's own wishes for how the master writes, in a few words, such as third person, past tense"),
|
|
379
|
-
difficulty: z.enum(difficulties).optional().describe(`how hard the world plays: ${difficulties.join(", ")}`),
|
|
342
|
+
difficulty: z.enum([...difficulties, customLevel]).optional().describe(`how hard the world plays: ${difficulties.join(", ")}, or custom, each item at its own level in custom-difficulty`),
|
|
380
343
|
lethality: z.enum(lethalities).optional().describe("what a fall means: narrative (the character never dies), epic (only when it matters) or dice (the dice decide)"),
|
|
381
344
|
saves: z.enum(saveModes).optional().describe("when the game may go back: permadeath (never, but to the start, the campaign starting over), checkpoint (to the last end of a scene, once the player character dies) or free (to any save, and saves when the player asks)"),
|
|
382
|
-
rigor: z.enum(rigors).optional().describe("how closely travel, fatigue, food and the like follow the rules: smooth (the master glosses over them), rules (as written)
|
|
345
|
+
rigor: z.enum([...rigors, customLevel]).optional().describe("how closely travel, fatigue, food and the like follow the rules: smooth (the master glosses over them), rules (as written), simulation (beyond them), "
|
|
346
|
+
+ "or custom, each item at its own level in custom-rigor"),
|
|
347
|
+
// The levels of the items of a custom difficulty or rigor (T-132): read only while it is custom; an item not written takes the default.
|
|
348
|
+
"custom-difficulty": z.partialRecord(z.enum(difficultyItems), z.enum(difficulties)).optional().describe(`the level of each item of the difficulty custom, by item: ${difficultyItems.join(", ")}, each ${difficulties.join(", ")}; an item not written plays normal`),
|
|
349
|
+
"custom-rigor": z.partialRecord(z.enum(rigorItems), z.enum(rigors)).optional().describe(`the level of each item of the rigor custom, by item: ${rigorItems.join(", ")}, each ${rigors.join(", ")}; an item not written plays smooth`),
|
|
383
350
|
dice: z.enum(diceWays).optional().describe("the player character's dice: digital (rpg rolls them) or physical (the player rolls their own and tells the values)"),
|
|
384
351
|
"master-rolls": z.enum(masterRollWays).optional().describe("the master's rolls for foes and anyone else outside the party: behind the screen (roll hides them, the master telling only the outcome) or in view (roll shows them); "
|
|
385
352
|
+ "the party's rolls are always shown; unset, behind the screen"),
|
|
@@ -390,6 +357,8 @@ export const settingsSchema = z.object({
|
|
|
390
357
|
companions: z.enum(companionWays).optional().describe("how the companions come: none, made with the player or made by the master in session zero, or met in play"),
|
|
391
358
|
// Checked by the time module against the calendar (TIM-8).
|
|
392
359
|
"calendar-start": z.string().min(1).optional().describe("when the story starts: day 1 to count only the days, or the day of the world's calendar that is day 1, such as 14 April 1491"),
|
|
360
|
+
// The rate is read by the time module, which status uses (D-133); written wrongly, the game time stops between sessions.
|
|
361
|
+
"between-sessions": z.string().min(1).optional().describe("whether the game time runs between sessions: stops (unset, the default) or the game time that passes for a real time, such as 1d per 7d"),
|
|
393
362
|
// new places and new places and quests, as campaigns wrote it before quests and then those met had pictures, are read as the value that took their place (D-388, D-420).
|
|
394
363
|
pictures: z.preprocess((value) => (value === "new places" || value === "new places and quests" ? "new elements" : value), z.enum(pictureWays)).optional().describe("the pictures of places, quests and those met the engine has made on this computer, which spend the player's plan, Codex's or Claude's: none, on request (those the player asks for) "
|
|
395
364
|
+ "or new elements (one for each new place and quest, and for each character and kind of creature the character meets)"),
|
|
@@ -425,8 +394,8 @@ export const settingNames = Object.keys(settingsSchema.shape);
|
|
|
425
394
|
export const listSettingNames = ["lines", "veils", "table", "precedents", "learned", "library", "status-line"];
|
|
426
395
|
/** The settings that hold entries by name, what the campaign adds to its game system (CAM-1): given or removed one entry at a time. */
|
|
427
396
|
export const mapSettingNames = ["fields", "tables", "computed", "counters", "recipes", "travel", "values", "condition-icons"];
|
|
428
|
-
/** The settings that hold entries by name: what the campaign adds to its game system,
|
|
429
|
-
export const entrySettingNames = [...mapSettingNames, "widgets"];
|
|
397
|
+
/** The settings that hold entries by name: what the campaign adds to its game system, where the dashboard shows the extensions' widgets (D-502), and the items of a custom difficulty or rigor (T-132). */
|
|
398
|
+
export const entrySettingNames = [...mapSettingNames, "widgets", "custom-difficulty", "custom-rigor"];
|
|
430
399
|
/**
|
|
431
400
|
* What only the setup asks (D-241, MOD-3, D-347, D-287): how much the master teaches the game, whether the master's rolls are shown, how the companions come,
|
|
432
401
|
* when the story starts, and the lines and veils, which "none" answers too.
|
|
@@ -438,7 +407,7 @@ const premiseSettingNames = ["premise", "preparation"];
|
|
|
438
407
|
// The pictures: status asks for them once, only where they can be made (D-308).
|
|
439
408
|
// How the master writes: the core's own until the player chooses (D-395).
|
|
440
409
|
const styleSettingNames = ["prose", "story", "author", "style"];
|
|
441
|
-
const optionalSettingNames = ["coins", "pictures", "effort", "voices", "calendar", "calendar-start", ...entrySettingNames, ...setupSettingNames, ...premiseSettingNames, ...styleSettingNames];
|
|
410
|
+
const optionalSettingNames = ["coins", "pictures", "effort", "voices", "calendar", "calendar-start", "between-sessions", ...entrySettingNames, ...setupSettingNames, ...premiseSettingNames, ...styleSettingNames];
|
|
442
411
|
/** The YAML list of a list setting, edited in place so that its comments stay; created when missing. */
|
|
443
412
|
function listNode(document, setting) {
|
|
444
413
|
const node = document.get(setting, true);
|
package/dist/commands/ask.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { CardAsked, Context } from "../core/context.ts";
|
|
3
|
+
/** One button: a check with its dice and the field of the sheet it rolls, when it names one; or an answer. */
|
|
4
|
+
export interface Option {
|
|
5
|
+
label: string;
|
|
6
|
+
notation?: string;
|
|
7
|
+
field?: string;
|
|
8
|
+
}
|
|
3
9
|
type InWords = {
|
|
4
10
|
kind: "unanswered" | "unavailable" | "absent" | "physical" | "dice in words";
|
|
5
11
|
asked: string;
|
|
@@ -73,4 +79,6 @@ export declare function tonesOf(given: unknown[] | undefined, faces: number[]):
|
|
|
73
79
|
};
|
|
74
80
|
/** Whether a text is the dice of a check, as 1d20+5 or 1d20+athletics (ASK-2, ASK-12). */
|
|
75
81
|
export declare function isCheckDice(text: string): boolean;
|
|
82
|
+
/** A button's words, as a check with its dice at the end, or an answer: Atletica 1d20+5 is a check, Sì an answer. */
|
|
83
|
+
export declare function readOption(text: string): Option;
|
|
76
84
|
export {};
|
package/dist/commands/ask.js
CHANGED
|
@@ -580,7 +580,8 @@ function readOptions(given) {
|
|
|
580
580
|
}
|
|
581
581
|
return options;
|
|
582
582
|
}
|
|
583
|
-
|
|
583
|
+
/** A button's words, as a check with its dice at the end, or an answer: Atletica 1d20+5 is a check, Sì an answer. */
|
|
584
|
+
export function readOption(text) {
|
|
584
585
|
// The dice from the first word that is a die, so that 1d20+athletics - 1 and 1d20 + athletics are dice too; else the last word.
|
|
585
586
|
const spaced = /^(.+?)\s+(\d*d(?:\d+|%|F)\S*(?:\s*[+-]\s*\S+)*)$/i.exec(text);
|
|
586
587
|
const last = /^(.+?)\s+(\S+)$/.exec(text);
|
|
@@ -14,7 +14,7 @@ import { effectGiving, effectiveFields, effectsOf, withValue } from "../shared/e
|
|
|
14
14
|
import { checkEffectsReadable, saveEffects } from "../shared/effects.js";
|
|
15
15
|
import { fireEvents, nowDueNote } from "../shared/events.js";
|
|
16
16
|
import { coinExamples, poolExample, restExample } from "../shared/examples.js";
|
|
17
|
-
import { experienceOf, newLevelNotes } from "../shared/experience.js";
|
|
17
|
+
import { experienceOf, levelWay, newLevelNotes, settleChoices } from "../shared/experience.js";
|
|
18
18
|
import { wholeNumber } from "../shared/inputs.js";
|
|
19
19
|
import { screenNote, screenUp, sealHiddenRoll } from "../shared/master-rolls.js";
|
|
20
20
|
import { campaignCoins } from "../shared/money.js";
|
|
@@ -308,9 +308,11 @@ function applyStep(root, context, world, holder, field, step, why, system) {
|
|
|
308
308
|
// Points that reach a new level are said with the rule to read (PRO-6).
|
|
309
309
|
const companion = holder.page.fields.role === "companion";
|
|
310
310
|
const levelUp = () => situationPart("level-up", context, system);
|
|
311
|
-
const
|
|
312
|
-
|
|
313
|
-
|
|
311
|
+
const [levelBefore, levelAfter] = [experienceOf(world, effectiveFields(world, holder.page)), after === undefined ? undefined : experienceOf(updated, effectiveFields(updated, after))];
|
|
312
|
+
if (changed && party) {
|
|
313
|
+
settleChoices(root, holder.page.name, levelBefore, levelAfter);
|
|
314
|
+
}
|
|
315
|
+
const levels = changed && party && after !== undefined ? newLevelNotes(page, levelBefore, levelAfter, companion, levelUp, levelWay(root, context, holder.page.name)) : [];
|
|
314
316
|
// The player character's own counter, never a form's, falling to the system's down value: what lethality makes of it (D-530).
|
|
315
317
|
const fall = changed && holder.kind === "page" && layer === undefined && isPlayerCharacter(holder.page) ? fallNotes(root, system, page, field, step) : [];
|
|
316
318
|
const thresholds = [...(touched && party ? thresholdNotes(root, system, field, step, layer?.name) : []), ...fall, ...levels];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type ChoiceSet } from "../campaign/index.ts";
|
|
3
|
+
import type { Context } from "../core/context.ts";
|
|
4
|
+
import { type Page, type World } from "../pages/index.ts";
|
|
5
|
+
import type { GameSystem } from "../systems/index.ts";
|
|
6
|
+
/** What the call did: the set prepared, with how many answers it kept from the one it replaced and whether the player had confirmed that; or the set taken away. */
|
|
7
|
+
export type ChoicesResult = {
|
|
8
|
+
kind: "prepared";
|
|
9
|
+
who: string;
|
|
10
|
+
title: string;
|
|
11
|
+
replaced: boolean;
|
|
12
|
+
reopened: boolean;
|
|
13
|
+
kept: number;
|
|
14
|
+
dashboard: string;
|
|
15
|
+
} | {
|
|
16
|
+
kind: "cancelled";
|
|
17
|
+
who: string;
|
|
18
|
+
title: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const choices: import("../core/registry.ts").Command<z.ZodObject<{
|
|
21
|
+
title: z.ZodString;
|
|
22
|
+
who: z.ZodOptional<z.ZodString>;
|
|
23
|
+
items: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
|
|
24
|
+
question: z.ZodString;
|
|
25
|
+
options: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
26
|
+
pick: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
27
|
+
}, z.core.$strip>>, unknown>>;
|
|
28
|
+
cancel: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
}, z.core.$strip>, {
|
|
30
|
+
kind: "prepared";
|
|
31
|
+
who: string;
|
|
32
|
+
title: string;
|
|
33
|
+
replaced: boolean;
|
|
34
|
+
reopened: boolean;
|
|
35
|
+
kept: number;
|
|
36
|
+
dashboard: string;
|
|
37
|
+
} | {
|
|
38
|
+
kind: "cancelled";
|
|
39
|
+
who: string;
|
|
40
|
+
title: string;
|
|
41
|
+
}>;
|
|
42
|
+
/**
|
|
43
|
+
* What status says of the choices on the dashboard (D-556): those waiting, which the player knows of, to leave to them; those the player confirmed and this chat
|
|
44
|
+
* has not heard of, with their answers to write.
|
|
45
|
+
*/
|
|
46
|
+
export declare function choicesNotes(root: string, context: Context, world: World, system: GameSystem | undefined): string[];
|
|
47
|
+
/**
|
|
48
|
+
* The answers of the sets the player confirmed, each once in a chat, with the part on what a level gives once (D-556): they stay in state.yaml, for a chat that
|
|
49
|
+
* closes before the master writes them, until the character's level rises.
|
|
50
|
+
*/
|
|
51
|
+
export declare function confirmedNotes(root: string, context: Context, world: World, system: GameSystem | undefined): string[];
|
|
52
|
+
/**
|
|
53
|
+
* The player's answers to a set they confirmed, for the master to write: "Bruna's choices for Livello 3, confirmed on the dashboard: Q: A; Q: A, B."; in a game
|
|
54
|
+
* without levels, with how to take them away once written.
|
|
55
|
+
*/
|
|
56
|
+
export declare function confirmedNote(set: ChoiceSet, levels: boolean): string;
|
|
57
|
+
/** The pages the options of the choices waiting name (VIEW-2): the player reads them on the dashboard to choose, whether the character knows them or not. */
|
|
58
|
+
export declare function offeredPages(root: string, world: World): Page[];
|
|
59
|
+
/** The words the player sees for a set's options, its pages named and its rolls: what a roll's dice are, the pages its links name. */
|
|
60
|
+
export declare function optionParts(option: string): {
|
|
61
|
+
label: string;
|
|
62
|
+
notation?: string;
|
|
63
|
+
pages: string[];
|
|
64
|
+
};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { pickText, readChoices, readPick, requireCampaign, writeChoices } from "../campaign/index.js";
|
|
3
|
+
import { appendLogEntry } from "../core/log.js";
|
|
4
|
+
import { defineCommand } from "../core/registry.js";
|
|
5
|
+
import { comparableText, linkTargetName } from "../core/text.js";
|
|
6
|
+
import { parseNotation } from "../dice/index.js";
|
|
7
|
+
import { findPage, isPartyMember, playerCharacters } from "../pages/index.js";
|
|
8
|
+
import { readOption } from "./ask.js";
|
|
9
|
+
import { textList, textsOf } from "./shared/inputs.js";
|
|
10
|
+
import { situationPart } from "./shared/parts.js";
|
|
11
|
+
import { newDatedLogEntry } from "./shared/time.js";
|
|
12
|
+
import { campaignWorld } from "./shared/world.js";
|
|
13
|
+
// How many choices a set holds, and how many options a choice: the whole list the rules allow, such as every spell a class may learn.
|
|
14
|
+
const mostItems = 8;
|
|
15
|
+
const mostOptions = 200;
|
|
16
|
+
// A link to a page in an option's words: [[Name]], [[Name|words]] or [[Name#Section]].
|
|
17
|
+
const pageLink = /\[\[([^\]|#]+)(?:[#|][^\]]*)?\]\]/g;
|
|
18
|
+
const itemInput = z.object({
|
|
19
|
+
question: z.string(),
|
|
20
|
+
options: textList,
|
|
21
|
+
pick: z.union([z.number(), z.string()]).optional(),
|
|
22
|
+
});
|
|
23
|
+
export const choices = defineCommand({
|
|
24
|
+
name: "choices",
|
|
25
|
+
description: "Prepare choices the player makes on their dashboard when they like, while the story goes on: all a moment asks them to choose, such as a new level. "
|
|
26
|
+
+ "One call holds them all, each an item with its question, its options and how many to pick: the whole list the rules allow, never a selection of yours. "
|
|
27
|
+
+ "An option that ends with its dice is a roll, rolled by the player as they pick it and logged as theirs; a link to a page opens that page for them to read.",
|
|
28
|
+
group: "game",
|
|
29
|
+
input: z.object({
|
|
30
|
+
title: z.string().describe("what the choices are for, in the player's language, such as the level they reach"),
|
|
31
|
+
who: z.string().optional().describe("who chooses: the player's character, or a companion the player made; the only player character, if left out"),
|
|
32
|
+
items: z.preprocess(itemsInText, z.array(itemInput)).optional().describe("the choices in order, each {question, options, pick}: pick is how many the player picks, 1 if left out, or a range such as 0-2 when some are optional"),
|
|
33
|
+
cancel: z.boolean().optional().describe("true to take away the set with this title and who"),
|
|
34
|
+
}),
|
|
35
|
+
run(input, context) {
|
|
36
|
+
const root = requireCampaign(context.folder);
|
|
37
|
+
const title = input.title.trim();
|
|
38
|
+
if (title === "") {
|
|
39
|
+
throw new Error("Give the title: what the choices are for, in the player's language, such as the level they reach.");
|
|
40
|
+
}
|
|
41
|
+
if (context.dashboard === undefined) {
|
|
42
|
+
throw new Error("The player has no dashboard here: ask each choice in the chat, with ask where it fits, as your instructions say. Nothing was prepared.");
|
|
43
|
+
}
|
|
44
|
+
const world = campaignWorld(root, context);
|
|
45
|
+
const who = chooser(world, input.who);
|
|
46
|
+
const sets = readChoices(root);
|
|
47
|
+
const index = sets.findIndex((set) => comparableText(set.who) === comparableText(who) && comparableText(set.title) === comparableText(title));
|
|
48
|
+
if (input.cancel === true) {
|
|
49
|
+
if (index === -1) {
|
|
50
|
+
throw new Error(`No choices of ${who} are titled ${title}: ${namesOf(sets, who)}. Nothing changed.`);
|
|
51
|
+
}
|
|
52
|
+
writeChoices(root, sets.filter((_, at) => at !== index));
|
|
53
|
+
appendLogEntry(root, newDatedLogEntry(root, context, "choices-cancelled", "public", { who, title }));
|
|
54
|
+
return { kind: "cancelled", who, title };
|
|
55
|
+
}
|
|
56
|
+
if (input.items === undefined || input.items.length === 0 || input.items.length > mostItems) {
|
|
57
|
+
throw new Error(`Give from 1 to ${mostItems} items, each {question, options, pick}: all the choices of the moment in one call. Nothing was prepared.`);
|
|
58
|
+
}
|
|
59
|
+
const before = index === -1 ? undefined : sets[index];
|
|
60
|
+
const items = input.items.map((item) => readItem(world, item));
|
|
61
|
+
const kept = items.map((item) => keptAnswer(item, before)).filter((answer) => answer !== undefined).length;
|
|
62
|
+
// A new id for a set that takes another's place: a page that shows the old one confirms nothing, and a chat that heard the old one hears this one.
|
|
63
|
+
const set = {
|
|
64
|
+
id: context.newId(),
|
|
65
|
+
title,
|
|
66
|
+
who,
|
|
67
|
+
made: context.now().toISOString().slice(0, 10),
|
|
68
|
+
items: items.map((item) => ({ ...item, ...keptAnswer(item, before) })),
|
|
69
|
+
};
|
|
70
|
+
writeChoices(root, index === -1 ? [...sets, set] : sets.map((other, at) => (at === index ? set : other)));
|
|
71
|
+
appendLogEntry(root, newDatedLogEntry(root, context, "choices", "public", { who, title, items: items.map((item) => item.question) }));
|
|
72
|
+
return { kind: "prepared", who, title, replaced: before !== undefined, reopened: before?.confirmed !== undefined, kept, dashboard: context.dashboard };
|
|
73
|
+
},
|
|
74
|
+
format(result) {
|
|
75
|
+
if (result.kind === "cancelled") {
|
|
76
|
+
return `The choices of ${result.who}, ${result.title}, are taken away from the dashboard.`;
|
|
77
|
+
}
|
|
78
|
+
const kept = result.replaced
|
|
79
|
+
? ` They take the place of the set of the same title, keeping ${result.kept} of the player's answers${result.reopened ? "; the player had confirmed it, and it waits for them again" : ""}.`
|
|
80
|
+
: "";
|
|
81
|
+
return `The choices of ${result.who}, ${result.title}, wait on the player's dashboard.${kept} Tell the player so in one line, out of the story, without listing them, `
|
|
82
|
+
+ `with the dashboard's link if they do not have it open: ${result.dashboard}. Then go on with the story; their answers reach you at the head of a later call. `
|
|
83
|
+
+ "Called again with this title, choices takes the place of this set, keeping the answers of the items that stay the same.";
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* What status says of the choices on the dashboard (D-556): those waiting, which the player knows of, to leave to them; those the player confirmed and this chat
|
|
88
|
+
* has not heard of, with their answers to write.
|
|
89
|
+
*/
|
|
90
|
+
export function choicesNotes(root, context, world, system) {
|
|
91
|
+
const waiting = readChoices(root).filter((set) => set.confirmed === undefined);
|
|
92
|
+
const dead = (who) => findPage(world, who)?.fields.status === "dead";
|
|
93
|
+
return [
|
|
94
|
+
...waiting.map((set) => `Waiting on the dashboard since ${set.made}: ${set.who}'s choices, ${set.title}; `
|
|
95
|
+
+ (dead(set.who) ? `${set.who} is dead: take them away with choices, cancel true.` : "the player knows: leave them to them.")),
|
|
96
|
+
...confirmedNotes(root, context, world, system),
|
|
97
|
+
];
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* The answers of the sets the player confirmed, each once in a chat, with the part on what a level gives once (D-556): they stay in state.yaml, for a chat that
|
|
101
|
+
* closes before the master writes them, until the character's level rises.
|
|
102
|
+
*/
|
|
103
|
+
export function confirmedNotes(root, context, world, system) {
|
|
104
|
+
const key = (set) => `choices:${set.id}`;
|
|
105
|
+
const untold = readChoices(root).filter((set) => set.confirmed !== undefined && context.told?.has(key(set)) !== true);
|
|
106
|
+
untold.forEach((set) => context.told?.add(key(set)));
|
|
107
|
+
// In a game without levels nothing rises to take them away: the master does, once written.
|
|
108
|
+
const levels = world.system?.progression?.experience !== undefined;
|
|
109
|
+
const part = untold.length === 0 ? "" : situationPart("level-up", context, system);
|
|
110
|
+
return [...untold.map((set) => confirmedNote(set, levels)), ...(part === "" ? [] : [part])];
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The player's answers to a set they confirmed, for the master to write: "Bruna's choices for Livello 3, confirmed on the dashboard: Q: A; Q: A, B."; in a game
|
|
114
|
+
* without levels, with how to take them away once written.
|
|
115
|
+
*/
|
|
116
|
+
export function confirmedNote(set, levels) {
|
|
117
|
+
const answers = set.items.map((item) => `${item.question}: ${(item.answer ?? []).length === 0 ? "none" : (item.answer ?? []).join(", ")}${item.rolled === undefined ? "" : ` (${item.rolled})`}`)
|
|
118
|
+
.join("; ");
|
|
119
|
+
return `${set.who}'s choices for ${set.title}, confirmed on the dashboard: ${answers}. Write them on the sheet as the rules say, then tell it in the story; `
|
|
120
|
+
+ `an answer against the rules, ask the player about it.${levels ? "" : " Once written, take them away with choices, cancel true."}`;
|
|
121
|
+
}
|
|
122
|
+
/** The pages the options of the choices waiting name (VIEW-2): the player reads them on the dashboard to choose, whether the character knows them or not. */
|
|
123
|
+
export function offeredPages(root, world) {
|
|
124
|
+
const names = readChoices(root).filter((set) => set.confirmed === undefined).flatMap((set) => set.items.flatMap((item) => item.options.flatMap((option) => optionParts(option).pages)));
|
|
125
|
+
return [...new Set(names.flatMap((name) => findPage(world, name) ?? []))];
|
|
126
|
+
}
|
|
127
|
+
/** The words the player sees for a set's options, its pages named and its rolls: what a roll's dice are, the pages its links name. */
|
|
128
|
+
export function optionParts(option) {
|
|
129
|
+
const read = readOption(option);
|
|
130
|
+
const pages = [...option.matchAll(pageLink)].map((found) => linkTargetName(found[1]));
|
|
131
|
+
return { label: read.label, ...(read.notation === undefined ? {} : { notation: read.notation }), pages };
|
|
132
|
+
}
|
|
133
|
+
// The items as JSON text too, as an MCP client or a command line sends them, alone or as a list of one; anything else is left to the input's own check.
|
|
134
|
+
function itemsInText(value) {
|
|
135
|
+
const text = typeof value === "string" ? value : Array.isArray(value) && value.length === 1 && typeof value[0] === "string" ? value[0] : undefined;
|
|
136
|
+
if (text === undefined) {
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
try {
|
|
140
|
+
return JSON.parse(text);
|
|
141
|
+
}
|
|
142
|
+
catch {
|
|
143
|
+
return value;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/** The character who chooses: one of the party, the player's own or a companion; the only living player character when none is named. */
|
|
147
|
+
function chooser(world, who) {
|
|
148
|
+
if (who === undefined || who.trim() === "") {
|
|
149
|
+
const living = playerCharacters(world).filter((page) => page.fields.status !== "dead");
|
|
150
|
+
if (living.length !== 1) {
|
|
151
|
+
throw new Error(`Name who chooses: ${living.length === 0 ? "the campaign has no living player character" : living.map((page) => page.name).join(" or ")}.`);
|
|
152
|
+
}
|
|
153
|
+
return living[0].name;
|
|
154
|
+
}
|
|
155
|
+
const page = findPage(world, who);
|
|
156
|
+
if (page === undefined || !isPartyMember(page)) {
|
|
157
|
+
const party = world.pages.filter(isPartyMember).map((member) => member.name);
|
|
158
|
+
throw new Error(`${who} is no one of the party: the choices are for ${party.length === 0 ? "the player's character" : party.join(", ")}.`);
|
|
159
|
+
}
|
|
160
|
+
return page.name;
|
|
161
|
+
}
|
|
162
|
+
/** An item as the master gives it, checked: a question, options each once, a pick they allow, rolls only where one option is picked, pages that exist. */
|
|
163
|
+
function readItem(world, given) {
|
|
164
|
+
const question = given.question.trim();
|
|
165
|
+
const options = textsOf(given.options).map((option) => option.trim());
|
|
166
|
+
if (question === "") {
|
|
167
|
+
throw new Error("Give each item its question, in the player's language. Nothing was prepared.");
|
|
168
|
+
}
|
|
169
|
+
if (options.length < 2 || options.length > mostOptions) {
|
|
170
|
+
throw new Error(options.length === 1
|
|
171
|
+
? `${question} has one option alone, ${options[0]}: that is no choice; write it yourself and tell the player. Nothing was prepared.`
|
|
172
|
+
: `${question} has ${options.length} options: give from 2 to ${mostOptions}. Nothing was prepared.`);
|
|
173
|
+
}
|
|
174
|
+
const repeated = options.find((option, index) => options.findIndex((other) => comparableText(other) === comparableText(option)) !== index);
|
|
175
|
+
if (repeated !== undefined) {
|
|
176
|
+
throw new Error(`${question} gives ${repeated} twice: each option once. Nothing was prepared.`);
|
|
177
|
+
}
|
|
178
|
+
const pick = readPick(given.pick);
|
|
179
|
+
if (pick === undefined || pick.most === 0 || pick.most > options.length) {
|
|
180
|
+
throw new Error(`${question}: pick ${given.pick ?? ""} does not fit ${options.length} options: give how many, such as 2, or a range such as 0-2. Nothing was prepared.`);
|
|
181
|
+
}
|
|
182
|
+
const parts = options.map(optionParts);
|
|
183
|
+
if (parts.some((part) => part.notation !== undefined) && (pick.least !== 1 || pick.most !== 1)) {
|
|
184
|
+
throw new Error(`${question} has a roll among its options: such an item picks one, so give pick 1. Nothing was prepared.`);
|
|
185
|
+
}
|
|
186
|
+
// Dice the dashboard cannot roll, such as a field of the sheet, refused now rather than at the player's click.
|
|
187
|
+
for (const [index, part] of parts.entries()) {
|
|
188
|
+
if (part.notation === undefined) {
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
try {
|
|
192
|
+
parseNotation(part.notation);
|
|
193
|
+
}
|
|
194
|
+
catch (error) {
|
|
195
|
+
throw new Error(`${question}: ${options[index]}: ${error instanceof Error ? error.message : String(error)} Nothing was prepared.`);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
const missing = parts.flatMap((part) => part.pages).find((name) => findPage(world, name) === undefined);
|
|
199
|
+
if (missing !== undefined) {
|
|
200
|
+
throw new Error(`[[${missing}]] is no page of the campaign: link a page by the name find gives, before its title in «», or write it without brackets. Nothing was prepared.`);
|
|
201
|
+
}
|
|
202
|
+
return { question, options, pick };
|
|
203
|
+
}
|
|
204
|
+
/** The player's answer to an item of the set it replaces, when that item stays the same: its question, options and pick. */
|
|
205
|
+
function keptAnswer(item, before) {
|
|
206
|
+
const same = before?.items.find((other) => comparableText(other.question) === comparableText(item.question)
|
|
207
|
+
&& pickText(other.pick) === pickText(item.pick)
|
|
208
|
+
&& other.options.length === item.options.length
|
|
209
|
+
&& other.options.every((option, index) => option === item.options[index]));
|
|
210
|
+
return same?.answer === undefined ? undefined : { answer: same.answer, ...(same.rolled === undefined ? {} : { rolled: same.rolled }) };
|
|
211
|
+
}
|
|
212
|
+
/** The titles of a character's sets, for a refusal. */
|
|
213
|
+
function namesOf(sets, who) {
|
|
214
|
+
const titles = sets.filter((set) => comparableText(set.who) === comparableText(who)).map((set) => set.title);
|
|
215
|
+
return titles.length === 0 ? `${who} has none waiting` : `${who} has ${titles.join(", ")}`;
|
|
216
|
+
}
|
|
@@ -27,6 +27,8 @@ export interface PlayerSetting {
|
|
|
27
27
|
}[];
|
|
28
28
|
/** In the setup, the value the game suggests, never chosen for the player (D-370). */
|
|
29
29
|
suggested?: string;
|
|
30
|
+
/** In the setup, the player's choice in their last campaign on this computer, which is the one suggested (T-134). */
|
|
31
|
+
last?: string;
|
|
30
32
|
/** In the setup, the question its card asks in place of its name, as how well the player knows the game (D-347). */
|
|
31
33
|
question?: string;
|
|
32
34
|
/** What the player should know of it on this computer, as whether pictures can be made here; fix when it says how to have what is missing. */
|
|
@@ -36,6 +38,11 @@ export interface PlayerSetting {
|
|
|
36
38
|
};
|
|
37
39
|
/** A setting of the player's own words, as the author the master writes like: the longest its text may be (D-395). */
|
|
38
40
|
most?: number;
|
|
41
|
+
/** The items of a custom difficulty or rigor, each with its level, one of the choices (T-132). */
|
|
42
|
+
entries?: {
|
|
43
|
+
name: string;
|
|
44
|
+
value: string;
|
|
45
|
+
}[];
|
|
39
46
|
}
|
|
40
47
|
/**
|
|
41
48
|
* The setup's questions as the dashboard asks them (D-370), each with its value or items, if answered, and its values with what each means: the player's
|
|
@@ -56,7 +63,7 @@ export declare function playerSettingNamed(root: string, context: Context, name:
|
|
|
56
63
|
*/
|
|
57
64
|
export declare function playerChangeNews(root: string, context: Context, before: PlayerSetting, after: PlayerSetting): string[];
|
|
58
65
|
/** The settings the player changes on the dashboard (D-341): how the game plays for them; the master's own, as house rules, coins and precedents, stay in the chat. */
|
|
59
|
-
export declare const playerSettingNames: readonly ["difficulty", "lethality", "saves", "rigor", "mentor", "learned", "prose", "story", "author", "style", "dice", "master-rolls", "units", "voices", "pictures", "effort", "lines", "veils", "language"];
|
|
66
|
+
export declare const playerSettingNames: readonly ["difficulty", "custom-difficulty", "lethality", "saves", "rigor", "custom-rigor", "between-sessions", "mentor", "learned", "prose", "story", "author", "style", "dice", "master-rolls", "units", "voices", "pictures", "effort", "lines", "veils", "language"];
|
|
60
67
|
/** Every note the pictures' setting may have, which the dashboard writes in its language (D-394). */
|
|
61
68
|
export declare const picturesNotes: string[];
|
|
62
69
|
export {};
|