rpg-engine 0.15.0 → 0.17.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/source.d.ts +3 -1
- package/dist/adventures/source.js +31 -1
- package/dist/campaign/find-campaign.js +8 -4
- package/dist/campaign/index.d.ts +1 -1
- package/dist/campaign/index.js +1 -1
- package/dist/campaign/settings.d.ts +6 -0
- package/dist/campaign/settings.js +22 -1
- package/dist/cli/cli.js +1 -1
- package/dist/cli/command-line.js +1 -1
- package/dist/commands/advance.d.ts +1 -1
- package/dist/commands/advance.js +6 -6
- package/dist/commands/ask.js +7 -7
- package/dist/commands/change/amounts.d.ts +32 -0
- package/dist/commands/change/amounts.js +150 -0
- package/dist/commands/change/change.d.ts +4 -54
- package/dist/commands/change/change.js +19 -749
- package/dist/commands/change/damage.d.ts +30 -0
- package/dist/commands/change/damage.js +73 -2
- package/dist/commands/change/dice.d.ts +34 -0
- package/dist/commands/change/dice.js +59 -0
- package/dist/commands/change/fields.d.ts +37 -0
- package/dist/commands/change/fields.js +156 -0
- package/dist/commands/change/holder.d.ts +48 -0
- package/dist/commands/change/holder.js +162 -0
- package/dist/commands/change/recipe-pace.js +1 -1
- package/dist/commands/change/recipe.d.ts +58 -0
- package/dist/commands/change/recipe.js +179 -0
- package/dist/commands/choices.js +3 -3
- package/dist/commands/config/config.d.ts +15 -0
- package/dist/commands/config/config.js +355 -0
- package/dist/commands/config/custom-levels.d.ts +7 -0
- package/dist/commands/config/custom-levels.js +32 -0
- package/dist/commands/{config.d.ts → config/dashboard.d.ts} +2 -24
- package/dist/commands/config/dashboard.js +171 -0
- package/dist/commands/config/entries.d.ts +17 -0
- package/dist/commands/config/entries.js +76 -0
- package/dist/commands/config/news.d.ts +7 -0
- package/dist/commands/config/news.js +88 -0
- package/dist/commands/config/shown.d.ts +9 -0
- package/dist/commands/config/shown.js +80 -0
- package/dist/commands/config/words.d.ts +27 -0
- package/dist/commands/config/words.js +204 -0
- package/dist/commands/effect.js +9 -9
- package/dist/commands/find.js +1 -1
- package/dist/commands/image.js +6 -6
- package/dist/commands/import/import.d.ts +0 -2
- package/dist/commands/import/import.js +68 -45
- package/dist/commands/import/run.js +1 -1
- package/dist/commands/index.js +3 -3
- package/dist/commands/init.js +2 -2
- 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 +10 -10
- package/dist/commands/package/consent.d.ts +11 -0
- package/dist/commands/package/consent.js +52 -0
- package/dist/commands/package/here.d.ts +51 -0
- package/dist/commands/package/here.js +128 -0
- package/dist/commands/package/install.d.ts +10 -0
- package/dist/commands/package/install.js +337 -0
- package/dist/commands/package/package.d.ts +18 -0
- package/dist/commands/package/package.js +270 -0
- package/dist/commands/package/result.d.ts +89 -0
- package/dist/commands/package/result.js +1 -0
- package/dist/commands/package/uninstall.d.ts +6 -0
- package/dist/commands/package/uninstall.js +70 -0
- package/dist/commands/rename.js +3 -3
- package/dist/commands/reveal.js +5 -5
- package/dist/commands/roll/roll.js +11 -9
- package/dist/commands/roll/tables.js +1 -1
- package/dist/commands/rules.d.ts +2 -2
- package/dist/commands/rules.js +3 -3
- package/dist/commands/save.d.ts +2 -2
- package/dist/commands/save.js +2 -2
- package/dist/commands/scene/close.d.ts +18 -0
- package/dist/commands/scene/close.js +179 -0
- package/dist/commands/scene/members.d.ts +14 -0
- package/dist/commands/scene/members.js +32 -0
- package/dist/commands/scene/open.d.ts +6 -0
- package/dist/commands/scene/open.js +298 -0
- package/dist/commands/scene/result.d.ts +98 -0
- package/dist/commands/scene/result.js +2 -0
- package/dist/commands/{scene.d.ts → scene/scene.d.ts} +10 -36
- package/dist/commands/scene/scene.js +210 -0
- package/dist/commands/scene/turns.d.ts +18 -0
- package/dist/commands/scene/turns.js +229 -0
- package/dist/commands/shared/books/adventure-layers.d.ts +89 -0
- package/dist/commands/shared/books/adventure-layers.js +201 -0
- package/dist/commands/shared/{adventures.d.ts → books/adventures.d.ts} +28 -9
- package/dist/commands/shared/{adventures.js → books/adventures.js} +77 -35
- package/dist/commands/shared/{library-reader.js → books/library-reader.js} +3 -3
- package/dist/commands/shared/{library.d.ts → books/library.d.ts} +2 -2
- package/dist/commands/shared/{library.js → books/library.js} +9 -9
- package/dist/commands/shared/{rules.d.ts → books/rules.d.ts} +2 -2
- package/dist/commands/shared/{rules.js → books/rules.js} +5 -5
- package/dist/commands/shared/{system-texts.d.ts → books/system-texts.d.ts} +2 -2
- package/dist/commands/shared/{system-texts.js → books/system-texts.js} +9 -8
- package/dist/commands/shared/{page-words.d.ts → books/words.d.ts} +2 -2
- package/dist/commands/shared/{page-words.js → books/words.js} +4 -4
- package/dist/commands/shared/{checks.d.ts → campaign/checks.d.ts} +3 -3
- package/dist/commands/shared/{checks.js → campaign/checks.js} +7 -7
- package/dist/commands/shared/{images.d.ts → campaign/images.d.ts} +3 -3
- package/dist/commands/shared/{images.js → campaign/images.js} +5 -5
- package/dist/commands/shared/{mode.d.ts → campaign/mode.d.ts} +4 -4
- package/dist/commands/shared/{mode.js → campaign/mode.js} +24 -13
- package/dist/commands/shared/{money.d.ts → campaign/money.d.ts} +3 -3
- package/dist/commands/shared/{money.js → campaign/money.js} +2 -2
- package/dist/commands/shared/{offers.d.ts → campaign/offers.d.ts} +3 -3
- package/dist/commands/shared/{offers.js → campaign/offers.js} +3 -3
- package/dist/commands/shared/{outside.d.ts → campaign/outside.d.ts} +3 -3
- package/dist/commands/shared/{outside.js → campaign/outside.js} +7 -7
- package/dist/commands/shared/{parts.d.ts → campaign/parts.d.ts} +3 -3
- package/dist/commands/shared/{parts.js → campaign/parts.js} +3 -3
- package/dist/commands/shared/{problems.d.ts → campaign/problems.d.ts} +3 -3
- package/dist/commands/shared/{problems.js → campaign/problems.js} +17 -17
- package/dist/commands/shared/{quests.d.ts → campaign/quests.d.ts} +4 -4
- package/dist/commands/shared/{quests.js → campaign/quests.js} +6 -6
- package/dist/commands/shared/{saves.d.ts → campaign/saves.d.ts} +4 -4
- package/dist/commands/shared/{saves.js → campaign/saves.js} +10 -10
- package/dist/commands/shared/{theme.d.ts → campaign/theme.d.ts} +3 -3
- package/dist/commands/shared/{theme.js → campaign/theme.js} +1 -1
- package/dist/commands/shared/{world.d.ts → campaign/world.d.ts} +5 -5
- package/dist/commands/shared/{world.js → campaign/world.js} +17 -14
- package/dist/commands/shared/{knowledge.d.ts → characters/knowledge.d.ts} +3 -3
- package/dist/commands/shared/{knowledge.js → characters/knowledge.js} +4 -4
- package/dist/commands/shared/{moods.d.ts → characters/moods.d.ts} +3 -3
- package/dist/commands/shared/{moods.js → characters/moods.js} +3 -3
- package/dist/commands/shared/characters/orders.d.ts +4 -0
- package/dist/commands/shared/characters/orders.js +10 -0
- package/dist/commands/shared/{thoughts.d.ts → characters/thoughts.d.ts} +9 -6
- package/dist/commands/shared/{thoughts.js → characters/thoughts.js} +17 -7
- package/dist/commands/shared/{voices.d.ts → characters/voices.d.ts} +1 -1
- package/dist/commands/shared/{voices.js → characters/voices.js} +2 -2
- package/dist/commands/shared/examples.js +2 -2
- package/dist/commands/shared/packages/catalog.js +2 -2
- package/dist/commands/shared/packages/code.d.ts +1 -1
- package/dist/commands/shared/packages/code.js +8 -8
- package/dist/commands/shared/packages/extensions.d.ts +1 -1
- package/dist/commands/shared/packages/extensions.js +1 -1
- package/dist/commands/shared/packages/hooks.d.ts +1 -1
- package/dist/commands/shared/packages/hooks.js +1 -1
- package/dist/commands/shared/packages/widgets.d.ts +3 -3
- package/dist/commands/shared/packages/widgets.js +3 -3
- package/dist/commands/shared/{environment.d.ts → places/environment.d.ts} +1 -1
- package/dist/commands/shared/{environment.js → places/environment.js} +4 -4
- package/dist/commands/shared/{grid-moves.d.ts → places/grid-moves.d.ts} +4 -4
- package/dist/commands/shared/{grid-moves.js → places/grid-moves.js} +8 -7
- package/dist/commands/shared/{grids.d.ts → places/grids.d.ts} +4 -4
- package/dist/commands/shared/{grids.js → places/grids.js} +6 -6
- package/dist/commands/shared/{journey.d.ts → places/journey.d.ts} +3 -3
- package/dist/commands/shared/{journey.js → places/journey.js} +6 -6
- package/dist/commands/shared/{moves.d.ts → places/moves.d.ts} +2 -2
- package/dist/commands/shared/{moves.js → places/moves.js} +4 -4
- package/dist/commands/shared/{positions.d.ts → places/positions.d.ts} +2 -2
- package/dist/commands/shared/{positions.js → places/positions.js} +4 -4
- package/dist/commands/shared/{roads.d.ts → places/roads.d.ts} +5 -5
- package/dist/commands/shared/{roads.js → places/roads.js} +6 -6
- package/dist/commands/shared/{effects.d.ts → scene/effects.d.ts} +7 -7
- package/dist/commands/shared/{effects.js → scene/effects.js} +10 -10
- package/dist/commands/shared/{loot.d.ts → scene/loot.d.ts} +2 -2
- package/dist/commands/shared/{loot.js → scene/loot.js} +3 -3
- package/dist/commands/shared/{master-rolls.d.ts → scene/master-rolls.d.ts} +2 -2
- package/dist/commands/shared/{master-rolls.js → scene/master-rolls.js} +5 -5
- package/dist/commands/shared/{reminders.d.ts → scene/reminders.d.ts} +4 -4
- package/dist/commands/shared/{reminders.js → scene/reminders.js} +4 -4
- package/dist/commands/shared/{scene.d.ts → scene/scene.d.ts} +3 -3
- package/dist/commands/shared/{scene.js → scene/scene.js} +10 -8
- package/dist/commands/shared/{bonds.d.ts → sheet/bonds.d.ts} +3 -3
- package/dist/commands/shared/{bonds.js → sheet/bonds.js} +2 -2
- package/dist/commands/shared/{page-counters.d.ts → sheet/counters.d.ts} +3 -3
- package/dist/commands/shared/{page-counters.js → sheet/counters.js} +5 -5
- package/dist/commands/shared/{effect-layer.d.ts → sheet/effect-layer.d.ts} +2 -2
- package/dist/commands/shared/{effect-layer.js → sheet/effect-layer.js} +9 -6
- package/dist/commands/shared/sheet/effect-values.d.ts +9 -0
- package/dist/commands/shared/sheet/effect-values.js +69 -0
- package/dist/commands/shared/{experience.d.ts → sheet/experience.d.ts} +3 -3
- package/dist/commands/shared/{experience.js → sheet/experience.js} +5 -5
- package/dist/commands/shared/sheet/formula-problems.d.ts +8 -0
- package/dist/commands/shared/sheet/formula-problems.js +140 -0
- package/dist/commands/shared/sheet/formula-scope.d.ts +32 -0
- package/dist/commands/shared/sheet/formula-scope.js +235 -0
- package/dist/commands/shared/{limits.d.ts → sheet/limits.d.ts} +3 -3
- package/dist/commands/shared/{limits.js → sheet/limits.js} +5 -4
- package/dist/commands/shared/{progression.d.ts → sheet/progression.d.ts} +2 -2
- package/dist/commands/shared/{progression.js → sheet/progression.js} +4 -4
- package/dist/commands/shared/{sheet.d.ts → sheet/sheet.d.ts} +7 -5
- package/dist/commands/shared/{sheet.js → sheet/sheet.js} +11 -7
- package/dist/commands/shared/{stacks.d.ts → sheet/stacks.d.ts} +2 -2
- package/dist/commands/shared/{stacks.js → sheet/stacks.js} +4 -4
- package/dist/commands/shared/sheet/system-fields.d.ts +21 -0
- package/dist/commands/shared/sheet/system-fields.js +45 -0
- package/dist/commands/shared/{thresholds.d.ts → sheet/thresholds.d.ts} +1 -1
- package/dist/commands/shared/{thresholds.js → sheet/thresholds.js} +4 -4
- package/dist/commands/shared/{turn-uses.d.ts → sheet/turn-uses.d.ts} +3 -3
- package/dist/commands/shared/{turn-uses.js → sheet/turn-uses.js} +4 -3
- package/dist/commands/shared/{worked-out.d.ts → sheet/worked-out.d.ts} +11 -46
- package/dist/commands/shared/sheet/worked-out.js +291 -0
- package/dist/commands/shared/sheet/worked-text.d.ts +14 -0
- package/dist/commands/shared/sheet/worked-text.js +55 -0
- package/dist/commands/shared/{advance.d.ts → time/advance.d.ts} +3 -3
- package/dist/commands/shared/{advance.js → time/advance.js} +11 -11
- package/dist/commands/shared/{dice-pool.d.ts → time/dice-pool.d.ts} +3 -3
- package/dist/commands/shared/{dice-pool.js → time/dice-pool.js} +11 -11
- package/dist/commands/shared/{events.d.ts → time/events.d.ts} +5 -5
- package/dist/commands/shared/{events.js → time/events.js} +10 -13
- package/dist/commands/shared/{recipes.d.ts → time/recipes.d.ts} +3 -3
- package/dist/commands/shared/{recipes.js → time/recipes.js} +6 -5
- package/dist/commands/shared/{time.d.ts → time/time.d.ts} +4 -4
- package/dist/commands/shared/{time.js → time/time.js} +6 -6
- package/dist/commands/shared/{upkeep.d.ts → time/upkeep.d.ts} +3 -3
- package/dist/commands/shared/{upkeep.js → time/upkeep.js} +14 -13
- package/dist/commands/show.d.ts +9 -0
- package/dist/commands/show.js +43 -10
- package/dist/commands/status.d.ts +2 -1
- package/dist/commands/status.js +28 -22
- package/dist/commands/thoughts.d.ts +1 -0
- package/dist/commands/thoughts.js +26 -18
- package/dist/commands/trade.js +8 -8
- package/dist/commands/translate.d.ts +1 -1
- package/dist/commands/translate.js +3 -3
- package/dist/commands/travel/open.d.ts +1 -1
- package/dist/commands/travel/open.js +2 -2
- package/dist/commands/travel/route.js +7 -6
- package/dist/commands/travel/travel.d.ts +1 -1
- package/dist/commands/travel/travel.js +8 -8
- package/dist/commands/validate.js +3 -3
- package/dist/commands/view/journal.d.ts +2 -2
- package/dist/commands/view/journal.js +2 -2
- package/dist/commands/view/layers.d.ts +34 -0
- package/dist/commands/view/layers.js +44 -0
- package/dist/commands/view/map.d.ts +1 -1
- package/dist/commands/view/map.js +6 -6
- package/dist/commands/view/memory.d.ts +16 -0
- package/dist/commands/view/memory.js +96 -0
- package/dist/commands/view/page.d.ts +32 -0
- package/dist/commands/view/page.js +166 -0
- package/dist/commands/view/place.d.ts +7 -2
- package/dist/commands/view/place.js +30 -12
- package/dist/commands/view/result.d.ts +252 -0
- package/dist/commands/view/result.js +1 -0
- package/dist/commands/view/saves.d.ts +6 -0
- package/dist/commands/view/saves.js +53 -0
- package/dist/commands/view/story.d.ts +32 -0
- package/dist/commands/view/story.js +227 -0
- package/dist/commands/view/view.d.ts +29 -292
- package/dist/commands/view/view.js +31 -536
- package/dist/commands/view/world.d.ts +1 -1
- package/dist/commands/view/world.js +3 -3
- package/dist/commands/write/checks.d.ts +42 -0
- package/dist/commands/write/checks.js +291 -0
- package/dist/commands/write/here.d.ts +1 -1
- package/dist/commands/write/here.js +5 -5
- package/dist/commands/write/inheritance.d.ts +40 -0
- package/dist/commands/write/inheritance.js +185 -0
- package/dist/commands/write/input.d.ts +29 -0
- package/dist/commands/write/input.js +124 -0
- package/dist/commands/write/layer.d.ts +44 -0
- package/dist/commands/write/layer.js +68 -0
- package/dist/commands/write/notes.d.ts +22 -0
- package/dist/commands/write/notes.js +76 -0
- package/dist/commands/write/progression.d.ts +27 -0
- package/dist/commands/write/progression.js +175 -0
- package/dist/commands/write/write.d.ts +2 -0
- package/dist/commands/write/write.js +36 -816
- package/dist/core/files.d.ts +2 -0
- package/dist/core/files.js +7 -0
- package/dist/core/{package-declarations.d.ts → packages/declarations.d.ts} +1 -1
- package/dist/core/{package-declarations.js → packages/declarations.js} +1 -1
- package/dist/core/session-store.js +3 -3
- package/dist/core/store.d.ts +2 -2
- package/dist/core/store.js +18 -4
- package/dist/core/text.d.ts +2 -0
- package/dist/core/text.js +4 -0
- package/dist/dashboard/acts/acts.js +1 -1
- package/dist/dashboard/acts/sending.js +110 -0
- package/dist/dashboard/acts/sheet.js +2 -2
- package/dist/dashboard/acts/strip.js +1 -1
- package/dist/dashboard/address.js +6 -0
- package/dist/dashboard/api.js +19 -1
- package/dist/dashboard/app.js +51 -171
- package/dist/dashboard/dice/roller.js +1 -1
- package/dist/dashboard/dice/sets.js +2 -2
- package/dist/dashboard/dice/stage.js +1 -1
- package/dist/dashboard/dice/tray.js +6 -6
- package/dist/dashboard/guide/ar.md +7 -3
- package/dist/dashboard/guide/cs.md +9 -5
- package/dist/dashboard/guide/da.md +9 -5
- package/dist/dashboard/guide/de.md +7 -3
- package/dist/dashboard/guide/el.md +9 -5
- package/dist/dashboard/guide/en.md +4 -0
- package/dist/dashboard/guide/es.md +8 -4
- package/dist/dashboard/guide/fi.md +9 -5
- package/dist/dashboard/guide/fr.md +8 -4
- package/dist/dashboard/guide/he.md +7 -3
- package/dist/dashboard/guide/hi.md +10 -6
- package/dist/dashboard/guide/hu.md +8 -4
- package/dist/dashboard/guide/is.md +9 -5
- package/dist/dashboard/guide/it.md +5 -1
- package/dist/dashboard/guide/ja.md +9 -5
- package/dist/dashboard/guide/ko.md +8 -4
- package/dist/dashboard/guide/nb.md +8 -4
- package/dist/dashboard/guide/nl.md +8 -4
- package/dist/dashboard/guide/pl.md +8 -4
- package/dist/dashboard/guide/pt.md +7 -3
- package/dist/dashboard/guide/ro.md +9 -5
- package/dist/dashboard/guide/ru.md +8 -4
- package/dist/dashboard/guide/sv.md +9 -5
- package/dist/dashboard/guide/tr.md +9 -5
- package/dist/dashboard/guide/uk.md +8 -4
- package/dist/dashboard/guide/zh.md +8 -4
- package/dist/dashboard/help/help.js +3 -3
- package/dist/dashboard/i18n/ar.json +29 -0
- package/dist/dashboard/i18n/cs.json +29 -0
- package/dist/dashboard/i18n/da.json +29 -0
- package/dist/dashboard/i18n/de.json +29 -0
- package/dist/dashboard/i18n/el.json +29 -0
- package/dist/dashboard/i18n/es.json +29 -0
- package/dist/dashboard/i18n/fi.json +29 -0
- package/dist/dashboard/i18n/fr.json +29 -0
- package/dist/dashboard/i18n/he.json +29 -0
- package/dist/dashboard/i18n/hi.json +29 -0
- package/dist/dashboard/i18n/hu.json +29 -0
- package/dist/dashboard/i18n/is.json +29 -0
- package/dist/dashboard/i18n/it.json +29 -0
- package/dist/dashboard/i18n/ja.json +30 -1
- package/dist/dashboard/i18n/ko.json +29 -0
- package/dist/dashboard/i18n/nb.json +29 -0
- package/dist/dashboard/i18n/nl.json +29 -0
- package/dist/dashboard/i18n/pl.json +29 -0
- package/dist/dashboard/i18n/pt.json +29 -0
- package/dist/dashboard/i18n/ro.json +29 -0
- package/dist/dashboard/i18n/ru.json +29 -0
- package/dist/dashboard/i18n/sv.json +29 -0
- package/dist/dashboard/i18n/tr.json +29 -0
- package/dist/dashboard/i18n/uk.json +29 -0
- package/dist/dashboard/i18n/zh.json +29 -0
- package/dist/dashboard/{journal.js → journal/journal.js} +16 -16
- package/dist/dashboard/{notes.js → journal/notes.js} +4 -4
- package/dist/dashboard/kit.js +3 -3
- package/dist/dashboard/packages/ask-card.js +3 -3
- package/dist/dashboard/packages/catalog.js +196 -0
- package/dist/dashboard/packages/changes.js +111 -0
- package/dist/dashboard/packages/engine.js +87 -0
- package/dist/dashboard/packages/installed.js +53 -0
- package/dist/dashboard/packages/library.js +97 -0
- package/dist/dashboard/packages/outcomes.js +45 -0
- package/dist/dashboard/packages/packages.js +27 -578
- package/dist/dashboard/packages/page-code.js +15 -2
- package/dist/dashboard/packages/{package-page.js → page.js} +12 -5
- package/dist/dashboard/packages/rows.js +84 -0
- package/dist/dashboard/packages/share.js +44 -0
- package/dist/dashboard/packages/widgets.js +3 -3
- package/dist/dashboard/{card.js → parts/card.js} +1 -1
- package/dist/dashboard/parts/changed.js +37 -0
- package/dist/dashboard/{faces.js → parts/faces.js} +5 -5
- package/dist/dashboard/{game-words.js → parts/game-words.js} +1 -1
- package/dist/dashboard/{icons.js → parts/icons.js} +1 -1
- package/dist/dashboard/{labels.js → parts/labels.js} +2 -1
- package/dist/dashboard/{map-symbols.js → parts/map-symbols.js} +1 -1
- package/dist/dashboard/{markdown.js → parts/markdown.js} +2 -2
- package/dist/dashboard/{mood.js → parts/mood.js} +1 -1
- package/dist/dashboard/{refusals.js → parts/refusals.js} +5 -1
- package/dist/dashboard/{status.js → parts/status.js} +4 -4
- package/dist/dashboard/{widgets.js → parts/widgets.js} +5 -3
- package/dist/dashboard/place/key.js +24 -0
- package/dist/dashboard/place/paper.js +67 -0
- package/dist/dashboard/place/{map-sheet.js → sheet.js} +2 -2
- package/dist/dashboard/place/things.js +129 -0
- package/dist/dashboard/place/tokens.js +93 -0
- package/dist/dashboard/place/view.js +124 -0
- package/dist/dashboard/{asked-dice.js → play/asked-dice.js} +3 -3
- package/dist/dashboard/{asked.js → play/asked.js} +10 -10
- package/dist/dashboard/{choices.js → play/choices.js} +11 -10
- package/dist/dashboard/{requested.js → play/requested.js} +1 -1
- package/dist/dashboard/{rolls.js → play/rolls.js} +9 -9
- package/dist/dashboard/{scene.js → play/scene.js} +14 -14
- package/dist/dashboard/{turns.js → play/turns.js} +12 -12
- package/dist/dashboard/{language-choice.js → settings/language-choice.js} +1 -1
- package/dist/dashboard/{languages.js → settings/languages.js} +1 -1
- package/dist/dashboard/{saves.js → settings/saves.js} +8 -8
- package/dist/dashboard/{settings.js → settings/settings.js} +17 -15
- package/dist/dashboard/{setup.js → settings/setup.js} +5 -5
- package/dist/dashboard/{party.js → sheet/party.js} +8 -8
- package/dist/dashboard/{person-panel.js → sheet/person-panel.js} +4 -4
- package/dist/dashboard/{sheet.js → sheet/sheet.js} +27 -24
- package/dist/dashboard/{story.js → sheet/story.js} +3 -3
- package/dist/dashboard/{columns.js → shell/columns.js} +1 -1
- package/dist/dashboard/{footer.js → shell/footer.js} +3 -3
- package/dist/dashboard/{master.js → shell/master.js} +2 -2
- package/dist/dashboard/{notices.js → shell/notices.js} +3 -3
- package/dist/dashboard/{pages.js → shell/pages.js} +5 -5
- package/dist/dashboard/shell/shown.js +38 -0
- package/dist/dashboard/{table.js → shell/table.js} +2 -2
- package/dist/dashboard/{tabs.js → shell/tabs.js} +2 -2
- package/dist/dashboard/{top.js → shell/top.js} +7 -7
- package/dist/dashboard/style.css +288 -4
- package/dist/dashboard/world/calendar.js +4 -4
- package/dist/dashboard/world/drawing.js +92 -0
- package/dist/dashboard/world/key.js +21 -0
- package/dist/dashboard/world/lore.js +10 -6
- package/dist/dashboard/world/map-card.js +186 -0
- package/dist/dashboard/world/place-card.js +39 -0
- package/dist/dashboard/world/places.js +29 -0
- package/dist/dashboard/world/world.js +9 -341
- package/dist/extensions/extension.d.ts +1 -1
- package/dist/extensions/extension.js +1 -1
- package/dist/images/images.js +12 -9
- package/dist/index.d.ts +1 -1
- package/dist/languages/index.d.ts +1 -1
- package/dist/languages/index.js +1 -1
- package/dist/packages/npm.js +1 -1
- package/dist/page.d.ts +2 -2
- package/dist/page.js +1 -1
- package/dist/pages/check.js +23 -1
- package/dist/pages/containers.d.ts +1 -1
- package/dist/pages/containers.js +1 -1
- package/dist/pages/index.d.ts +4 -2
- package/dist/pages/index.js +4 -2
- package/dist/pages/inheritance.d.ts +2 -2
- package/dist/pages/layers.d.ts +52 -0
- package/dist/pages/layers.js +105 -0
- package/dist/pages/markdown.d.ts +5 -1
- package/dist/pages/markdown.js +13 -1
- package/dist/pages/rename-page.js +1 -1
- package/dist/pages/stacks/writes.js +48 -22
- package/dist/pages/standard-fields.d.ts +1 -1
- package/dist/pages/system-pages.d.ts +5 -3
- package/dist/pages/system-pages.js +16 -7
- package/dist/pages/world.d.ts +8 -1
- package/dist/pages/world.js +16 -4
- package/dist/pages/write-layer.d.ts +23 -0
- package/dist/pages/write-layer.js +162 -0
- package/dist/pages/write-page.d.ts +2 -2
- package/dist/pages/write-page.js +2 -2
- package/dist/rules/index.d.ts +1 -1
- package/dist/rules/index.js +1 -1
- package/dist/rules/search.d.ts +1 -1
- package/dist/rules/shown.d.ts +1 -1
- package/dist/server/dashboard/choices.d.ts +2 -0
- package/dist/server/dashboard/choices.js +6 -4
- package/dist/server/dashboard/files.js +5 -5
- package/dist/server/dashboard/index.d.ts +2 -2
- package/dist/server/dashboard/index.js +7 -3
- package/dist/server/dashboard/news.js +4 -3
- package/dist/server/dashboard/player.js +1 -1
- package/dist/server/dashboard/writes.d.ts +7 -0
- package/dist/server/dashboard/writes.js +48 -7
- package/dist/server/mcp.js +28 -13
- package/dist/systems/campaign-data.d.ts +15 -0
- package/dist/systems/campaign-data.js +85 -0
- package/dist/systems/{system-code.d.ts → code.d.ts} +1 -1
- package/dist/systems/{system-code.js → code.js} +2 -2
- package/dist/systems/game-system.d.ts +7 -61
- package/dist/systems/game-system.js +1 -984
- package/dist/systems/index.d.ts +6 -3
- package/dist/systems/index.js +6 -3
- package/dist/systems/installed.d.ts +31 -0
- package/dist/systems/installed.js +89 -0
- package/dist/systems/maps.d.ts +3 -0
- package/dist/systems/maps.js +9 -0
- package/dist/systems/read.d.ts +3 -0
- package/dist/systems/read.js +471 -0
- package/dist/systems/schema.d.ts +289 -0
- package/dist/systems/schema.js +243 -0
- package/dist/systems/settings.d.ts +19 -0
- package/dist/systems/settings.js +78 -0
- package/dist/systems/versions.d.ts +12 -0
- package/dist/systems/versions.js +52 -0
- package/dist/testing/index.js +1 -1
- package/instructions/import.md +1 -1
- package/instructions/play.md +1 -1
- package/instructions/voices.md +1 -1
- package/package.json +1 -1
- package/dist/commands/config.js +0 -948
- package/dist/commands/package.d.ts +0 -143
- package/dist/commands/package.js +0 -785
- package/dist/commands/scene.js +0 -894
- package/dist/commands/shared/worked-out.js +0 -805
- package/dist/dashboard/place/map-view.js +0 -417
- /package/dist/commands/shared/{library-reader.d.ts → books/library-reader.d.ts} +0 -0
- /package/dist/core/{package-api.d.ts → packages/api.d.ts} +0 -0
- /package/dist/core/{package-api.js → packages/api.js} +0 -0
- /package/dist/dashboard/{coins.js → parts/coins.js} +0 -0
- /package/dist/dashboard/{glass.js → parts/glass.js} +0 -0
- /package/dist/dashboard/{layout.js → parts/layout.js} +0 -0
- /package/dist/dashboard/{mood-faces.js → parts/mood-faces.js} +0 -0
- /package/dist/dashboard/{free-rolls.js → play/free-rolls.js} +0 -0
- /package/dist/dashboard/{reactions.js → play/reactions.js} +0 -0
- /package/dist/dashboard/{prefs.js → shell/prefs.js} +0 -0
- /package/dist/dashboard/{system-style.js → shell/system-style.js} +0 -0
- /package/dist/dashboard/{theme.js → shell/theme.js} +0 -0
- /package/dist/languages/{language-pack.d.ts → pack.d.ts} +0 -0
- /package/dist/languages/{language-pack.js → pack.js} +0 -0
- /package/dist/pages/{page-file.d.ts → file.d.ts} +0 -0
- /package/dist/pages/{page-file.js → file.js} +0 -0
- /package/dist/pages/{page-types.d.ts → types.d.ts} +0 -0
- /package/dist/pages/{page-types.js → types.js} +0 -0
- /package/dist/rules/{rule-book.d.ts → book.d.ts} +0 -0
- /package/dist/rules/{rule-book.js → book.js} +0 -0
- /package/dist/systems/{system-folders.d.ts → folders.d.ts} +0 -0
- /package/dist/systems/{system-folders.js → folders.js} +0 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
// What each player setting and setup question is, in the player's words
|
|
2
|
+
import { characterWays, companionWays, customLevel, diceWays, difficulties, efforts, lengths, lethalities, listLimits, masterRollWays, mentorWays, pictureWays, preparations, proseWays, rigors, saveModes, storyWays, styleTextLengths, unitSystems, voiceWays, } from "../../campaign/index.js";
|
|
3
|
+
export const styleSettingNames = ["prose", "story", "author", "style"];
|
|
4
|
+
// The game time between sessions the dashboard offers (D-133): stopped, a day of the game for each real week, or as real time.
|
|
5
|
+
export const betweenSessionsWays = ["stops", "1d per 7d", "1d per 1d"];
|
|
6
|
+
/** 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. */
|
|
7
|
+
export const playerSettingNames = [
|
|
8
|
+
"difficulty",
|
|
9
|
+
"custom-difficulty",
|
|
10
|
+
"lethality",
|
|
11
|
+
"saves",
|
|
12
|
+
"rigor",
|
|
13
|
+
"custom-rigor",
|
|
14
|
+
"between-sessions",
|
|
15
|
+
"mentor",
|
|
16
|
+
"learned",
|
|
17
|
+
"prose",
|
|
18
|
+
"story",
|
|
19
|
+
"author",
|
|
20
|
+
"style",
|
|
21
|
+
"dice",
|
|
22
|
+
"master-rolls",
|
|
23
|
+
"units",
|
|
24
|
+
"voices",
|
|
25
|
+
"pictures",
|
|
26
|
+
"effort",
|
|
27
|
+
"lines",
|
|
28
|
+
"veils",
|
|
29
|
+
"orders",
|
|
30
|
+
"language",
|
|
31
|
+
];
|
|
32
|
+
// What each of the player's settings is, and what its values mean to the player, in their words rather than the master's.
|
|
33
|
+
export const playerWords = {
|
|
34
|
+
difficulty: {
|
|
35
|
+
about: "how hard the world plays",
|
|
36
|
+
values: [...difficulties, customLevel],
|
|
37
|
+
means: {
|
|
38
|
+
story: "fights low, foes naive, clues obvious, resources plentiful",
|
|
39
|
+
easy: "fights low to moderate, simple foes, resources generous",
|
|
40
|
+
normal: "fights moderate to high, sensible foes, resources standard",
|
|
41
|
+
hard: "fights high, smart and tenacious foes, resources scarce",
|
|
42
|
+
brutal: "fights far beyond, optimized and fanatical foes, resources very scarce",
|
|
43
|
+
custom: "each part at its own level, chosen below",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
"custom-difficulty": { about: "how hard each part of the world plays", values: difficulties },
|
|
47
|
+
lethality: { about: "what a fall means", values: lethalities, means: { narrative: "your character never dies", epic: "your character dies only when it matters", dice: "the dice decide" } },
|
|
48
|
+
saves: {
|
|
49
|
+
about: "when the game may go back",
|
|
50
|
+
values: saveModes,
|
|
51
|
+
means: { permadeath: "never: what happens stays; only starting the campaign over", checkpoint: "if your character dies: back to the end of the last scene", free: "back to any save, and a save whenever you ask" },
|
|
52
|
+
},
|
|
53
|
+
rigor: {
|
|
54
|
+
about: "how closely food, light, fatigue and the like follow the rules",
|
|
55
|
+
values: [...rigors, customLevel],
|
|
56
|
+
means: {
|
|
57
|
+
smooth: "only when the story turns on them",
|
|
58
|
+
rules: "as written: food and water each day, light as it burns, fatigue and encumbrance",
|
|
59
|
+
simulation: "as written, and beyond: wear, spoilage, weather",
|
|
60
|
+
custom: "each part at its own level, chosen below",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
"custom-rigor": { about: "how closely each part follows the rules", values: rigors },
|
|
64
|
+
// The few rates the dashboard offers (D-133); one written in the chat or by hand shows as it is, beside them.
|
|
65
|
+
"between-sessions": {
|
|
66
|
+
about: "whether the story's time runs while you are away, from one session to the next",
|
|
67
|
+
values: betweenSessionsWays,
|
|
68
|
+
means: {
|
|
69
|
+
stops: "the world waits for you: the story picks up at the moment you left it",
|
|
70
|
+
"1d per 7d": "a day of the story for each week you are away: when you come back, at your first move the master lets it pass and tells what the world did meanwhile",
|
|
71
|
+
"1d per 1d": "a day of the story for each day you are away: when you come back, at your first move the master lets it pass and tells what the world did meanwhile",
|
|
72
|
+
},
|
|
73
|
+
unset: "stops",
|
|
74
|
+
},
|
|
75
|
+
mentor: {
|
|
76
|
+
about: "how much the master teaches the game, out of the story",
|
|
77
|
+
values: mentorWays,
|
|
78
|
+
means: {
|
|
79
|
+
off: "only the story; ask in brackets whenever you want",
|
|
80
|
+
hints: "a short note before big choices and when a rule slips by",
|
|
81
|
+
tutorial: "each rule explained the first time, the numbers shown, a short review after fights",
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
learned: {
|
|
85
|
+
about: "what the master has explained: take one off to have it explained again",
|
|
86
|
+
added: "they know it already: no need to explain it",
|
|
87
|
+
takenOff: "explain it again the next time it comes up",
|
|
88
|
+
},
|
|
89
|
+
prose: {
|
|
90
|
+
about: "how the master writes",
|
|
91
|
+
values: proseWays,
|
|
92
|
+
unset: "plain",
|
|
93
|
+
means: {
|
|
94
|
+
plain: "short sentences, one concrete detail at a time",
|
|
95
|
+
literary: "more room at the high points, images and subtext",
|
|
96
|
+
pulp: "tense action, strong colours, each message ending on a threat or a hook",
|
|
97
|
+
wry: "a narrator with a half smile at the world, never at your character",
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
story: {
|
|
101
|
+
about: "how the master builds the stories they invent; a written adventure keeps its own",
|
|
102
|
+
values: storyWays,
|
|
103
|
+
unset: "situations",
|
|
104
|
+
means: {
|
|
105
|
+
situations: "factions, threats and places with secrets, no main plot: you choose where to go",
|
|
106
|
+
arcs: "a central threat that advances by stages, your character's own story woven in",
|
|
107
|
+
episodes: "a story that closes each session, with a thread that comes back",
|
|
108
|
+
mystery: "every story an investigation, its truth decided before you start",
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
author: {
|
|
112
|
+
about: "an author the master writes like: their way of telling, never their sentences, names or places",
|
|
113
|
+
most: styleTextLengths.author,
|
|
114
|
+
cleared: "write as the prose setting says again",
|
|
115
|
+
},
|
|
116
|
+
style: {
|
|
117
|
+
about: "your own wishes for how the master writes, in a few words, such as third person, past tense",
|
|
118
|
+
most: styleTextLengths.style,
|
|
119
|
+
cleared: "their own words on how you write no longer hold",
|
|
120
|
+
},
|
|
121
|
+
dice: { about: "who rolls your character's dice", values: diceWays, means: { digital: "the engine rolls them", physical: "you roll your own and tell the values" } },
|
|
122
|
+
"master-rolls": {
|
|
123
|
+
about: "the master's rolls for foes and the characters you meet; yours and your companions' are always in view",
|
|
124
|
+
values: masterRollWays,
|
|
125
|
+
means: { "behind the screen": "hidden: the master tells you only what comes of them", "in view": "shown among the rolls, beside yours" },
|
|
126
|
+
unset: "behind the screen",
|
|
127
|
+
},
|
|
128
|
+
units: { about: "the units of the story", values: unitSystems, means: { metric: "metres and kilometres", imperial: "feet and miles" } },
|
|
129
|
+
voices: {
|
|
130
|
+
about: "who speaks for the characters you meet",
|
|
131
|
+
values: voiceWays,
|
|
132
|
+
means: {
|
|
133
|
+
master: "the master, always",
|
|
134
|
+
auto: "at key moments, as the master chooses, the character themselves, knowing only what they know, where your AI app can",
|
|
135
|
+
important: "always the character themselves for your companions and the main characters, the others only at key moments: slower answers, and more of your plan",
|
|
136
|
+
always: "always the character themselves, for everyone: much slower answers, and much more of your plan",
|
|
137
|
+
},
|
|
138
|
+
unset: "auto",
|
|
139
|
+
},
|
|
140
|
+
pictures: {
|
|
141
|
+
about: "the pictures of places, quests and those you meet, made on this computer",
|
|
142
|
+
values: pictureWays,
|
|
143
|
+
means: { none: "no pictures", "on request": "those you ask for", "new elements": "one for each new place and quest, and for each one you meet" },
|
|
144
|
+
},
|
|
145
|
+
effort: {
|
|
146
|
+
about: "how much the master thinks before each answer, from the next chat",
|
|
147
|
+
values: [...efforts, "app"],
|
|
148
|
+
means: { low: "quicker answers, a little less thought", medium: "the usual balance", high: "slower answers, more thought", app: "your AI app decides, as it does in any chat" },
|
|
149
|
+
unset: "app",
|
|
150
|
+
},
|
|
151
|
+
lines: { about: "what never appears in the game" },
|
|
152
|
+
veils: { about: "what happens only off screen, without details" },
|
|
153
|
+
// The standing orders, always before the master: their longest item, which the page's field keeps to (D-563).
|
|
154
|
+
orders: {
|
|
155
|
+
about: "the orders you give your companions, kept until you lift one",
|
|
156
|
+
added: "the companions keep it from now on, as their pages allow",
|
|
157
|
+
takenOff: "the companions no longer keep it",
|
|
158
|
+
most: listLimits.orders?.length,
|
|
159
|
+
},
|
|
160
|
+
language: { about: "the language the master plays in, and the page's too when it is translated" },
|
|
161
|
+
};
|
|
162
|
+
// What the setup asks besides the player's settings (D-370): how the player character and the companions come, how far ahead a world is made and how long it
|
|
163
|
+
// plays, the campaign's name.
|
|
164
|
+
export const setupWords = {
|
|
165
|
+
companions: {
|
|
166
|
+
about: "how companions come to your side",
|
|
167
|
+
values: companionWays,
|
|
168
|
+
means: {
|
|
169
|
+
none: "you play alone",
|
|
170
|
+
"made with the player": "you make them with the master in session zero",
|
|
171
|
+
"made by the master": "the master makes them in session zero",
|
|
172
|
+
"met in play": "you meet them in the story",
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
preparation: {
|
|
176
|
+
about: "how far ahead the master makes the world",
|
|
177
|
+
values: preparations,
|
|
178
|
+
means: { "on the fly": "just before it is needed, so the story can go anywhere", "all at the start": "all of it before the first scene" },
|
|
179
|
+
},
|
|
180
|
+
length: {
|
|
181
|
+
about: "how long the story you play lasts; at its end you can always go on",
|
|
182
|
+
values: lengths,
|
|
183
|
+
means: {
|
|
184
|
+
"one evening": "one adventure that begins and ends in an evening",
|
|
185
|
+
"a few sessions": "an adventure of three to five evenings",
|
|
186
|
+
open: "a campaign with no set end, one adventure after another",
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
character: {
|
|
190
|
+
about: "how your character is made in session zero",
|
|
191
|
+
values: characterWays,
|
|
192
|
+
means: {
|
|
193
|
+
"made with the player": "you make it with the master, choice by choice",
|
|
194
|
+
"made by the master": "the master makes it from a few words of yours",
|
|
195
|
+
"the player's own": "you bring one you already have, as a sheet, a file or a description, at its level",
|
|
196
|
+
},
|
|
197
|
+
labels: { "made with the player": "With the master", "made by the master": "The master makes it", "the player's own": "I already have one" },
|
|
198
|
+
},
|
|
199
|
+
name: { about: "the campaign's name" },
|
|
200
|
+
};
|
|
201
|
+
/** What a setting of the player's is to them and to the master, by its name; undefined for one of the game system. */
|
|
202
|
+
export function wordsOf(name) {
|
|
203
|
+
return Object.hasOwn(playerWords, name) ? playerWords[name] : undefined;
|
|
204
|
+
}
|
package/dist/commands/effect.js
CHANGED
|
@@ -8,17 +8,17 @@ import { readCounter } from "../counters/index.js";
|
|
|
8
8
|
import { effectNamed, formatEffect, formatEnd, isSceneDuration, readEffect, readRounds, withEffect } from "../effects/index.js";
|
|
9
9
|
import { concernsPlayer, declaredKind, environmentAt, isDeclaredUncounted, isKind, isNeverInherited, isStandardField, parsePageReference, readFieldValue, textsIn } from "../pages/index.js";
|
|
10
10
|
import { addDuration, formatGameDate, readDuration } from "../time/index.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { houseRules, ruleBlock, ruleTitled } from "./shared/books/rules.js";
|
|
12
|
+
import { campaignSystem, campaignWorld, missingSystemHint, occasionsOf } from "./shared/campaign/world.js";
|
|
13
13
|
import { fieldValues } from "./shared/inputs.js";
|
|
14
14
|
import { allSaid, packagesEffectAdded } from "./shared/packages/hooks.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { checkNotSystemPage, pageOrCopy, readOpenScene } from "./shared/scene.js";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
15
|
+
import { checkEffectsReadable, endEffects, keptBy, saveEffects, systemNamed } from "./shared/scene/effects.js";
|
|
16
|
+
import { keepingConditionNote, secondKeptNote } from "./shared/scene/reminders.js";
|
|
17
|
+
import { checkNotSystemPage, pageOrCopy, readOpenScene } from "./shared/scene/scene.js";
|
|
18
|
+
import { effectGiving, effectiveFields, effectsOf, valuesChanged, withEffects } from "./shared/sheet/effect-layer.js";
|
|
19
|
+
import { aloneNote, computedField, counterLimits, directBonuses, itemSource, maximumSources } from "./shared/sheet/worked-out.js";
|
|
20
|
+
import { newDatedLogEntry, presentDate } from "./shared/time/time.js";
|
|
21
|
+
import { burning, burnOne } from "./shared/time/upkeep.js";
|
|
22
22
|
const actions = ["add", "end"];
|
|
23
23
|
export const effect = defineCommand({
|
|
24
24
|
name: "effect",
|
package/dist/commands/find.js
CHANGED
|
@@ -2,8 +2,8 @@ import { z } from "zod";
|
|
|
2
2
|
import { requireCampaign } from "../campaign/index.js";
|
|
3
3
|
import { defineCommand } from "../core/registry.js";
|
|
4
4
|
import { pageTypeNames, searchPages, searchSystemPages } from "../pages/index.js";
|
|
5
|
+
import { campaignWorld, foreignSystemLanguage, systemSearchHint } from "./shared/campaign/world.js";
|
|
5
6
|
import { skippedPagesNote } from "./shared/notes.js";
|
|
6
|
-
import { campaignWorld, foreignSystemLanguage, systemSearchHint } from "./shared/world.js";
|
|
7
7
|
// The pages of the game system that find lists for one text; the others are counted.
|
|
8
8
|
const listedSystemPages = 10;
|
|
9
9
|
export const find = defineCommand({
|
package/dist/commands/image.js
CHANGED
|
@@ -7,12 +7,12 @@ import { files, isInside } from "../core/store.js";
|
|
|
7
7
|
import { comparableText, withArticle } from "../core/text.js";
|
|
8
8
|
import { imageFileName, imageLink, imagesFolderName, readImage } from "../images/index.js";
|
|
9
9
|
import { baseChain, findPage, isPartyMember, ownField, pageNamed, parsePageReference, writePage } from "../pages/index.js";
|
|
10
|
-
import { imageFile, ownImage } from "./shared/images.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
10
|
+
import { imageFile, ownImage } from "./shared/campaign/images.js";
|
|
11
|
+
import { campaignSystem, campaignWorld } from "./shared/campaign/world.js";
|
|
12
|
+
import { knowsPage, playerKnowledge } from "./shared/characters/knowledge.js";
|
|
13
|
+
import { readOpenScene } from "./shared/scene/scene.js";
|
|
14
|
+
import { sheetHeadline } from "./shared/sheet/sheet.js";
|
|
15
|
+
import { newDatedLogEntry } from "./shared/time/time.js";
|
|
16
16
|
export const image = defineCommand({
|
|
17
17
|
name: "image",
|
|
18
18
|
description: "Give a page its picture: a portrait for a character, an image for a creature, an item or a place, as the dashboard will show it in a round token. "
|
|
@@ -31,8 +31,6 @@ export declare const importCommand: import("../../core/registry.ts").Command<z.Z
|
|
|
31
31
|
start: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
|
|
32
32
|
cancel: z.ZodOptional<z.ZodBoolean>;
|
|
33
33
|
}, z.core.$strip>, ImportResult>;
|
|
34
|
-
/** The import as the master reads it: how far it is, what to tell the player, and what comes next. */
|
|
35
|
-
export declare function importText(result: ImportResult): string;
|
|
36
34
|
/** An import under way as the dashboard tells it (D-491 (11)): what it is doing, and how far; while its document is opened, its pages read by the OCR. */
|
|
37
35
|
export interface ShownImport {
|
|
38
36
|
title: string;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { basename, extname, join, relative, resolve, sep } from "node:path";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { adventureFolderName } from "../../adventures/index.js";
|
|
3
|
+
import { adventureFolderName, isAdventureFolder, readAdventureZip } from "../../adventures/index.js";
|
|
4
4
|
import { changeSetting, readSettings, requireCampaign, storyWays } from "../../campaign/index.js";
|
|
5
5
|
import { appendLogEntry } from "../../core/log.js";
|
|
6
|
+
import { Refusal } from "../../core/refusal.js";
|
|
6
7
|
import { defineCommand } from "../../core/registry.js";
|
|
8
|
+
import { files } from "../../core/store.js";
|
|
7
9
|
import { documentAt, readDocument } from "../../documents/index.js";
|
|
8
10
|
import { stopProcess } from "../../helpers/index.js";
|
|
9
11
|
import { beginOpening, clearOpening, doneImports, dropDocumentText, dropImport, hasImport, importAge, importDate, importedPages, importFile, importFolder, importPiece, importStarts, importStyle, isOwnOpening, markOpening, openImport, openingImport, prepareImport, readImportState, runElsewhere, writeImportState, } from "../../importer/index.js";
|
|
10
|
-
import { installedAdventures } from "../shared/adventures.js";
|
|
11
|
-
import { campaignMode } from "../shared/mode.js";
|
|
12
|
-
import { situationPart } from "../shared/parts.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
12
|
+
import { installedAdventures } from "../shared/books/adventures.js";
|
|
13
|
+
import { campaignMode } from "../shared/campaign/mode.js";
|
|
14
|
+
import { situationPart } from "../shared/campaign/parts.js";
|
|
15
|
+
import { campaignSystem, campaignWorld } from "../shared/campaign/world.js";
|
|
16
|
+
import { newDatedLogEntry } from "../shared/time/time.js";
|
|
15
17
|
import { isImportRunning, runImport, stopImport, writingState } from "./run.js";
|
|
16
18
|
export const importCommand = defineCommand({
|
|
17
19
|
name: "import",
|
|
@@ -81,44 +83,6 @@ export const importCommand = defineCommand({
|
|
|
81
83
|
// A document read from its pictures is told first, for the master to tell the player before anything else (LIB-4).
|
|
82
84
|
format: (result) => [recognizedText(result.recognized), helperText(result.helper), importText(result)].filter((part) => part !== "").join("\n\n"),
|
|
83
85
|
});
|
|
84
|
-
/** The import as the master reads it: how far it is, what to tell the player, and what comes next. */
|
|
85
|
-
export function importText(result) {
|
|
86
|
-
const { state } = result;
|
|
87
|
-
const pages = Object.entries(result.pages).map(([type, count]) => `${count} ${type}`).join(", ");
|
|
88
|
-
if (result.cancelled === true) {
|
|
89
|
-
return `The import of ${state.title} is dropped, with what it wrote.`;
|
|
90
|
-
}
|
|
91
|
-
if (result.piece !== undefined) {
|
|
92
|
-
return chatPieceText(state, result.piece);
|
|
93
|
-
}
|
|
94
|
-
if (state.failed !== undefined && !result.running) {
|
|
95
|
-
const said = state.failed.replace(/\.$/, "");
|
|
96
|
-
return `The import of ${state.title} stopped: ${said}.${/call import|cancel/i.test(said) ? "" : " Call import to try again from there."}`;
|
|
97
|
-
}
|
|
98
|
-
if (state.phase === "reading") {
|
|
99
|
-
const minutes = Math.max(1, (state.pieces - state.done) * 4);
|
|
100
|
-
return `Importing ${state.title}: piece ${Math.min(state.done + 1, state.pieces)} of ${state.pieces} being read${result.pictures === undefined ? "" : `, ${result.pictures} pictures found`}; `
|
|
101
|
-
+ `about ${minutes} minutes more, by itself${pages === "" ? "" : `; pages so far: ${pages}`}. Tell the player, then end your turn and go on with them, the setup or the character: never wait for it in your turn; status says when it is ready.`;
|
|
102
|
-
}
|
|
103
|
-
if (state.phase === "choosing") {
|
|
104
|
-
const starts = result.starts.map((start) => `${start.number}. ${start.title}\n${start.text}`).join("\n\n");
|
|
105
|
-
return `${state.title} is read (${pages}). Ask the player whether they have read it; give each start its Back cover lines if not, its Reader line if so, `
|
|
106
|
-
+ `and the character they would play. Then call import with the start they choose and the character they play.\n\n${starts}`;
|
|
107
|
-
}
|
|
108
|
-
if (state.phase === "writing") {
|
|
109
|
-
return `Setting ${state.title} at start ${state.start}: step ${Math.min(state.done + 1, state.steps?.length ?? 1)} of ${state.steps?.length ?? 1}, by itself; `
|
|
110
|
-
+ "status says when it is ready.";
|
|
111
|
-
}
|
|
112
|
-
return `${state.title} is ready: ${pages}, in ${result.adventure}. Install it with package install "${result.adventure}" when the story reaches it, at the setup if it is the start. `
|
|
113
|
-
+ "What its pages say of the world stays so: find before you invent, and invent only where they are silent."
|
|
114
|
-
+ (result.invented === undefined ? "" : `\nTell the player what was invented to fill the gaps:\n${result.invented}`)
|
|
115
|
-
+ followedText(state.followed)
|
|
116
|
-
+ (state.dated === undefined
|
|
117
|
-
? ""
|
|
118
|
-
: state.dated.set
|
|
119
|
-
? `\nThe story starts on ${state.dated.date}, as the book's: calendar-start is set to it.`
|
|
120
|
-
: `\nThe book starts on ${state.dated.date}: ask the player whether the story should, then config calendar-start ${state.dated.date}.`);
|
|
121
|
-
}
|
|
122
86
|
/** The import under way as the dashboard tells it, if one is: from the document being opened to the world being written. */
|
|
123
87
|
export function importShown(root) {
|
|
124
88
|
const opening = openingImport(root);
|
|
@@ -169,11 +133,52 @@ export function importLine(root) {
|
|
|
169
133
|
const told = `Import of ${state.title}: ${state.phase}, ${state.done} of ${state.phase === "reading" ? state.pieces : (state.steps?.length ?? 1)} done`;
|
|
170
134
|
return running ? `${told}.` : `${told}; call import to go on.`;
|
|
171
135
|
}
|
|
136
|
+
/** The import as the master reads it: how far it is, what to tell the player, and what comes next. */
|
|
137
|
+
function importText(result) {
|
|
138
|
+
const { state } = result;
|
|
139
|
+
const pages = Object.entries(result.pages).map(([type, count]) => `${count} ${type}`).join(", ");
|
|
140
|
+
if (result.cancelled === true) {
|
|
141
|
+
return `The import of ${state.title} is dropped, with what it wrote.`;
|
|
142
|
+
}
|
|
143
|
+
if (result.piece !== undefined) {
|
|
144
|
+
return chatPieceText(state, result.piece);
|
|
145
|
+
}
|
|
146
|
+
if (state.failed !== undefined && !result.running) {
|
|
147
|
+
const said = state.failed.replace(/\.$/, "");
|
|
148
|
+
return `The import of ${state.title} stopped: ${said}.${/call import|cancel/i.test(said) ? "" : " Call import to try again from there."}`;
|
|
149
|
+
}
|
|
150
|
+
if (state.phase === "reading") {
|
|
151
|
+
const minutes = Math.max(1, (state.pieces - state.done) * 4);
|
|
152
|
+
return `Importing ${state.title}: piece ${Math.min(state.done + 1, state.pieces)} of ${state.pieces} being read${result.pictures === undefined ? "" : `, ${result.pictures} pictures found`}; `
|
|
153
|
+
+ `about ${minutes} minutes more, by itself${pages === "" ? "" : `; pages so far: ${pages}`}. Tell the player, then end your turn and go on with them, the setup or the character: never wait for it in your turn; status says when it is ready.`;
|
|
154
|
+
}
|
|
155
|
+
if (state.phase === "choosing") {
|
|
156
|
+
const starts = result.starts.map((start) => `${start.number}. ${start.title}\n${start.text}`).join("\n\n");
|
|
157
|
+
return `${state.title} is read (${pages}). Ask the player whether they have read it; give each start its Back cover lines if not, its Reader line if so, `
|
|
158
|
+
+ `and the character they would play. Then call import with the start they choose and the character they play.\n\n${starts}`;
|
|
159
|
+
}
|
|
160
|
+
if (state.phase === "writing") {
|
|
161
|
+
return `Setting ${state.title} at start ${state.start}: step ${Math.min(state.done + 1, state.steps?.length ?? 1)} of ${state.steps?.length ?? 1}, by itself; `
|
|
162
|
+
+ "status says when it is ready.";
|
|
163
|
+
}
|
|
164
|
+
return `${state.title} is ready: ${pages}, in ${result.adventure}. Install it with package install "${result.adventure}" when the story reaches it, at the setup if it is the start. `
|
|
165
|
+
+ "What its pages say of the world stays so: find before you invent, and invent only where they are silent."
|
|
166
|
+
+ (result.invented === undefined ? "" : `\nTell the player what was invented to fill the gaps:\n${result.invented}`)
|
|
167
|
+
+ followedText(state.followed)
|
|
168
|
+
+ (state.dated === undefined
|
|
169
|
+
? ""
|
|
170
|
+
: state.dated.set
|
|
171
|
+
? `\nThe story starts on ${state.dated.date}, as the book's: calendar-start is set to it.`
|
|
172
|
+
: `\nThe book starts on ${state.dated.date}: ask the player whether the story should, then config calendar-start ${state.dated.date}.`);
|
|
173
|
+
}
|
|
172
174
|
async function startImport(root, context, document, title) {
|
|
173
175
|
const found = documentAt(document);
|
|
174
176
|
if (found === undefined) {
|
|
175
177
|
throw new Error(`There is no ${document}: give the full path of the player's document. Nothing changed.`);
|
|
176
178
|
}
|
|
179
|
+
if (isAdventure(document, found)) {
|
|
180
|
+
throw new Error(`${basename(document)} is an adventure already, not a document to read: install it with package, action install, name ${document}. Nothing changed.`);
|
|
181
|
+
}
|
|
177
182
|
const name = title === undefined || title === "" ? basename(document, found === "folder" ? "" : extname(document)) : title;
|
|
178
183
|
const folder = importFolder(root, adventureFolderName(name));
|
|
179
184
|
if (hasImport(folder)) {
|
|
@@ -222,6 +227,23 @@ async function startImport(root, context, document, title) {
|
|
|
222
227
|
}
|
|
223
228
|
return { ...resultOf(root, folder, readImportState(folder) ?? state), pictures: text.pictures.length, ...recognized, helper: program };
|
|
224
229
|
}
|
|
230
|
+
/** Whether what was given as a document is an adventure made already: a folder with adventure.yaml, or a .zip that holds one, which package install reads and checks. */
|
|
231
|
+
function isAdventure(path, found) {
|
|
232
|
+
if (found === "folder") {
|
|
233
|
+
return isAdventureFolder(path);
|
|
234
|
+
}
|
|
235
|
+
if (!/\.zip$/i.test(path)) {
|
|
236
|
+
return false;
|
|
237
|
+
}
|
|
238
|
+
try {
|
|
239
|
+
readAdventureZip(files().bytes(path) ?? new Uint8Array(), basename(path));
|
|
240
|
+
return true;
|
|
241
|
+
}
|
|
242
|
+
catch (error) {
|
|
243
|
+
// Any other .zip is no document either, and is told so as one; an adventure with a mistake in it is still one.
|
|
244
|
+
return !(error instanceof Refusal && ["not-adventure", "archive-unread"].includes(error.code));
|
|
245
|
+
}
|
|
246
|
+
}
|
|
225
247
|
/** The next piece for the master to read in the chat, with the importer's instructions once in a chat; the last one ends the import. */
|
|
226
248
|
function nextPiece(root, context, folder, state) {
|
|
227
249
|
const text = importPiece(folder, state.done);
|
|
@@ -232,7 +254,8 @@ function nextPiece(root, context, folder, state) {
|
|
|
232
254
|
if (next.phase === "done") {
|
|
233
255
|
dropDocumentText(folder);
|
|
234
256
|
}
|
|
235
|
-
|
|
257
|
+
// Filled by parts, never with replaceAll's own marks: a title with $& in it stays as it is.
|
|
258
|
+
const instructions = situationPart("import", context, campaignSystem(root, context)).split("{title}").join(state.title).split("{language}").join(readSettings(root).language ?? "en");
|
|
236
259
|
return { ...resultOf(root, folder, next), piece: { number: done, text, instructions, pictures: join(folder, "document", "pictures") } };
|
|
237
260
|
}
|
|
238
261
|
function chooseStart(root, context, folder, state, start, character) {
|
|
@@ -4,7 +4,7 @@ import { join } from "node:path";
|
|
|
4
4
|
import { readAdventureFolder } from "../../adventures/index.js";
|
|
5
5
|
import { claimImport, dropDocumentText, finishAdventure, importedPages, importStarts, pieceName, readImportState, releaseImport, writeImportState } from "../../importer/index.js";
|
|
6
6
|
import { coreSection } from "../../instructions/index.js";
|
|
7
|
-
import { partText } from "../shared/parts.js";
|
|
7
|
+
import { partText } from "../shared/campaign/parts.js";
|
|
8
8
|
// The imports running in this process, by their folder, each with what stops it: a second call never starts a second reader on the same files.
|
|
9
9
|
const running = new Map();
|
|
10
10
|
/** Whether a run of this import's helper is going on now, in this process. */
|
package/dist/commands/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { advance } from "./advance.js";
|
|
|
2
2
|
import { ask } from "./ask.js";
|
|
3
3
|
import { change } from "./change/change.js";
|
|
4
4
|
import { choices } from "./choices.js";
|
|
5
|
-
import { config } from "./config.js";
|
|
5
|
+
import { config } from "./config/config.js";
|
|
6
6
|
import { effect } from "./effect.js";
|
|
7
7
|
import { find } from "./find.js";
|
|
8
8
|
import { image } from "./image.js";
|
|
@@ -13,13 +13,13 @@ import { instructions } from "./instructions.js";
|
|
|
13
13
|
import { mode } from "./mode.js";
|
|
14
14
|
import { mood } from "./mood.js";
|
|
15
15
|
import { move } from "./move.js";
|
|
16
|
-
import { packageCommand } from "./package.js";
|
|
16
|
+
import { packageCommand } from "./package/package.js";
|
|
17
17
|
import { rename } from "./rename.js";
|
|
18
18
|
import { reveal } from "./reveal.js";
|
|
19
19
|
import { roll } from "./roll/roll.js";
|
|
20
20
|
import { rules } from "./rules.js";
|
|
21
21
|
import { save } from "./save.js";
|
|
22
|
-
import { scene } from "./scene.js";
|
|
22
|
+
import { scene } from "./scene/scene.js";
|
|
23
23
|
import { show } from "./show.js";
|
|
24
24
|
import { status } from "./status.js";
|
|
25
25
|
import { thoughts } from "./thoughts.js";
|
package/dist/commands/init.js
CHANGED
|
@@ -5,8 +5,8 @@ import { appendLogEntry, newLogEntry } from "../core/log.js";
|
|
|
5
5
|
import { defineCommand } from "../core/registry.js";
|
|
6
6
|
import { hostInstructions } from "../instructions/index.js";
|
|
7
7
|
import { createWorld } from "../pages/index.js";
|
|
8
|
-
import { campaignNote } from "./shared/mode.js";
|
|
9
|
-
import { installedSystemName } from "./shared/world.js";
|
|
8
|
+
import { campaignNote } from "./shared/campaign/mode.js";
|
|
9
|
+
import { installedSystemName } from "./shared/campaign/world.js";
|
|
10
10
|
export const init = defineCommand({
|
|
11
11
|
name: "init",
|
|
12
12
|
description: "Create a new campaign. "
|
package/dist/commands/install.js
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { requireCampaign } from "../campaign/index.js";
|
|
3
3
|
import { appendLogEntry } from "../core/log.js";
|
|
4
4
|
import { defineCommand } from "../core/registry.js";
|
|
5
|
-
import { newDatedLogEntry } from "./shared/time.js";
|
|
5
|
+
import { newDatedLogEntry } from "./shared/time/time.js";
|
|
6
6
|
// What each program is called, and the account its sign-in asks for.
|
|
7
7
|
const programs = {
|
|
8
8
|
codex: { name: "Codex", account: "ChatGPT account", gives: "the dashboard is translated in the background from now on, and pictures are made where their plan allows (Plus and up)" },
|
|
@@ -2,12 +2,12 @@ import { z } from "zod";
|
|
|
2
2
|
import { findCampaign, readSettings } from "../campaign/index.js";
|
|
3
3
|
import { defineCommand } from "../core/registry.js";
|
|
4
4
|
import { buttonsInstructions, dashboardInstructions, masterInstructions } from "../instructions/index.js";
|
|
5
|
-
import { campaignMode, modePart } from "./shared/mode.js";
|
|
6
|
-
import { valueParts } from "./shared/offers.js";
|
|
7
|
-
import { lengthPart, mentorPart, partText, partyPart, situationPart, stylePart } from "./shared/parts.js";
|
|
8
|
-
import {
|
|
9
|
-
import { voicesPart } from "./shared/voices.js";
|
|
10
|
-
import {
|
|
5
|
+
import { campaignMode, modePart } from "./shared/campaign/mode.js";
|
|
6
|
+
import { valueParts } from "./shared/campaign/offers.js";
|
|
7
|
+
import { lengthPart, mentorPart, partText, partyPart, situationPart, stylePart } from "./shared/campaign/parts.js";
|
|
8
|
+
import { campaignSystem, campaignWorld } from "./shared/campaign/world.js";
|
|
9
|
+
import { voicesPart } from "./shared/characters/voices.js";
|
|
10
|
+
import { readOpenScene } from "./shared/scene/scene.js";
|
|
11
11
|
// The parts instructions gives alone, when the master asks for them (D-532): how the player uses the dashboard.
|
|
12
12
|
const onRequestParts = ["dashboard"];
|
|
13
13
|
export const instructions = defineCommand({
|
package/dist/commands/mode.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type Mode } from "./shared/mode.ts";
|
|
3
|
-
import { type ResetPoint } from "./shared/saves.ts";
|
|
2
|
+
import { type Mode } from "./shared/campaign/mode.ts";
|
|
3
|
+
import { type ResetPoint } from "./shared/campaign/saves.ts";
|
|
4
4
|
export declare const mode: import("../core/registry.ts").Command<z.ZodObject<{
|
|
5
5
|
to: z.ZodEnum<{
|
|
6
6
|
"session zero": "session zero";
|
package/dist/commands/mode.js
CHANGED
|
@@ -2,14 +2,14 @@ import { z } from "zod";
|
|
|
2
2
|
import { changeState, requireCampaign } from "../campaign/index.js";
|
|
3
3
|
import { appendLogEntry } from "../core/log.js";
|
|
4
4
|
import { defineCommand } from "../core/registry.js";
|
|
5
|
-
import { blockingMode, campaignMode, missingText, modePart, modes } from "./shared/mode.js";
|
|
6
|
-
import { valueParts } from "./shared/offers.js";
|
|
7
|
-
import { adventurePart, lengthPart, situationPart } from "./shared/parts.js";
|
|
8
|
-
import { adventureUnderWay } from "./shared/quests.js";
|
|
9
|
-
import { campaignSaves, makeSave, savesWhy, saveText } from "./shared/saves.js";
|
|
10
|
-
import {
|
|
11
|
-
import { voicesPart } from "./shared/voices.js";
|
|
12
|
-
import {
|
|
5
|
+
import { blockingMode, campaignMode, missingText, modePart, modes } from "./shared/campaign/mode.js";
|
|
6
|
+
import { valueParts } from "./shared/campaign/offers.js";
|
|
7
|
+
import { adventurePart, lengthPart, situationPart } from "./shared/campaign/parts.js";
|
|
8
|
+
import { adventureUnderWay } from "./shared/campaign/quests.js";
|
|
9
|
+
import { campaignSaves, makeSave, savesWhy, saveText } from "./shared/campaign/saves.js";
|
|
10
|
+
import { campaignSystem, campaignWorld } from "./shared/campaign/world.js";
|
|
11
|
+
import { voicesPart } from "./shared/characters/voices.js";
|
|
12
|
+
import { newDatedLogEntry, readPresent } from "./shared/time/time.js";
|
|
13
13
|
export const mode = defineCommand({
|
|
14
14
|
name: "mode",
|
|
15
15
|
description: "Move the campaign to another mode: setup (the settings, out of the game), session zero (the player character and the companions, made in play) or play. "
|
package/dist/commands/mood.js
CHANGED
|
@@ -4,10 +4,10 @@ import { appendLogEntry } from "../core/log.js";
|
|
|
4
4
|
import { moods } from "../core/mood.js";
|
|
5
5
|
import { defineCommand } from "../core/registry.js";
|
|
6
6
|
import { isPartyMember, ownField, pageNamed, writePage } from "../pages/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { campaignWorld } from "./shared/campaign/world.js";
|
|
8
|
+
import { masterMood, masterMoodKey, moodChanged, moodMoment, pageMood } from "./shared/characters/moods.js";
|
|
9
|
+
import { readOpenScene } from "./shared/scene/scene.js";
|
|
10
|
+
import { newDatedLogEntry } from "./shared/time/time.js";
|
|
11
11
|
// What a character's new mood asks of the master, by their role.
|
|
12
12
|
const moodAdvice = {
|
|
13
13
|
pc: "the dashboard shows it on their sheet. It mirrors what the player writes and plays, never what you narrate or what a spell or condition does to them: "
|
package/dist/commands/move.js
CHANGED
|
@@ -4,18 +4,18 @@ import { appendLogEntry } from "../core/log.js";
|
|
|
4
4
|
import { defineCommand } from "../core/registry.js";
|
|
5
5
|
import { closedSquare, featureAt, firstOpenSquare, readSquare, squareName } from "../grid/index.js";
|
|
6
6
|
import { canHold, isInParty, kindNamed, locate, pageNamed, pagesWithName, pageTypeNames, parsePageReference, stackName, writePage } from "../pages/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { atEntries, atEntry, clearCopies, offMapNote, placeGrid, standing } from "./shared/grids.js";
|
|
10
|
-
import { picturesNote } from "./shared/images.js";
|
|
7
|
+
import { picturesNote } from "./shared/campaign/images.js";
|
|
8
|
+
import { campaignSystem, campaignWorld, missingSystemHint } from "./shared/campaign/world.js";
|
|
11
9
|
import { textList, textsOf, wholeNumber } from "./shared/inputs.js";
|
|
12
|
-
import { movePages } from "./shared/moves.js";
|
|
13
10
|
import { shortList, skippedPagesNote } from "./shared/notes.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
11
|
+
import { surroundings, surroundingsChange } from "./shared/places/environment.js";
|
|
12
|
+
import { moveFacts } from "./shared/places/grid-moves.js";
|
|
13
|
+
import { atEntries, atEntry, clearCopies, offMapNote, placeGrid, standing } from "./shared/places/grids.js";
|
|
14
|
+
import { movePages } from "./shared/places/moves.js";
|
|
15
|
+
import { measuresOf, roadsOf, sameSpot, stopOf } from "./shared/places/roads.js";
|
|
16
|
+
import { copyName, readOpenScene, scenePlace, updateScene } from "./shared/scene/scene.js";
|
|
17
|
+
import { heldStack, stackMoveSteps, writeStacks } from "./shared/sheet/stacks.js";
|
|
18
|
+
import { newDatedLogEntry } from "./shared/time/time.js";
|
|
19
19
|
export const move = defineCommand({
|
|
20
20
|
name: "move",
|
|
21
21
|
description: "Move characters, items or places into a place, a character's inventory or an item. "
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Context } from "../../core/context.ts";
|
|
2
|
+
import { Refusal } from "../../core/refusal.ts";
|
|
3
|
+
/** The player's yes to a package not ours, not given (D-478): they said no or closed the question, or no window could be shown here. */
|
|
4
|
+
export declare class YesRefused extends Refusal {
|
|
5
|
+
constructor(message: string, code: "declined" | "no-window", values?: Record<string, string>);
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The player's own yes to a package not ours (D-441, D-478), where the master cannot give it with its own tools: the host's form first, never the dashboard's
|
|
9
|
+
* page, whose click a local program can forge; else a window of their operating system; else none, and it throws.
|
|
10
|
+
*/
|
|
11
|
+
export declare function playerYes(context: Context, name: string, pack: string, local: boolean, holds?: string, replaces?: string): Promise<void>;
|