rpg-engine 0.7.0 → 0.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/dist/adventures/index.d.ts +1 -1
- package/dist/adventures/index.js +1 -1
- package/dist/adventures/source.js +13 -13
- package/dist/campaign/create-campaign.js +10 -1
- package/dist/campaign/host-files.d.ts +2 -1
- package/dist/campaign/host-files.js +11 -11
- package/dist/campaign/index.d.ts +1 -1
- package/dist/campaign/index.js +1 -1
- package/dist/campaign/settings.d.ts +55 -64
- package/dist/campaign/settings.js +171 -174
- package/dist/{cli.js → cli/cli.js} +3 -3
- package/dist/{command-line.d.ts → cli/command-line.d.ts} +1 -1
- package/dist/{command-line.js → cli/command-line.js} +21 -20
- package/dist/commands/advance.d.ts +1 -1
- package/dist/commands/advance.js +7 -7
- package/dist/commands/ask.d.ts +1 -8
- package/dist/commands/ask.js +16 -29
- package/dist/commands/{change.d.ts → change/change.d.ts} +2 -2
- package/dist/commands/{change.js → change/change.js} +46 -52
- package/dist/commands/{game-damage.d.ts → change/damage.d.ts} +2 -2
- package/dist/commands/{game-damage.js → change/damage.js} +3 -3
- package/dist/commands/{game-recipe-pace.d.ts → change/recipe-pace.d.ts} +2 -2
- package/dist/commands/{game-recipe-pace.js → change/recipe-pace.js} +4 -4
- package/dist/commands/config.d.ts +4 -4
- package/dist/commands/config.js +142 -138
- package/dist/commands/effect.d.ts +1 -1
- package/dist/commands/effect.js +11 -12
- package/dist/commands/find.d.ts +4 -4
- package/dist/commands/find.js +2 -2
- package/dist/commands/image.js +6 -6
- package/dist/commands/{import.d.ts → import/import.d.ts} +2 -2
- package/dist/commands/{import.js → import/import.js} +101 -101
- package/dist/commands/{game-import.d.ts → import/run.d.ts} +3 -3
- package/dist/commands/{game-import.js → import/run.js} +13 -12
- package/dist/commands/index.js +7 -7
- package/dist/commands/init.js +3 -3
- package/dist/commands/install.js +1 -1
- package/dist/commands/instructions.js +6 -6
- package/dist/commands/mode.d.ts +2 -2
- package/dist/commands/mode.js +8 -8
- package/dist/commands/mood.js +4 -4
- package/dist/commands/move.js +13 -20
- package/dist/commands/package.d.ts +2 -2
- package/dist/commands/package.js +138 -93
- package/dist/commands/rename.js +3 -3
- package/dist/commands/reveal.js +29 -18
- package/dist/commands/{roll.d.ts → roll/roll.d.ts} +4 -4
- package/dist/commands/{roll.js → roll/roll.js} +69 -69
- package/dist/commands/{game-tables.d.ts → roll/tables.d.ts} +2 -2
- package/dist/commands/{game-tables.js → roll/tables.js} +4 -4
- package/dist/commands/rules.d.ts +2 -2
- package/dist/commands/rules.js +3 -3
- package/dist/commands/save.d.ts +1 -1
- package/dist/commands/save.js +18 -18
- package/dist/commands/scene.d.ts +4 -4
- package/dist/commands/scene.js +31 -28
- package/dist/commands/{game-advance.d.ts → shared/advance.d.ts} +4 -4
- package/dist/commands/{game-advance.js → shared/advance.js} +27 -27
- package/dist/commands/{game-adventures.d.ts → shared/adventures.d.ts} +3 -3
- package/dist/commands/{game-adventures.js → shared/adventures.js} +20 -27
- package/dist/commands/{game-bonds.d.ts → shared/bonds.d.ts} +3 -3
- package/dist/commands/{game-bonds.js → shared/bonds.js} +2 -2
- package/dist/commands/{game-checks.d.ts → shared/checks.d.ts} +3 -3
- package/dist/commands/{game-checks.js → shared/checks.js} +7 -7
- package/dist/commands/{game-dice-pool.d.ts → shared/dice-pool.d.ts} +3 -3
- package/dist/commands/{game-dice-pool.js → shared/dice-pool.js} +19 -12
- package/dist/commands/{effect-layer.d.ts → shared/effect-layer.d.ts} +2 -2
- package/dist/commands/{effect-layer.js → shared/effect-layer.js} +12 -12
- package/dist/commands/{game-effects.d.ts → shared/effects.d.ts} +7 -7
- package/dist/commands/{game-effects.js → shared/effects.js} +19 -19
- package/dist/commands/{game-environment.d.ts → shared/environment.d.ts} +1 -1
- package/dist/commands/{game-environment.js → shared/environment.js} +3 -3
- package/dist/commands/{game-events.d.ts → shared/events.d.ts} +5 -5
- package/dist/commands/{game-events.js → shared/events.js} +20 -22
- package/dist/commands/{game-examples.d.ts → shared/examples.d.ts} +4 -8
- package/dist/commands/{game-examples.js → shared/examples.js} +23 -23
- package/dist/commands/{game-experience.d.ts → shared/experience.d.ts} +2 -2
- package/dist/commands/{game-experience.js → shared/experience.js} +8 -11
- package/dist/commands/{game-grid-moves.d.ts → shared/grid-moves.d.ts} +6 -6
- package/dist/commands/{game-grid-moves.js → shared/grid-moves.js} +5 -5
- package/dist/commands/{game-grids.d.ts → shared/grids.d.ts} +4 -9
- package/dist/commands/{game-grids.js → shared/grids.js} +20 -19
- package/dist/commands/{game-images.d.ts → shared/images.d.ts} +3 -3
- package/dist/commands/{game-images.js → shared/images.js} +7 -6
- package/dist/commands/shared/inputs.d.ts +9 -0
- package/dist/commands/shared/inputs.js +12 -0
- package/dist/commands/{game-journey.d.ts → shared/journey.d.ts} +4 -6
- package/dist/commands/{game-journey.js → shared/journey.js} +13 -15
- package/dist/commands/{game-knowledge.d.ts → shared/knowledge.d.ts} +15 -8
- package/dist/commands/{game-knowledge.js → shared/knowledge.js} +42 -42
- package/dist/{library-reader.js → commands/shared/library-reader.js} +4 -4
- package/dist/commands/{game-library.d.ts → shared/library.d.ts} +7 -4
- package/dist/commands/{game-library.js → shared/library.js} +70 -50
- package/dist/commands/{game-limits.d.ts → shared/limits.d.ts} +3 -3
- package/dist/commands/{game-limits.js → shared/limits.js} +3 -3
- package/dist/commands/{game-loot.d.ts → shared/loot.d.ts} +2 -2
- package/dist/commands/{game-loot.js → shared/loot.js} +3 -3
- package/dist/commands/{game-master-rolls.d.ts → shared/master-rolls.d.ts} +2 -2
- package/dist/commands/{game-master-rolls.js → shared/master-rolls.js} +6 -6
- package/dist/commands/{game-mode.d.ts → shared/mode.d.ts} +4 -6
- package/dist/commands/{game-mode.js → shared/mode.js} +10 -10
- package/dist/commands/{game-money.d.ts → shared/money.d.ts} +3 -3
- package/dist/commands/{game-money.js → shared/money.js} +4 -4
- package/dist/commands/{game-moods.d.ts → shared/moods.d.ts} +3 -3
- package/dist/commands/{game-moods.js → shared/moods.js} +3 -3
- package/dist/commands/{game-moves.d.ts → shared/moves.d.ts} +2 -2
- package/dist/commands/{game-moves.js → shared/moves.js} +5 -5
- package/dist/commands/{game-offers.d.ts → shared/offers.d.ts} +3 -3
- package/dist/commands/{game-offers.js → shared/offers.js} +9 -12
- package/dist/commands/{game-outside.d.ts → shared/outside.d.ts} +3 -3
- package/dist/commands/{game-outside.js → shared/outside.js} +9 -9
- package/dist/commands/{game-catalog.d.ts → shared/packages/catalog.d.ts} +1 -3
- package/dist/commands/{game-catalog.js → shared/packages/catalog.js} +17 -22
- package/dist/commands/{game-package-code.d.ts → shared/packages/code.d.ts} +10 -14
- package/dist/commands/{game-package-code.js → shared/packages/code.js} +156 -59
- package/dist/commands/{game-extension-list.d.ts → shared/packages/extensions.d.ts} +6 -6
- package/dist/commands/{game-extension-list.js → shared/packages/extensions.js} +43 -22
- package/dist/commands/{game-package-hooks.d.ts → shared/packages/hooks.d.ts} +3 -3
- package/dist/commands/{game-package-hooks.js → shared/packages/hooks.js} +3 -3
- package/dist/commands/{game-widgets.d.ts → shared/packages/widgets.d.ts} +6 -10
- package/dist/commands/{game-widgets.js → shared/packages/widgets.js} +57 -57
- package/dist/commands/{page-counters.d.ts → shared/page-counters.d.ts} +3 -3
- package/dist/commands/{page-counters.js → shared/page-counters.js} +5 -5
- package/dist/{page-words.d.ts → commands/shared/page-words.d.ts} +2 -2
- package/dist/{page-words.js → commands/shared/page-words.js} +5 -4
- package/dist/commands/{parts.d.ts → shared/parts.d.ts} +3 -3
- package/dist/commands/{parts.js → shared/parts.js} +4 -4
- package/dist/commands/{game-positions.d.ts → shared/positions.d.ts} +3 -5
- package/dist/commands/{game-positions.js → shared/positions.js} +6 -7
- package/dist/commands/{problems.d.ts → shared/problems.d.ts} +3 -3
- package/dist/commands/{problems.js → shared/problems.js} +21 -22
- package/dist/commands/{progression.d.ts → shared/progression.d.ts} +2 -2
- package/dist/commands/{progression.js → shared/progression.js} +4 -4
- package/dist/commands/{game-quests.d.ts → shared/quests.d.ts} +4 -4
- package/dist/commands/{game-quests.js → shared/quests.js} +6 -6
- package/dist/commands/{game-recipes.d.ts → shared/recipes.d.ts} +3 -3
- package/dist/commands/{game-recipes.js → shared/recipes.js} +3 -3
- package/dist/commands/{game-reminders.d.ts → shared/reminders.d.ts} +4 -4
- package/dist/commands/{game-reminders.js → shared/reminders.js} +4 -4
- package/dist/commands/{game-roads.d.ts → shared/roads.d.ts} +5 -5
- package/dist/commands/{game-roads.js → shared/roads.js} +43 -44
- package/dist/commands/{game-rules.d.ts → shared/rules.d.ts} +2 -2
- package/dist/commands/{game-rules.js → shared/rules.js} +4 -4
- package/dist/commands/{game-saves.d.ts → shared/saves.d.ts} +4 -4
- package/dist/commands/{game-saves.js → shared/saves.js} +51 -51
- package/dist/commands/{game-scene.d.ts → shared/scene.d.ts} +13 -3
- package/dist/commands/{game-scene.js → shared/scene.js} +41 -13
- package/dist/commands/{sheet.d.ts → shared/sheet.d.ts} +5 -5
- package/dist/commands/{sheet.js → shared/sheet.js} +76 -76
- package/dist/commands/{game-stacks.d.ts → shared/stacks.d.ts} +2 -9
- package/dist/commands/{game-stacks.js → shared/stacks.js} +22 -22
- package/dist/commands/{game-theme.d.ts → shared/theme.d.ts} +3 -3
- package/dist/commands/{game-theme.js → shared/theme.js} +2 -2
- package/dist/commands/{game-thoughts.d.ts → shared/thoughts.d.ts} +2 -4
- package/dist/commands/{game-thoughts.js → shared/thoughts.js} +6 -8
- package/dist/commands/{game-thresholds.d.ts → shared/thresholds.d.ts} +1 -1
- package/dist/commands/{game-thresholds.js → shared/thresholds.js} +4 -4
- package/dist/commands/{game-time.d.ts → shared/time.d.ts} +4 -4
- package/dist/commands/{game-time.js → shared/time.js} +6 -6
- package/dist/commands/{game-turn-uses.d.ts → shared/turn-uses.d.ts} +3 -3
- package/dist/commands/{game-turn-uses.js → shared/turn-uses.js} +12 -15
- package/dist/commands/{game-upkeep.d.ts → shared/upkeep.d.ts} +3 -3
- package/dist/commands/{game-upkeep.js → shared/upkeep.js} +69 -57
- package/dist/commands/{game-voices.d.ts → shared/voices.d.ts} +1 -1
- package/dist/commands/{game-voices.js → shared/voices.js} +2 -2
- package/dist/commands/{worked-out.d.ts → shared/worked-out.d.ts} +3 -8
- package/dist/commands/{worked-out.js → shared/worked-out.js} +238 -238
- package/dist/commands/{game-world.d.ts → shared/world.d.ts} +5 -14
- package/dist/commands/{game-world.js → shared/world.js} +72 -76
- package/dist/commands/show.d.ts +1 -1
- package/dist/commands/show.js +32 -17
- package/dist/commands/status.d.ts +1 -1
- package/dist/commands/status.js +28 -28
- package/dist/commands/thoughts.js +3 -3
- package/dist/commands/trade.js +9 -10
- package/dist/commands/translate.d.ts +1 -1
- package/dist/commands/translate.js +3 -3
- package/dist/commands/{game-open.d.ts → travel/open.d.ts} +3 -3
- package/dist/commands/{game-open.js → travel/open.js} +4 -5
- package/dist/commands/{route.d.ts → travel/route.d.ts} +1 -1
- package/dist/commands/{route.js → travel/route.js} +9 -10
- package/dist/commands/{travel.d.ts → travel/travel.d.ts} +2 -2
- package/dist/commands/{travel.js → travel/travel.js} +19 -21
- package/dist/commands/validate.js +5 -5
- package/dist/commands/{game-view-journal.d.ts → view/journal.d.ts} +5 -5
- package/dist/commands/{game-view-journal.js → view/journal.js} +5 -5
- package/dist/commands/{game-view-map.d.ts → view/map.d.ts} +3 -3
- package/dist/commands/{game-view-map.js → view/map.js} +15 -16
- package/dist/commands/{game-view-place.d.ts → view/place.d.ts} +6 -6
- package/dist/commands/{game-view-place.js → view/place.js} +108 -108
- package/dist/commands/{view.d.ts → view/view.d.ts} +16 -16
- package/dist/commands/{view.js → view/view.js} +35 -35
- package/dist/commands/{game-view-world.d.ts → view/world.d.ts} +4 -4
- package/dist/commands/{game-view-world.js → view/world.js} +7 -7
- package/dist/commands/{game-here.d.ts → write/here.d.ts} +5 -3
- package/dist/commands/{game-here.js → write/here.js} +18 -12
- package/dist/commands/{write.d.ts → write/write.d.ts} +6 -6
- package/dist/commands/{write.js → write/write.js} +44 -41
- package/dist/confirm/confirm.d.ts +2 -0
- package/dist/confirm/confirm.js +15 -5
- package/dist/core/consents.d.ts +3 -2
- package/dist/core/consents.js +43 -4
- package/dist/core/context.d.ts +8 -6
- package/dist/core/context.js +4 -2
- package/dist/core/download.js +16 -5
- package/dist/core/files.d.ts +6 -1
- package/dist/core/files.js +47 -21
- package/dist/core/formula.d.ts +7 -2
- package/dist/core/formula.js +63 -66
- package/dist/core/instruction-parts.js +1 -1
- package/dist/core/mood.d.ts +0 -1
- package/dist/core/mood.js +3 -3
- package/dist/core/package-api.d.ts +11 -0
- package/dist/core/package-api.js +2 -1
- package/dist/core/package-declarations.d.ts +9 -9
- package/dist/core/package-declarations.js +3 -3
- package/dist/core/process-mark.d.ts +8 -0
- package/dist/core/process-mark.js +72 -0
- package/dist/core/registry.d.ts +5 -0
- package/dist/core/registry.js +10 -0
- package/dist/core/session-store.d.ts +0 -1
- package/dist/core/session-store.js +11 -14
- package/dist/core/store.d.ts +4 -0
- package/dist/core/store.js +29 -8
- package/dist/core/text.d.ts +4 -0
- package/dist/core/text.js +11 -2
- package/dist/core/yaml-file.js +2 -2
- package/dist/dashboard/{acts.js → acts/acts.js} +2 -2
- package/dist/dashboard/{act-names.js → acts/names.js} +1 -1
- package/dist/dashboard/{act-sheet.js → acts/sheet.js} +3 -3
- package/dist/dashboard/{act-strip.js → acts/strip.js} +2 -2
- package/dist/dashboard/app.js +13 -13
- package/dist/dashboard/asked.js +1 -1
- package/dist/dashboard/dice/burn.js +1 -1
- package/dist/dashboard/dice/stage.js +1 -1
- package/dist/dashboard/{guide-blocks.js → help/blocks.js} +1 -1
- package/dist/dashboard/{help.js → help/help.js} +6 -6
- package/dist/dashboard/journal.js +1 -1
- package/dist/dashboard/kit.js +6 -5
- package/dist/dashboard/labels.js +7 -3
- package/dist/dashboard/markdown.js +1 -1
- package/dist/dashboard/{ask-card.js → packages/ask-card.js} +6 -6
- package/dist/dashboard/{package-page.js → packages/package-page.js} +3 -3
- package/dist/dashboard/{packages.js → packages/packages.js} +12 -12
- package/dist/dashboard/{page-code.js → packages/page-code.js} +4 -4
- package/dist/dashboard/{extension-widgets.js → packages/widgets.js} +5 -5
- package/dist/dashboard/party.js +1 -1
- package/dist/dashboard/person-panel.js +2 -13
- package/dist/dashboard/{map-sheet.js → place/map-sheet.js} +4 -4
- package/dist/dashboard/{place-map-view.js → place/map-view.js} +11 -11
- package/dist/dashboard/scene.js +4 -4
- package/dist/dashboard/settings.js +1 -1
- package/dist/dashboard/sheet.js +3 -3
- package/dist/dashboard/top.js +2 -2
- package/dist/dashboard/turns.js +2 -2
- package/dist/dashboard/widgets.js +1 -1
- package/dist/dashboard/{world-calendar.js → world/calendar.js} +7 -7
- package/dist/dashboard/{lore.js → world/known.js} +1 -1
- package/dist/dashboard/{world-lore.js → world/lore.js} +9 -9
- package/dist/dashboard/{world-map.js → world/map.js} +1 -1
- package/dist/dashboard/{world.js → world/world.js} +14 -14
- package/dist/dice/evaluate.js +1 -1
- package/dist/dice/index.d.ts +2 -2
- package/dist/dice/index.js +2 -2
- package/dist/dice/notation.d.ts +2 -0
- package/dist/dice/notation.js +22 -4
- package/dist/documents/markup.js +2 -2
- package/dist/documents/read.js +29 -13
- package/dist/effects/effect.js +2 -5
- package/dist/extensions/extension.js +6 -8
- package/dist/extensions/index.d.ts +1 -4
- package/dist/extensions/index.js +1 -4
- package/dist/extensions/words.js +2 -1
- package/dist/{pictures → helpers}/briefs.js +17 -14
- package/dist/{pictures → helpers}/claude.js +8 -18
- package/dist/{pictures → helpers}/codex.js +3 -15
- package/dist/helpers/index.d.ts +7 -0
- package/dist/helpers/index.js +9 -0
- package/dist/{pictures/helpers.d.ts → helpers/programs.d.ts} +6 -1
- package/dist/{pictures/helpers.js → helpers/programs.js} +16 -2
- package/dist/images/images.js +7 -5
- package/dist/images/index.d.ts +1 -1
- package/dist/images/index.js +1 -1
- package/dist/importer/index.d.ts +1 -1
- package/dist/importer/index.js +1 -1
- package/dist/importer/work.d.ts +0 -2
- package/dist/importer/work.js +9 -30
- package/dist/instructions/index.d.ts +2 -0
- package/dist/instructions/index.js +10 -0
- package/dist/languages/index.d.ts +1 -1
- package/dist/languages/index.js +1 -1
- package/dist/languages/language-pack.js +15 -3
- package/dist/library/books.js +29 -83
- package/dist/{extensions → packages}/engine.d.ts +1 -1
- package/dist/{extensions → packages}/engine.js +1 -1
- package/dist/packages/index.d.ts +3 -0
- package/dist/packages/index.js +4 -0
- package/dist/{extensions/packages.d.ts → packages/npm.d.ts} +2 -0
- package/dist/{extensions/packages.js → packages/npm.js} +74 -45
- package/dist/page.d.ts +9 -11
- package/dist/page.js +1 -2
- package/dist/pages/check.js +31 -40
- package/dist/pages/containers.js +20 -20
- package/dist/pages/environment.js +15 -15
- package/dist/pages/index.d.ts +9 -9
- package/dist/pages/index.js +9 -9
- package/dist/pages/inheritance.d.ts +2 -1
- package/dist/pages/inheritance.js +24 -24
- package/dist/pages/load.js +7 -7
- package/dist/pages/maps.d.ts +20 -0
- package/dist/pages/maps.js +51 -1
- package/dist/pages/markdown.d.ts +2 -0
- package/dist/pages/markdown.js +110 -79
- package/dist/pages/page-file.d.ts +2 -1
- package/dist/pages/page-file.js +31 -29
- package/dist/pages/rename-page.d.ts +4 -1
- package/dist/pages/rename-page.js +7 -3
- package/dist/pages/{stack-entry.d.ts → stacks/entry.d.ts} +0 -2
- package/dist/pages/{stack-entry.js → stacks/entry.js} +2 -6
- package/dist/pages/{stacks.d.ts → stacks/kinds.d.ts} +8 -1
- package/dist/pages/{stacks.js → stacks/kinds.js} +36 -41
- package/dist/pages/{stack-writes.d.ts → stacks/writes.d.ts} +2 -2
- package/dist/pages/{stack-writes.js → stacks/writes.js} +32 -32
- package/dist/pages/system-pages.js +15 -15
- package/dist/pages/world.js +25 -19
- package/dist/pages/write-page.js +35 -34
- package/dist/player-notes/index.d.ts +1 -1
- package/dist/player-notes/index.js +1 -1
- package/dist/rules/page-search.js +3 -4
- package/dist/rules/rule-book.js +1 -1
- package/dist/rules/search.js +21 -21
- package/dist/rules/shown.js +1 -3
- package/dist/saves/saves.d.ts +2 -2
- package/dist/saves/saves.js +15 -3
- package/dist/{bell-listener.js → server/bell-listener.js} +3 -3
- package/dist/server/dashboard/files.d.ts +59 -0
- package/dist/server/dashboard/files.js +326 -0
- package/dist/server/dashboard/index.d.ts +114 -0
- package/dist/server/dashboard/index.js +419 -0
- package/dist/server/dashboard/news.d.ts +39 -0
- package/dist/server/dashboard/news.js +390 -0
- package/dist/server/dashboard/player.d.ts +48 -0
- package/dist/server/dashboard/player.js +242 -0
- package/dist/server/dashboard/ports.d.ts +10 -0
- package/dist/server/dashboard/ports.js +15 -0
- package/dist/server/dashboard/writes.d.ts +58 -0
- package/dist/server/dashboard/writes.js +492 -0
- package/dist/{mcp-server.d.ts → server/mcp.d.ts} +2 -2
- package/dist/{mcp-server.js → server/mcp.js} +57 -42
- package/dist/systems/game-system.d.ts +5 -3
- package/dist/systems/game-system.js +178 -149
- package/dist/systems/index.d.ts +1 -1
- package/dist/systems/index.js +1 -1
- package/dist/{testing.d.ts → testing/index.d.ts} +6 -6
- package/dist/{testing.js → testing/index.js} +32 -18
- package/dist/{system-checks.js → testing/system-checks.js} +18 -12
- package/dist/themes/theme.d.ts +3 -3
- package/dist/themes/theme.js +14 -14
- package/dist/time/calendar.js +5 -2
- package/dist/triggers/trigger.js +5 -8
- package/instructions/dashboard-guide.md +2 -1
- package/instructions/play.md +1 -1
- package/package.json +5 -5
- package/dist/commands/game-maps.d.ts +0 -20
- package/dist/commands/game-maps.js +0 -51
- package/dist/dashboard-server.d.ts +0 -47
- package/dist/dashboard-server.js +0 -1830
- package/dist/pictures/index.d.ts +0 -7
- package/dist/pictures/index.js +0 -9
- /package/dist/{cli.d.ts → cli/cli.d.ts} +0 -0
- /package/dist/{library-reader.d.ts → commands/shared/library-reader.d.ts} +0 -0
- /package/dist/commands/{notes.d.ts → shared/notes.d.ts} +0 -0
- /package/dist/commands/{notes.js → shared/notes.js} +0 -0
- /package/dist/dashboard/{guide-markdown.js → help/markdown.js} +0 -0
- /package/dist/dashboard/{pack-card.js → packages/card.js} +0 -0
- /package/dist/dashboard/{people.js → packages/people.js} +0 -0
- /package/dist/dashboard/{place-map.js → place/map.js} +0 -0
- /package/dist/dashboard/{calendar.js → world/days.js} +0 -0
- /package/dist/{pictures → helpers}/briefs.d.ts +0 -0
- /package/dist/{pictures → helpers}/chosen.d.ts +0 -0
- /package/dist/{pictures → helpers}/chosen.js +0 -0
- /package/dist/{pictures → helpers}/claude.d.ts +0 -0
- /package/dist/{pictures → helpers}/codex.d.ts +0 -0
- /package/dist/{pictures → helpers}/stop.d.ts +0 -0
- /package/dist/{pictures → helpers}/stop.js +0 -0
- /package/dist/{pictures → helpers}/svg.d.ts +0 -0
- /package/dist/{pictures → helpers}/svg.js +0 -0
- /package/dist/{extensions → packages}/tarball.d.ts +0 -0
- /package/dist/{extensions → packages}/tarball.js +0 -0
- /package/dist/{bell-listener.d.ts → server/bell-listener.d.ts} +0 -0
- /package/dist/{player-acts.d.ts → server/player-acts.d.ts} +0 -0
- /package/dist/{player-acts.js → server/player-acts.js} +0 -0
- /package/dist/{system-checks.d.ts → testing/system-checks.d.ts} +0 -0
package/dist/commands/ask.js
CHANGED
|
@@ -4,20 +4,21 @@ import { appendLogEntry } from "../core/log.js";
|
|
|
4
4
|
import { defineCommand } from "../core/registry.js";
|
|
5
5
|
import { comparableText, valueNamed } from "../core/text.js";
|
|
6
6
|
import { readCounter } from "../counters/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { diceProblem, mostCoins, rollDice, tossCoins } from "../dice/index.js";
|
|
8
8
|
import { closedSquare, readSquare } from "../grid/index.js";
|
|
9
9
|
import { findPage, loadWorld, locate, playerCharacters } from "../pages/index.js";
|
|
10
10
|
import { rollName } from "../systems/index.js";
|
|
11
|
-
import { effectiveFields } from "./effect-layer.js";
|
|
12
|
-
import { restDice, spendDice } from "./game-dice-pool.js";
|
|
13
|
-
import { placeGrid } from "./game-grids.js";
|
|
14
|
-
import { allSaid, packagesAsking, packagesRolled } from "./game-package-hooks.js";
|
|
15
|
-
import { recipeNamed } from "./game-recipes.js";
|
|
16
|
-
import { newDatedLogEntry } from "./game-time.js";
|
|
17
|
-
import { campaignSystem, campaignWorld, systemWordsOf } from "./game-world.js";
|
|
18
11
|
import { placeOnMap } from "./move.js";
|
|
19
|
-
import { hasNames, namesAsZero, rollerOf, sheetDiceOf, withSheetValues } from "./roll.js";
|
|
20
|
-
import {
|
|
12
|
+
import { hasNames, namesAsZero, rollerOf, sheetDiceOf, withSheetValues } from "./roll/roll.js";
|
|
13
|
+
import { restDice, spendDice } from "./shared/dice-pool.js";
|
|
14
|
+
import { effectiveFields } from "./shared/effect-layer.js";
|
|
15
|
+
import { placeGrid } from "./shared/grids.js";
|
|
16
|
+
import { textList } from "./shared/inputs.js";
|
|
17
|
+
import { allSaid, packagesAsking, packagesRolled } from "./shared/packages/hooks.js";
|
|
18
|
+
import { recipeNamed } from "./shared/recipes.js";
|
|
19
|
+
import { knowledgeNote } from "./shared/sheet.js";
|
|
20
|
+
import { newDatedLogEntry } from "./shared/time.js";
|
|
21
|
+
import { campaignSystem, campaignWorld, systemWordsOf } from "./shared/world.js";
|
|
21
22
|
// The words of the buttons, in the campaign's language, as the dashboard's languages (playtest 15); English for the others (ASK-7). A toss's for one coin and for
|
|
22
23
|
// more (ASK-15).
|
|
23
24
|
const buttonWords = {
|
|
@@ -48,8 +49,6 @@ const buttonWords = {
|
|
|
48
49
|
uk: { roll: "Кидок", change: "Передумати", choice: "Вибір", square: "Переміщення", rest: "Відпочинок", done: "Готово", toss: "Кинути монету", tosses: "Кинути {count} монети" },
|
|
49
50
|
zh: { roll: "掷骰", change: "我改主意了", choice: "选择", square: "移动", rest: "休息", done: "完成", toss: "抛硬币", tosses: "抛{count}枚硬币" },
|
|
50
51
|
};
|
|
51
|
-
// A list, or one text, as an MCP client may send it.
|
|
52
|
-
const textList = z.union([z.string(), z.array(z.string())]);
|
|
53
52
|
export const ask = defineCommand({
|
|
54
53
|
name: "ask",
|
|
55
54
|
description: "Ask the player with buttons: every roll of the player's character, and every choice that is truly theirs to make. "
|
|
@@ -164,6 +163,10 @@ export function tonesOf(given, faces) {
|
|
|
164
163
|
? {}
|
|
165
164
|
: { tones: given.map((tone) => (tone === "good" || tone === "bad" ? tone : null)) };
|
|
166
165
|
}
|
|
166
|
+
/** Whether a text is the dice of a check, as 1d20+5 or 1d20+athletics (ASK-2, ASK-12). */
|
|
167
|
+
export function isCheckDice(text) {
|
|
168
|
+
return diceProblem(namesAsZero(text)) === undefined;
|
|
169
|
+
}
|
|
167
170
|
/**
|
|
168
171
|
* A label with its dice in the middle written as a check, for a refusal: words after the dice go before them, as Danni radianti 1d8; what is in brackets,
|
|
169
172
|
* as (CD 13), goes in the question (D-518). A label without dice gets an example.
|
|
@@ -177,10 +180,6 @@ function diceAtTheEnd(label) {
|
|
|
177
180
|
const named = (...parts) => parts.filter((part) => part !== "").join(" ");
|
|
178
181
|
return after.startsWith("(") ? `${named(name, dice)}, and ${after} goes in the question` : named(name, after, dice);
|
|
179
182
|
}
|
|
180
|
-
/** Whether a text is the dice of a check, as 1d20+5 or 1d20+athletics (ASK-2, ASK-12). */
|
|
181
|
-
export function isCheckDice(text) {
|
|
182
|
-
return isDice(namesAsZero(text));
|
|
183
|
-
}
|
|
184
183
|
/** The words of the buttons in the campaign's language (ASK-7). */
|
|
185
184
|
function buttonWordsOf(root) {
|
|
186
185
|
return buttonWords[(readSettings(root).language ?? "en").split("-")[0]] ?? buttonWords.en;
|
|
@@ -528,7 +527,7 @@ function keptDice(term) {
|
|
|
528
527
|
* away; one that never showed, a page not open or a form the host does not show, leaves the other to answer. Neither shown is absent: the master asks in words.
|
|
529
528
|
* A form shows `shown` in place of the labels, when they are as many and each its own.
|
|
530
529
|
*/
|
|
531
|
-
|
|
530
|
+
async function chooseAnswer(context, question, title, labels, rows, shown) {
|
|
532
531
|
const formLabels = shown?.length === labels.length && new Set(shown).size === shown.length ? shown : labels;
|
|
533
532
|
const { page, player } = context;
|
|
534
533
|
if (page === undefined && player === undefined) {
|
|
@@ -605,18 +604,6 @@ function sheetChecks(root, context, checks, who) {
|
|
|
605
604
|
return { ...check, notation: notation.replace(/\s+/g, ""), ...(fields.length === 1 ? { field: fields[0] } : {}) };
|
|
606
605
|
});
|
|
607
606
|
}
|
|
608
|
-
/** Whether a text is dice to roll, such as 1d20+5 or 2d20kh1+3: a number alone is not. */
|
|
609
|
-
function isDice(text) {
|
|
610
|
-
try {
|
|
611
|
-
return parseNotation(text).some((term) => term.kind === "dice");
|
|
612
|
-
}
|
|
613
|
-
catch (error) {
|
|
614
|
-
if (error instanceof DiceError) {
|
|
615
|
-
return false;
|
|
616
|
-
}
|
|
617
|
-
throw error;
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
607
|
/** The player's character the roll belongs to: the one named, or the only one there is (ASK-2). */
|
|
621
608
|
function playerCharacter(world, who) {
|
|
622
609
|
// A dead one rolls nothing, beside the living (VIEW-12).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { fireEvents } from "
|
|
3
|
-
export declare const change: import("
|
|
2
|
+
import { fireEvents } from "../shared/events.ts";
|
|
3
|
+
export declare const change: import("../../core/registry.ts").Command<z.ZodObject<{
|
|
4
4
|
page: z.ZodOptional<z.ZodString>;
|
|
5
5
|
field: z.ZodOptional<z.ZodString>;
|
|
6
6
|
by: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodNumber, unknown>, z.ZodString]>>;
|
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readSettings, requireCampaign } from "
|
|
3
|
-
import { fieldsRead } from "
|
|
4
|
-
import { appendLogEntry } from "
|
|
5
|
-
import { defineCommand } from "
|
|
6
|
-
import { comparableText, valueNamed, withArticle } from "
|
|
7
|
-
import { canSpend, changeCounter, counterLimit, formatCounter, isSafeCounter, readCounter, readCounterText } from "
|
|
8
|
-
import {
|
|
9
|
-
import { addCoins, formatAmount, formatTotal, isSafePurse, namesCoins, payCoins, readAmount, readSignedAmount, totalOf } from "
|
|
10
|
-
import { baseChain, baseFieldOf, baseValue, concernsPlayer, declaredKind, findPage, followersOf, goodsNamed, inheritedFields, isCounterField, isDeclaredUncounted, isPartyMember, isPlayerCharacter, isStandardField, keepersOf, kindNamed, ownField, stackName, stacksOf, systemPageNamed, textsIn, withPage, writePage, } from "
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { checkEffectsReadable, saveEffects } from "
|
|
15
|
-
import { fireEvents, nowDueNote } from "
|
|
16
|
-
import { coinExamples, poolExample, restExample } from "
|
|
17
|
-
import { experienceOf, newLevelNotes } from "
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
|
|
35
|
-
const wholeNumber = z.preprocess((value) => (typeof value === "string" && /^[+-]?\d+$/.test(value.trim()) ? Number(value) : value), z.number().int());
|
|
2
|
+
import { readSettings, requireCampaign } from "../../campaign/index.js";
|
|
3
|
+
import { fieldsRead } from "../../core/formula.js";
|
|
4
|
+
import { appendLogEntry } from "../../core/log.js";
|
|
5
|
+
import { defineCommand } from "../../core/registry.js";
|
|
6
|
+
import { comparableText, valueNamed, withArticle } from "../../core/text.js";
|
|
7
|
+
import { canSpend, changeCounter, counterLimit, formatCounter, isSafeCounter, readCounter, readCounterText } from "../../counters/index.js";
|
|
8
|
+
import { diceProblem, rollDice } from "../../dice/index.js";
|
|
9
|
+
import { addCoins, formatAmount, formatTotal, isSafePurse, namesCoins, payCoins, readAmount, readSignedAmount, totalOf } from "../../money/index.js";
|
|
10
|
+
import { baseChain, baseFieldOf, baseValue, concernsPlayer, declaredKind, findPage, followersOf, goodsNamed, inheritedFields, isCounterField, isDeclaredUncounted, isPartyMember, isPlayerCharacter, isStandardField, keepersOf, kindNamed, ownField, stackName, stacksOf, systemPageNamed, textsIn, withPage, writePage, } from "../../pages/index.js";
|
|
11
|
+
import { faceValues } from "../roll/roll.js";
|
|
12
|
+
import { spendableDice, spendDice } from "../shared/dice-pool.js";
|
|
13
|
+
import { effectGiving, effectiveFields, effectsOf, withValue } from "../shared/effect-layer.js";
|
|
14
|
+
import { checkEffectsReadable, saveEffects } from "../shared/effects.js";
|
|
15
|
+
import { fireEvents, nowDueNote } from "../shared/events.js";
|
|
16
|
+
import { coinExamples, poolExample, restExample } from "../shared/examples.js";
|
|
17
|
+
import { experienceOf, newLevelNotes } from "../shared/experience.js";
|
|
18
|
+
import { wholeNumber } from "../shared/inputs.js";
|
|
19
|
+
import { screenNote, screenUp, sealHiddenRoll } from "../shared/master-rolls.js";
|
|
20
|
+
import { campaignCoins } from "../shared/money.js";
|
|
21
|
+
import { followersNote, keepersNote, skippedPagesNote } from "../shared/notes.js";
|
|
22
|
+
import { allSaid, packagesCounterChanged } from "../shared/packages/hooks.js";
|
|
23
|
+
import { keptRolls } from "../shared/page-counters.js";
|
|
24
|
+
import { situationPart } from "../shared/parts.js";
|
|
25
|
+
import { effectsAtRecipe, notBroughtBack, partyPages, recipeChoices, recipeNamed, recipeTargets } from "../shared/recipes.js";
|
|
26
|
+
import { keepingLossNote, restingEffectsNote, shieldNotes } from "../shared/reminders.js";
|
|
27
|
+
import { checkNotCopied, checkNotSystemPage, pageOrCopy, readOpenScene, updateScene } from "../shared/scene.js";
|
|
28
|
+
import { changeStack } from "../shared/stacks.js";
|
|
29
|
+
import { fallNotes, thresholdNotes } from "../shared/thresholds.js";
|
|
30
|
+
import { newDatedLogEntry, readPresent } from "../shared/time.js";
|
|
31
|
+
import { computedField, computedMessage, counterLimits, hasSheet, maximumHint, maximumSources, startingAtZero } from "../shared/worked-out.js";
|
|
32
|
+
import { campaignSystem, campaignWorld, missingSystemHint } from "../shared/world.js";
|
|
33
|
+
import { damageLists, damageTaken } from "./damage.js";
|
|
34
|
+
import { logRecipeApplied, tooSoonNote } from "./recipe-pace.js";
|
|
36
35
|
export const change = defineCommand({
|
|
37
36
|
name: "change",
|
|
38
37
|
description: "Change a counter, money or a stack of goods on a page: hit points, uses, a progress track, an event's clock, coins, torches. "
|
|
@@ -129,7 +128,7 @@ function changeField(root, context, world, input) {
|
|
|
129
128
|
const untyped = Number.isFinite(by) && by < 0 ? untypedDamageNote(world, system, holder.page, field) : "";
|
|
130
129
|
const told = untyped === "" ? outcome : { ...outcome, reminders: [...outcome.reminders, untyped] };
|
|
131
130
|
// What a shield, as temporary hit points, would have taken first is no loss past the dying value: never an instant death the master undoes (review of 17 October).
|
|
132
|
-
const shield =
|
|
131
|
+
const shield = shieldOf(system, field);
|
|
133
132
|
const shielded = shield === undefined ? 0 : Math.max(readCounter(valueNamed(fields, shield))?.value ?? 0, 0);
|
|
134
133
|
const lost = Number.isFinite(by) && by < 0 ? Math.max(-by - shielded, 0) : 0;
|
|
135
134
|
return { ...told, ...counterChangeOf({ holder, field, fields }, told, lost), problems: world.problems };
|
|
@@ -146,9 +145,12 @@ function diceBy(by, context) {
|
|
|
146
145
|
if (!/\d*d(\d+|%|F)/i.test(notation)) {
|
|
147
146
|
return undefined;
|
|
148
147
|
}
|
|
149
|
-
// Dice that do not read as a roll
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
// Dice that do not read as a roll: as -(2d6)+3, with brackets around a part, the whole roll goes in them; in brackets already, what the dice say is wrong.
|
|
149
|
+
const problem = diceProblem(notation);
|
|
150
|
+
if (problem !== undefined) {
|
|
151
|
+
throw new Error(bracketed === undefined
|
|
152
|
+
? `by ${String(by)} does not read as a roll: put the whole roll in brackets after the sign, such as by -(2d6+3), which takes away 2d6+3. Nothing changed.`
|
|
153
|
+
: `by ${String(by)} does not read as a roll: ${problem} Nothing changed.`);
|
|
152
154
|
}
|
|
153
155
|
// -1d8-2 reads as 1d8+2 taken away or as 1d8-2 taken away: a minus before more than one term asks for brackets (playtest 08).
|
|
154
156
|
if (text.startsWith("-") && bracketed === undefined && /[+-]/.test(notation)) {
|
|
@@ -184,17 +186,9 @@ function rolledText(rolled, hidden) {
|
|
|
184
186
|
const screen = hidden?.screened === true ? `. ${screenNote}` : "";
|
|
185
187
|
return hidden === undefined ? `Rolled ${rolled}.` : `Hidden roll ${hidden.id}, only for the master: ${rolled}${screen}\nIts fingerprint, only if the player asks for it: ${hidden.fingerprint}`;
|
|
186
188
|
}
|
|
187
|
-
/**
|
|
188
|
-
function
|
|
189
|
-
|
|
190
|
-
return parseNotation(text).some((term) => term.kind === "dice");
|
|
191
|
-
}
|
|
192
|
-
catch (error) {
|
|
193
|
-
if (error instanceof DiceError) {
|
|
194
|
-
return false;
|
|
195
|
-
}
|
|
196
|
-
throw error;
|
|
197
|
-
}
|
|
189
|
+
/** The counter that shields a counter, losing first, as temporary hit points (DAT-14); undefined when none does. */
|
|
190
|
+
function shieldOf(system, field) {
|
|
191
|
+
return Object.entries(system?.shields ?? {}).find(([, shielded]) => comparableText(shielded) === comparableText(field))?.[0];
|
|
198
192
|
}
|
|
199
193
|
/** The damage a page takes of the type given (DMG-1): only with by, negative, on the counter the system's damage takes from. */
|
|
200
194
|
function typedDamage(system, fields, field, input, page) {
|
|
@@ -219,7 +213,7 @@ function damageSteps(root, context, world, target, damage, why, system) {
|
|
|
219
213
|
const { holder, fields, field, coins } = target;
|
|
220
214
|
const page = holder.page.name;
|
|
221
215
|
const withNote = (outcome, notes) => ({ ...outcome, note: [...notes, outcome.note].filter((part) => part !== "").join("; ") });
|
|
222
|
-
const shield =
|
|
216
|
+
const shield = shieldOf(system, field);
|
|
223
217
|
const shieldField = shield === undefined ? undefined : Object.keys(fields).find((name) => comparableText(name) === comparableText(shield));
|
|
224
218
|
const absorbed = shieldField === undefined ? 0 : Math.min(Math.max(readCounter(fields[shieldField])?.value ?? 0, 0), damage.amount);
|
|
225
219
|
const onCounter = (current, currentHolder, amount) => applyStep(root, context, current, currentHolder, field, counterStep({ by: -amount }, fields[field], page, field, coins, target.limits), why, system).outcome;
|
|
@@ -545,16 +539,16 @@ function counterStep(input, value, page, field, coins, limits = {}) {
|
|
|
545
539
|
}
|
|
546
540
|
const before = limits.min === undefined ? read : { ...read, min: limits.min };
|
|
547
541
|
const counterChange = readChange(input, before, page, field, coins);
|
|
542
|
+
// How to change a maximum the game system works out, said when a value goes past it.
|
|
543
|
+
const raise = limits.hint?.raise === undefined ? "" : `; to raise the maximum, write ${limits.hint.raise}; to change it for a while, as a drain, give an effect that sets ${limits.hint.raise}`;
|
|
548
544
|
// A maximum the game system works out is given only as it works it out (FOR-7).
|
|
549
545
|
if ("to" in counterChange && limits.max !== undefined && counterChange.to.max !== undefined && counterChange.to.max !== limits.max) {
|
|
550
|
-
const raise = limits.hint?.raise === undefined ? "" : `; to raise the maximum, write ${limits.hint.raise}; to change it for a while, as a drain, give an effect that sets ${limits.hint.raise}`;
|
|
551
546
|
throw new Error(`The maximum of ${field} on ${page} is worked out by the game system: ${limits.hint?.made ?? limits.max}. Give the current value alone, such as to ${Math.min(counterChange.to.value, limits.max)}${raise}. Nothing changed.`);
|
|
552
547
|
}
|
|
553
548
|
// A value given with to keeps the minimum the system gives, for where it stands: 0 is no limit of a counter that goes below it.
|
|
554
549
|
const { counter: after, beyond } = changeCounter(before, counterChange);
|
|
555
550
|
// Above a maximum the game system works out, a value reads as the maximum (FOR-6): what change says it wrote would not be what is read.
|
|
556
551
|
if ("to" in counterChange && limits.max !== undefined && after.value > limits.max) {
|
|
557
|
-
const raise = limits.hint?.raise === undefined ? "" : `; to raise the maximum, write ${limits.hint.raise}; to change it for a while, as a drain, give an effect that sets ${limits.hint.raise}`;
|
|
558
552
|
throw new Error(`${field} on ${page} goes no higher than its maximum, which the game system works out: ${limits.hint?.made ?? limits.max}. Give to ${limits.max} or less${raise}. Nothing changed.`);
|
|
559
553
|
}
|
|
560
554
|
if (!isSafeCounter(after)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Page, type World } from "
|
|
2
|
-
import type { DamageRule, GameSystem } from "
|
|
1
|
+
import { type Page, type World } from "../../pages/index.ts";
|
|
2
|
+
import type { DamageRule, GameSystem } from "../../systems/index.ts";
|
|
3
3
|
/** What a page takes of an amount of damage of a type, and the note that says why when it is not the amount. */
|
|
4
4
|
export interface DamageTaken {
|
|
5
5
|
amount: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Damage of a type (D-449, DMG-1–DMG-3): what the lists of who takes it ignore, halve or double, before the counter loses it.
|
|
2
|
-
import { comparableText, valueNamed } from "
|
|
3
|
-
import { bonusPages, inheritedFields, textsIn } from "
|
|
4
|
-
import { effectsOf } from "
|
|
2
|
+
import { comparableText, valueNamed } from "../../core/text.js";
|
|
3
|
+
import { bonusPages, inheritedFields, textsIn } from "../../pages/index.js";
|
|
4
|
+
import { effectsOf } from "../shared/effect-layer.js";
|
|
5
5
|
/**
|
|
6
6
|
* The damage a page takes of a type (DMG-1, DMG-2): none when its ignoring list names the type, half rounded down when its halving list does, then doubled when
|
|
7
7
|
* its doubling list does. An item that names the type with a condition, as "slashing from nonmagical attacks", waits for the master to say whether it holds
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Context } from "
|
|
2
|
-
import type { Recipe } from "
|
|
1
|
+
import type { Context } from "../../core/context.ts";
|
|
2
|
+
import type { Recipe } from "../../systems/index.ts";
|
|
3
3
|
/** Why a page gains nothing from a recipe it had too recently (RST-1), as "Ettore had a long rest at day 2, 08:00: …"; undefined when it may have it. */
|
|
4
4
|
export declare function tooSoonNote(root: string, recipe: Recipe, page: string): string | undefined;
|
|
5
5
|
/** Writes in the log that a recipe gave a page something, when the system counts how often it may (RST-1). */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { appendLogEntry, readLog } from "
|
|
2
|
-
import { comparableText } from "
|
|
3
|
-
import { addDuration, formatGameDate, minutesBetween, readDuration, readGameDate } from "
|
|
4
|
-
import { newDatedLogEntry, readPresent } from "
|
|
1
|
+
import { appendLogEntry, readLog } from "../../core/log.js";
|
|
2
|
+
import { comparableText } from "../../core/text.js";
|
|
3
|
+
import { addDuration, formatGameDate, minutesBetween, readDuration, readGameDate } from "../../time/index.js";
|
|
4
|
+
import { newDatedLogEntry, readPresent } from "../shared/time.js";
|
|
5
5
|
const appliedType = "recipe-applied";
|
|
6
6
|
/** Why a page gains nothing from a recipe it had too recently (RST-1), as "Ettore had a long rest at day 2, 08:00: …"; undefined when it may have it. */
|
|
7
7
|
export function tooSoonNote(root, recipe, page) {
|
|
@@ -13,8 +13,6 @@ interface ConfigResult {
|
|
|
13
13
|
replaced: string[];
|
|
14
14
|
part?: string;
|
|
15
15
|
}
|
|
16
|
-
/** 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. */
|
|
17
|
-
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"];
|
|
18
16
|
/** A setting of the player's as the dashboard shows it (D-341): what it is, its value or a list's items, and its values with what each means to the player. */
|
|
19
17
|
export interface PlayerSetting {
|
|
20
18
|
name: string;
|
|
@@ -50,8 +48,6 @@ export declare function setupSettingNamed(root: string, name: string): PlayerSet
|
|
|
50
48
|
export declare function shownPlayerSettings(root: string, context: Context): PlayerSetting[];
|
|
51
49
|
/** The player's settings with their values, then those the game system adds (D-341). */
|
|
52
50
|
export declare function playerSettings(root: string, context: Context): PlayerSetting[];
|
|
53
|
-
/** Every note the pictures' setting may have, which the dashboard writes in its language (D-394). */
|
|
54
|
-
export declare const picturesNotes: string[];
|
|
55
51
|
/** One of the player's settings by its name, in any case, as the dashboard changes them (D-341); undefined for a setting of the master's or none. */
|
|
56
52
|
export declare function playerSettingNamed(root: string, context: Context, name: string): PlayerSetting | undefined;
|
|
57
53
|
/**
|
|
@@ -59,4 +55,8 @@ export declare function playerSettingNamed(root: string, context: Context, name:
|
|
|
59
55
|
* player's first change since their last call, a value with what it means to the master; nothing for one that came back as it was.
|
|
60
56
|
*/
|
|
61
57
|
export declare function playerChangeNews(root: string, context: Context, before: PlayerSetting, after: PlayerSetting): string[];
|
|
58
|
+
/** 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"];
|
|
60
|
+
/** Every note the pictures' setting may have, which the dashboard writes in its language (D-394). */
|
|
61
|
+
export declare const picturesNotes: string[];
|
|
62
62
|
export {};
|