rpg-engine 0.6.6 → 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/README.md +4 -4
- 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 +57 -64
- package/dist/campaign/settings.js +171 -156
- package/dist/cli/cli.js +28 -0
- package/dist/cli/command-line.d.ts +7 -0
- package/dist/cli/command-line.js +189 -0
- package/dist/commands/advance.d.ts +1 -1
- package/dist/commands/advance.js +7 -7
- package/dist/commands/ask.d.ts +2 -8
- package/dist/commands/ask.js +90 -56
- package/dist/commands/change/change.d.ts +105 -0
- package/dist/commands/change/change.js +864 -0
- package/dist/commands/change/damage.d.ts +18 -0
- package/dist/commands/change/damage.js +74 -0
- package/dist/commands/change/recipe-pace.d.ts +6 -0
- package/dist/commands/change/recipe-pace.js +25 -0
- package/dist/commands/config.d.ts +4 -4
- package/dist/commands/config.js +187 -127
- 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/import.d.ts +47 -0
- package/dist/commands/import/import.js +390 -0
- package/dist/commands/import/run.d.ts +11 -0
- package/dist/commands/import/run.js +155 -0
- 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 +9 -6
- package/dist/commands/mode.d.ts +2 -2
- package/dist/commands/mode.js +11 -8
- package/dist/commands/mood.js +4 -4
- package/dist/commands/move.js +13 -20
- package/dist/commands/package.d.ts +13 -2
- package/dist/commands/package.js +185 -59
- package/dist/commands/rename.js +3 -3
- package/dist/commands/reveal.js +29 -18
- package/dist/commands/roll/roll.d.ts +67 -0
- package/dist/commands/roll/roll.js +432 -0
- package/dist/commands/roll/tables.d.ts +7 -0
- package/dist/commands/roll/tables.js +40 -0
- 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/shared/advance.d.ts +65 -0
- package/dist/commands/shared/advance.js +125 -0
- package/dist/commands/shared/adventures.d.ts +70 -0
- package/dist/commands/shared/adventures.js +411 -0
- package/dist/commands/shared/bonds.d.ts +9 -0
- package/dist/commands/shared/bonds.js +84 -0
- package/dist/commands/shared/checks.d.ts +17 -0
- package/dist/commands/shared/checks.js +130 -0
- package/dist/commands/shared/dice-pool.d.ts +39 -0
- package/dist/commands/shared/dice-pool.js +127 -0
- package/dist/commands/shared/effect-layer.d.ts +22 -0
- package/dist/commands/shared/effect-layer.js +84 -0
- package/dist/commands/shared/effects.d.ts +81 -0
- package/dist/commands/shared/effects.js +204 -0
- package/dist/commands/shared/environment.d.ts +16 -0
- package/dist/commands/shared/environment.js +24 -0
- package/dist/commands/shared/events.d.ts +84 -0
- package/dist/commands/shared/events.js +327 -0
- package/dist/commands/shared/examples.d.ts +18 -0
- package/dist/commands/shared/examples.js +72 -0
- package/dist/commands/shared/experience.d.ts +57 -0
- package/dist/commands/shared/experience.js +116 -0
- package/dist/commands/shared/grid-moves.d.ts +36 -0
- package/dist/commands/shared/grid-moves.js +100 -0
- package/dist/commands/shared/grids.d.ts +47 -0
- package/dist/commands/shared/grids.js +163 -0
- package/dist/commands/shared/images.d.ts +31 -0
- package/dist/commands/shared/images.js +89 -0
- package/dist/commands/shared/inputs.d.ts +9 -0
- package/dist/commands/shared/inputs.js +12 -0
- package/dist/commands/shared/journey.d.ts +64 -0
- package/dist/commands/shared/journey.js +172 -0
- package/dist/commands/shared/knowledge.d.ts +89 -0
- package/dist/commands/shared/knowledge.js +249 -0
- package/dist/commands/shared/library-reader.js +36 -0
- package/dist/commands/shared/library.d.ts +118 -0
- package/dist/commands/shared/library.js +408 -0
- package/dist/commands/shared/limits.d.ts +7 -0
- package/dist/commands/shared/limits.js +67 -0
- package/dist/commands/shared/loot.d.ts +16 -0
- package/dist/commands/shared/loot.js +36 -0
- package/dist/commands/shared/master-rolls.d.ts +17 -0
- package/dist/commands/shared/master-rolls.js +36 -0
- package/dist/commands/shared/mode.d.ts +29 -0
- package/dist/commands/shared/mode.js +132 -0
- package/dist/commands/shared/money.d.ts +17 -0
- package/dist/commands/shared/money.js +55 -0
- package/dist/commands/shared/moods.d.ts +22 -0
- package/dist/commands/shared/moods.js +32 -0
- package/dist/commands/shared/moves.d.ts +27 -0
- package/dist/commands/shared/moves.js +58 -0
- package/dist/commands/shared/offers.d.ts +33 -0
- package/dist/commands/shared/offers.js +116 -0
- package/dist/commands/shared/outside.d.ts +14 -0
- package/dist/commands/shared/outside.js +151 -0
- package/dist/commands/shared/packages/catalog.d.ts +47 -0
- package/dist/commands/shared/packages/catalog.js +143 -0
- package/dist/commands/shared/packages/code.d.ts +83 -0
- package/dist/commands/shared/packages/code.js +745 -0
- package/dist/commands/shared/packages/extensions.d.ts +55 -0
- package/dist/commands/shared/packages/extensions.js +201 -0
- package/dist/commands/shared/packages/hooks.d.ts +37 -0
- package/dist/commands/shared/packages/hooks.js +116 -0
- package/dist/commands/shared/packages/widgets.d.ts +96 -0
- package/dist/commands/shared/packages/widgets.js +425 -0
- package/dist/commands/shared/page-counters.d.ts +24 -0
- package/dist/commands/shared/page-counters.js +87 -0
- package/dist/commands/shared/page-words.d.ts +50 -0
- package/dist/commands/shared/page-words.js +225 -0
- package/dist/commands/shared/parts.d.ts +23 -0
- package/dist/commands/shared/parts.js +66 -0
- package/dist/commands/shared/positions.d.ts +50 -0
- package/dist/commands/shared/positions.js +243 -0
- package/dist/commands/shared/problems.d.ts +5 -0
- package/dist/commands/shared/problems.js +56 -0
- package/dist/commands/shared/progression.d.ts +70 -0
- package/dist/commands/shared/progression.js +211 -0
- package/dist/commands/shared/quests.d.ts +48 -0
- package/dist/commands/shared/quests.js +101 -0
- package/dist/commands/shared/recipes.d.ts +34 -0
- package/dist/commands/shared/recipes.js +116 -0
- package/dist/commands/shared/reminders.d.ts +25 -0
- package/dist/commands/shared/reminders.js +82 -0
- package/dist/commands/shared/roads.d.ts +97 -0
- package/dist/commands/shared/roads.js +346 -0
- package/dist/commands/shared/rules.d.ts +20 -0
- package/dist/commands/shared/rules.js +36 -0
- package/dist/commands/shared/saves.d.ts +71 -0
- package/dist/commands/shared/saves.js +288 -0
- package/dist/commands/shared/scene.d.ts +79 -0
- package/dist/commands/shared/scene.js +315 -0
- package/dist/commands/shared/sheet.d.ts +182 -0
- package/dist/commands/shared/sheet.js +616 -0
- package/dist/commands/shared/stacks.d.ts +71 -0
- package/dist/commands/shared/stacks.js +198 -0
- package/dist/commands/shared/theme.d.ts +9 -0
- package/dist/commands/shared/theme.js +23 -0
- package/dist/commands/shared/thoughts.d.ts +23 -0
- package/dist/commands/shared/thoughts.js +55 -0
- package/dist/commands/shared/thresholds.d.ts +21 -0
- package/dist/commands/shared/thresholds.js +63 -0
- package/dist/commands/shared/time.d.ts +29 -0
- package/dist/commands/shared/time.js +112 -0
- package/dist/commands/shared/turn-uses.d.ts +33 -0
- package/dist/commands/shared/turn-uses.js +134 -0
- package/dist/commands/shared/upkeep.d.ts +20 -0
- package/dist/commands/shared/upkeep.js +209 -0
- package/dist/commands/shared/voices.d.ts +5 -0
- package/dist/commands/shared/voices.js +13 -0
- package/dist/commands/shared/worked-out.d.ts +127 -0
- package/dist/commands/shared/worked-out.js +805 -0
- package/dist/commands/shared/world.d.ts +85 -0
- package/dist/commands/shared/world.js +309 -0
- 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 +45 -37
- 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/travel/open.d.ts +18 -0
- package/dist/commands/travel/open.js +46 -0
- package/dist/commands/travel/route.d.ts +19 -0
- package/dist/commands/travel/route.js +108 -0
- package/dist/commands/travel/travel.d.ts +49 -0
- package/dist/commands/travel/travel.js +483 -0
- package/dist/commands/validate.js +5 -5
- package/dist/commands/view/journal.d.ts +158 -0
- package/dist/commands/view/journal.js +132 -0
- package/dist/commands/view/map.d.ts +81 -0
- package/dist/commands/view/map.js +269 -0
- package/dist/commands/view/place.d.ts +167 -0
- package/dist/commands/view/place.js +406 -0
- package/dist/commands/view/view.d.ts +386 -0
- package/dist/commands/view/view.js +848 -0
- package/dist/commands/view/world.d.ts +98 -0
- package/dist/commands/view/world.js +98 -0
- package/dist/commands/write/here.d.ts +42 -0
- package/dist/commands/write/here.js +106 -0
- package/dist/commands/write/write.d.ts +59 -0
- package/dist/commands/write/write.js +1155 -0
- 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 +10 -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/acts.js +147 -0
- package/dist/dashboard/acts/names.js +27 -0
- package/dist/dashboard/acts/sheet.js +100 -0
- package/dist/dashboard/acts/strip.js +49 -0
- package/dist/dashboard/api.js +9 -0
- package/dist/dashboard/app.js +37 -23
- package/dist/dashboard/asked.js +11 -2
- package/dist/dashboard/assets/dice/coin-crown.glb +0 -0
- package/dist/dashboard/assets/dice/coin-eye.glb +0 -0
- package/dist/dashboard/assets/dice/coin-gear.glb +0 -0
- package/dist/dashboard/assets/dice/coin-planet.glb +0 -0
- package/dist/dashboard/assets/dice/coin-rose.glb +0 -0
- package/dist/dashboard/assets/dice/coin-sun.glb +0 -0
- package/dist/dashboard/assets/dice/coin.json +1 -0
- package/dist/dashboard/dice/burn.js +1 -1
- package/dist/dashboard/dice/coin-pictures.js +176 -0
- package/dist/dashboard/dice/load.js +11 -5
- package/dist/dashboard/dice/models.js +6 -0
- package/dist/dashboard/dice/pool.js +12 -0
- package/dist/dashboard/dice/roller.js +5 -4
- package/dist/dashboard/dice/sets.js +71 -3
- package/dist/dashboard/dice/stage.js +37 -8
- package/dist/dashboard/dice/throw.js +26 -6
- package/dist/dashboard/dice/tray.js +64 -31
- package/dist/dashboard/faces.js +40 -0
- package/dist/dashboard/guide/ar.md +21 -19
- package/dist/dashboard/guide/cs.md +17 -15
- package/dist/dashboard/guide/da.md +17 -15
- package/dist/dashboard/guide/de.md +13 -11
- package/dist/dashboard/guide/el.md +22 -20
- package/dist/dashboard/guide/en.md +5 -3
- package/dist/dashboard/guide/es.md +15 -13
- package/dist/dashboard/guide/fi.md +19 -17
- package/dist/dashboard/guide/fr.md +15 -13
- package/dist/dashboard/guide/he.md +17 -15
- package/dist/dashboard/guide/hi.md +22 -20
- package/dist/dashboard/guide/hu.md +21 -19
- package/dist/dashboard/guide/is.md +20 -18
- package/dist/dashboard/guide/it.md +6 -4
- package/dist/dashboard/guide/ja.md +21 -19
- package/dist/dashboard/guide/ko.md +22 -20
- package/dist/dashboard/guide/nb.md +20 -18
- package/dist/dashboard/guide/nl.md +19 -17
- package/dist/dashboard/guide/pl.md +19 -17
- package/dist/dashboard/guide/pt.md +15 -13
- package/dist/dashboard/guide/ro.md +19 -17
- package/dist/dashboard/guide/ru.md +17 -15
- package/dist/dashboard/guide/sv.md +15 -13
- package/dist/dashboard/guide/tr.md +19 -17
- package/dist/dashboard/guide/uk.md +17 -15
- package/dist/dashboard/guide/zh.md +21 -19
- package/dist/dashboard/help/blocks.js +72 -0
- package/dist/dashboard/help/help.js +98 -0
- 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 +29 -0
- 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/icons.js +2 -1
- package/dist/dashboard/journal.js +1 -1
- package/dist/dashboard/kit.js +6 -5
- package/dist/dashboard/labels.js +11 -3
- package/dist/dashboard/markdown.js +1 -1
- package/dist/dashboard/packages/ask-card.js +169 -0
- package/dist/dashboard/packages/package-page.js +50 -0
- package/dist/dashboard/packages/packages.js +834 -0
- package/dist/dashboard/packages/page-code.js +276 -0
- package/dist/dashboard/packages/widgets.js +280 -0
- package/dist/dashboard/party.js +1 -1
- package/dist/dashboard/person-panel.js +2 -13
- package/dist/dashboard/place/map-sheet.js +32 -0
- package/dist/dashboard/place/map-view.js +405 -0
- package/dist/dashboard/prefs.js +4 -0
- package/dist/dashboard/requested.js +5 -2
- package/dist/dashboard/rolls.js +26 -9
- package/dist/dashboard/scene.js +4 -4
- package/dist/dashboard/settings.js +77 -5
- package/dist/dashboard/sheet.js +3 -3
- package/dist/dashboard/style.css +12058 -11714
- package/dist/dashboard/system-style.js +84 -0
- package/dist/dashboard/theme.js +19 -8
- 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 +101 -0
- package/dist/dashboard/world/known.js +44 -0
- package/dist/dashboard/world/lore.js +231 -0
- package/dist/dashboard/world/map.js +523 -0
- package/dist/dashboard/world/world.js +415 -0
- package/dist/dice/coins.d.ts +15 -0
- package/dist/dice/coins.js +17 -0
- package/dist/dice/evaluate.js +1 -1
- package/dist/dice/index.d.ts +3 -2
- package/dist/dice/index.js +4 -3
- 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/helpers/briefs.js +148 -0
- package/dist/helpers/claude.js +157 -0
- package/dist/helpers/codex.js +174 -0
- package/dist/helpers/index.d.ts +7 -0
- package/dist/helpers/index.js +9 -0
- package/dist/helpers/programs.d.ts +41 -0
- package/dist/helpers/programs.js +280 -0
- 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/packages/engine.d.ts +4 -0
- package/dist/packages/engine.js +74 -0
- package/dist/packages/index.d.ts +3 -0
- package/dist/packages/index.js +4 -0
- package/dist/packages/npm.d.ts +36 -0
- package/dist/packages/npm.js +418 -0
- package/dist/page.d.ts +14 -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/stacks/entry.d.ts +45 -0
- package/dist/pages/stacks/entry.js +79 -0
- package/dist/pages/stacks/kinds.d.ts +59 -0
- package/dist/pages/stacks/kinds.js +163 -0
- package/dist/pages/stacks/writes.d.ts +22 -0
- package/dist/pages/stacks/writes.js +129 -0
- 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/server/bell-listener.js +83 -0
- 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/server/mcp.d.ts +24 -0
- package/dist/server/mcp.js +518 -0
- package/dist/systems/game-system.d.ts +31 -4
- package/dist/systems/game-system.js +221 -103
- package/dist/systems/index.d.ts +1 -1
- package/dist/systems/index.js +1 -1
- package/dist/testing/index.d.ts +80 -0
- package/dist/testing/index.js +215 -0
- package/dist/testing/system-checks.d.ts +32 -0
- package/dist/testing/system-checks.js +160 -0
- package/dist/themes/contrast.d.ts +8 -0
- package/dist/themes/contrast.js +27 -0
- package/dist/themes/css.d.ts +3 -0
- package/dist/themes/css.js +59 -0
- package/dist/themes/index.d.ts +3 -0
- package/dist/themes/index.js +4 -0
- package/dist/themes/theme.d.ts +71 -0
- package/dist/themes/theme.js +348 -0
- 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 +7 -13
- package/systems/free/instructions/outcomes-rolled.md +3 -0
- package/systems/free/instructions/outcomes-told.md +4 -0
- package/systems/free/instructions/outcomes-tossed.md +5 -0
- package/systems/free/instructions/play.md +3 -1
- package/systems/free/system.yaml +37 -0
- package/systems/free/words/ar.yaml +32 -0
- package/systems/free/words/cs.yaml +32 -0
- package/systems/free/words/da.yaml +32 -0
- package/systems/free/words/de.yaml +32 -0
- package/systems/free/words/el.yaml +32 -0
- package/systems/free/words/es.yaml +32 -0
- package/systems/free/words/fi.yaml +32 -0
- package/systems/free/words/fr.yaml +32 -0
- package/systems/free/words/he.yaml +32 -0
- package/systems/free/words/hi.yaml +32 -0
- package/systems/free/words/hu.yaml +32 -0
- package/systems/free/words/is.yaml +32 -0
- package/systems/free/words/it.yaml +32 -0
- package/systems/free/words/ja.yaml +32 -0
- package/systems/free/words/ko.yaml +32 -0
- package/systems/free/words/nb.yaml +32 -0
- package/systems/free/words/nl.yaml +32 -0
- package/systems/free/words/pl.yaml +32 -0
- package/systems/free/words/pt.yaml +32 -0
- package/systems/free/words/ro.yaml +32 -0
- package/systems/free/words/ru.yaml +32 -0
- package/systems/free/words/sv.yaml +32 -0
- package/systems/free/words/tr.yaml +32 -0
- package/systems/free/words/uk.yaml +32 -0
- package/systems/free/words/zh.yaml +32 -0
- package/dist/bell-listener.js +0 -83
- package/dist/cli.js +0 -28
- package/dist/command-line.d.ts +0 -7
- package/dist/command-line.js +0 -188
- package/dist/commands/change.d.ts +0 -105
- package/dist/commands/change.js +0 -862
- package/dist/commands/effect-layer.d.ts +0 -22
- package/dist/commands/effect-layer.js +0 -84
- package/dist/commands/game-advance.d.ts +0 -65
- package/dist/commands/game-advance.js +0 -125
- package/dist/commands/game-adventures.d.ts +0 -70
- package/dist/commands/game-adventures.js +0 -418
- package/dist/commands/game-bonds.d.ts +0 -9
- package/dist/commands/game-bonds.js +0 -84
- package/dist/commands/game-catalog.d.ts +0 -49
- package/dist/commands/game-catalog.js +0 -146
- package/dist/commands/game-checks.d.ts +0 -17
- package/dist/commands/game-checks.js +0 -130
- package/dist/commands/game-damage.d.ts +0 -18
- package/dist/commands/game-damage.js +0 -74
- package/dist/commands/game-dice-pool.d.ts +0 -39
- package/dist/commands/game-dice-pool.js +0 -120
- package/dist/commands/game-effects.d.ts +0 -81
- package/dist/commands/game-effects.js +0 -204
- package/dist/commands/game-environment.d.ts +0 -16
- package/dist/commands/game-environment.js +0 -24
- package/dist/commands/game-events.d.ts +0 -84
- package/dist/commands/game-events.js +0 -329
- package/dist/commands/game-examples.d.ts +0 -22
- package/dist/commands/game-examples.js +0 -72
- package/dist/commands/game-experience.d.ts +0 -57
- package/dist/commands/game-experience.js +0 -119
- package/dist/commands/game-extension-list.d.ts +0 -55
- package/dist/commands/game-extension-list.js +0 -180
- package/dist/commands/game-grid-moves.d.ts +0 -36
- package/dist/commands/game-grid-moves.js +0 -100
- package/dist/commands/game-grids.d.ts +0 -52
- package/dist/commands/game-grids.js +0 -162
- package/dist/commands/game-here.d.ts +0 -40
- package/dist/commands/game-here.js +0 -100
- package/dist/commands/game-images.d.ts +0 -31
- package/dist/commands/game-images.js +0 -88
- package/dist/commands/game-import.d.ts +0 -11
- package/dist/commands/game-import.js +0 -154
- package/dist/commands/game-journey.d.ts +0 -66
- package/dist/commands/game-journey.js +0 -174
- package/dist/commands/game-knowledge.d.ts +0 -82
- package/dist/commands/game-knowledge.js +0 -249
- package/dist/commands/game-library.d.ts +0 -115
- package/dist/commands/game-library.js +0 -388
- package/dist/commands/game-limits.d.ts +0 -7
- package/dist/commands/game-limits.js +0 -67
- package/dist/commands/game-loot.d.ts +0 -16
- package/dist/commands/game-loot.js +0 -36
- package/dist/commands/game-maps.d.ts +0 -20
- package/dist/commands/game-maps.js +0 -51
- package/dist/commands/game-master-rolls.d.ts +0 -17
- package/dist/commands/game-master-rolls.js +0 -36
- package/dist/commands/game-mode.d.ts +0 -31
- package/dist/commands/game-mode.js +0 -130
- package/dist/commands/game-money.d.ts +0 -17
- package/dist/commands/game-money.js +0 -55
- package/dist/commands/game-moods.d.ts +0 -22
- package/dist/commands/game-moods.js +0 -32
- package/dist/commands/game-moves.d.ts +0 -27
- package/dist/commands/game-moves.js +0 -58
- package/dist/commands/game-open.d.ts +0 -18
- package/dist/commands/game-open.js +0 -47
- package/dist/commands/game-outside.d.ts +0 -14
- package/dist/commands/game-outside.js +0 -151
- package/dist/commands/game-package-code.d.ts +0 -87
- package/dist/commands/game-package-code.js +0 -648
- package/dist/commands/game-package-hooks.d.ts +0 -37
- package/dist/commands/game-package-hooks.js +0 -116
- package/dist/commands/game-positions.d.ts +0 -52
- package/dist/commands/game-positions.js +0 -244
- package/dist/commands/game-quests.d.ts +0 -48
- package/dist/commands/game-quests.js +0 -101
- package/dist/commands/game-recipe-pace.d.ts +0 -6
- package/dist/commands/game-recipe-pace.js +0 -25
- package/dist/commands/game-recipes.d.ts +0 -34
- package/dist/commands/game-recipes.js +0 -116
- package/dist/commands/game-reminders.d.ts +0 -25
- package/dist/commands/game-reminders.js +0 -82
- package/dist/commands/game-roads.d.ts +0 -97
- package/dist/commands/game-roads.js +0 -347
- package/dist/commands/game-rules.d.ts +0 -20
- package/dist/commands/game-rules.js +0 -36
- package/dist/commands/game-saves.d.ts +0 -71
- package/dist/commands/game-saves.js +0 -288
- package/dist/commands/game-scene.d.ts +0 -69
- package/dist/commands/game-scene.js +0 -287
- package/dist/commands/game-stacks.d.ts +0 -78
- package/dist/commands/game-stacks.js +0 -198
- package/dist/commands/game-tables.d.ts +0 -7
- package/dist/commands/game-tables.js +0 -40
- package/dist/commands/game-thoughts.d.ts +0 -25
- package/dist/commands/game-thoughts.js +0 -57
- package/dist/commands/game-thresholds.d.ts +0 -21
- package/dist/commands/game-thresholds.js +0 -63
- package/dist/commands/game-time.d.ts +0 -29
- package/dist/commands/game-time.js +0 -112
- package/dist/commands/game-turn-uses.d.ts +0 -33
- package/dist/commands/game-turn-uses.js +0 -137
- package/dist/commands/game-upkeep.d.ts +0 -20
- package/dist/commands/game-upkeep.js +0 -198
- package/dist/commands/game-view-journal.d.ts +0 -158
- package/dist/commands/game-view-journal.js +0 -132
- package/dist/commands/game-view-map.d.ts +0 -81
- package/dist/commands/game-view-map.js +0 -270
- package/dist/commands/game-view-place.d.ts +0 -167
- package/dist/commands/game-view-place.js +0 -406
- package/dist/commands/game-view-world.d.ts +0 -98
- package/dist/commands/game-view-world.js +0 -98
- package/dist/commands/game-voices.d.ts +0 -5
- package/dist/commands/game-voices.js +0 -13
- package/dist/commands/game-widgets.d.ts +0 -100
- package/dist/commands/game-widgets.js +0 -425
- package/dist/commands/game-world.d.ts +0 -96
- package/dist/commands/game-world.js +0 -316
- package/dist/commands/import.d.ts +0 -47
- package/dist/commands/import.js +0 -390
- package/dist/commands/page-counters.d.ts +0 -24
- package/dist/commands/page-counters.js +0 -87
- package/dist/commands/parts.d.ts +0 -23
- package/dist/commands/parts.js +0 -66
- package/dist/commands/problems.d.ts +0 -5
- package/dist/commands/problems.js +0 -55
- package/dist/commands/progression.d.ts +0 -70
- package/dist/commands/progression.js +0 -211
- package/dist/commands/roll.d.ts +0 -65
- package/dist/commands/roll.js +0 -409
- package/dist/commands/route.d.ts +0 -19
- package/dist/commands/route.js +0 -109
- package/dist/commands/sheet.d.ts +0 -182
- package/dist/commands/sheet.js +0 -616
- package/dist/commands/travel.d.ts +0 -49
- package/dist/commands/travel.js +0 -485
- package/dist/commands/view.d.ts +0 -382
- package/dist/commands/view.js +0 -844
- package/dist/commands/worked-out.d.ts +0 -132
- package/dist/commands/worked-out.js +0 -805
- package/dist/commands/write.d.ts +0 -59
- package/dist/commands/write.js +0 -1152
- package/dist/dashboard/act-names.js +0 -27
- package/dist/dashboard/act-sheet.js +0 -100
- package/dist/dashboard/act-strip.js +0 -49
- package/dist/dashboard/acts.js +0 -147
- package/dist/dashboard/ask-card.js +0 -169
- package/dist/dashboard/extension-widgets.js +0 -280
- package/dist/dashboard/guide-blocks.js +0 -72
- package/dist/dashboard/help.js +0 -98
- package/dist/dashboard/lore.js +0 -44
- package/dist/dashboard/map-sheet.js +0 -32
- package/dist/dashboard/package-page.js +0 -50
- package/dist/dashboard/packages.js +0 -834
- package/dist/dashboard/page-code.js +0 -248
- package/dist/dashboard/place-map-view.js +0 -405
- package/dist/dashboard/world-calendar.js +0 -101
- package/dist/dashboard/world-lore.js +0 -231
- package/dist/dashboard/world-map.js +0 -523
- package/dist/dashboard/world.js +0 -415
- package/dist/dashboard-server.d.ts +0 -47
- package/dist/dashboard-server.js +0 -1765
- package/dist/extensions/engine.d.ts +0 -4
- package/dist/extensions/engine.js +0 -74
- package/dist/extensions/packages.d.ts +0 -34
- package/dist/extensions/packages.js +0 -389
- package/dist/library-reader.js +0 -36
- package/dist/mcp-server.d.ts +0 -22
- package/dist/mcp-server.js +0 -455
- package/dist/page-words.d.ts +0 -50
- package/dist/page-words.js +0 -224
- package/dist/pages/stack-entry.d.ts +0 -47
- package/dist/pages/stack-entry.js +0 -83
- package/dist/pages/stack-writes.d.ts +0 -22
- package/dist/pages/stack-writes.js +0 -129
- package/dist/pages/stacks.d.ts +0 -52
- package/dist/pages/stacks.js +0 -168
- package/dist/pictures/briefs.js +0 -145
- package/dist/pictures/claude.js +0 -167
- package/dist/pictures/codex.js +0 -186
- package/dist/pictures/helpers.d.ts +0 -36
- package/dist/pictures/helpers.js +0 -266
- package/dist/pictures/index.d.ts +0 -7
- package/dist/pictures/index.js +0 -9
- package/dist/testing.d.ts +0 -76
- package/dist/testing.js +0 -197
- package/systems/5e/LICENSE.md +0 -41
- package/systems/5e/dist/dying.js +0 -260
- package/systems/5e/dist/index.js +0 -3
- package/systems/5e/dist/page-style.js +0 -634
- package/systems/5e/dist/page.js +0 -166
- package/systems/5e/dist/shown.js +0 -23
- package/systems/5e/images/abacus.svg +0 -1
- package/systems/5e/images/acid-blob.svg +0 -1
- package/systems/5e/images/acid-tube.svg +0 -1
- package/systems/5e/images/angel-outfit.svg +0 -1
- package/systems/5e/images/angler-fish.svg +0 -1
- package/systems/5e/images/angular-spider.svg +0 -1
- package/systems/5e/images/animal-hide.svg +0 -1
- package/systems/5e/images/animal-skull.svg +0 -1
- package/systems/5e/images/anvil.svg +0 -1
- package/systems/5e/images/arrow-cluster.svg +0 -1
- package/systems/5e/images/backpack.svg +0 -1
- package/systems/5e/images/bad-gnome.svg +0 -1
- package/systems/5e/images/badger.svg +0 -1
- package/systems/5e/images/bagpipes.svg +0 -1
- package/systems/5e/images/bandit.svg +0 -1
- package/systems/5e/images/barbed-spear.svg +0 -1
- package/systems/5e/images/barn-owl.svg +0 -1
- package/systems/5e/images/barrel.svg +0 -1
- package/systems/5e/images/basket.svg +0 -1
- package/systems/5e/images/basset-hound-head.svg +0 -1
- package/systems/5e/images/bat.svg +0 -1
- package/systems/5e/images/battle-axe.svg +0 -1
- package/systems/5e/images/bear-face.svg +0 -1
- package/systems/5e/images/bear-head.svg +0 -1
- package/systems/5e/images/beer-horn.svg +0 -1
- package/systems/5e/images/beetle-shell.svg +0 -1
- package/systems/5e/images/belt-buckles.svg +0 -1
- package/systems/5e/images/berry-bush.svg +0 -1
- package/systems/5e/images/bestial-fangs.svg +0 -1
- package/systems/5e/images/big-wave.svg +0 -1
- package/systems/5e/images/bird-scepter.svg +0 -1
- package/systems/5e/images/black-knight-helm.svg +0 -1
- package/systems/5e/images/blanket.svg +0 -1
- package/systems/5e/images/boar-tusks.svg +0 -1
- package/systems/5e/images/boar.svg +0 -1
- package/systems/5e/images/bone-gnawer.svg +0 -1
- package/systems/5e/images/book-cover.svg +0 -1
- package/systems/5e/images/boots.svg +0 -1
- package/systems/5e/images/bottle-vapors.svg +0 -1
- package/systems/5e/images/bow-arrow.svg +0 -1
- package/systems/5e/images/bowl-spiral.svg +0 -1
- package/systems/5e/images/bracer.svg +0 -1
- package/systems/5e/images/breastplate.svg +0 -1
- package/systems/5e/images/broadsword.svg +0 -1
- package/systems/5e/images/broom.svg +0 -1
- package/systems/5e/images/brute.svg +0 -1
- package/systems/5e/images/bullets.svg +0 -1
- package/systems/5e/images/caltrops.svg +0 -1
- package/systems/5e/images/camel-head.svg +0 -1
- package/systems/5e/images/camp-cooking-pot.svg +0 -1
- package/systems/5e/images/campfire.svg +0 -1
- package/systems/5e/images/camping-tent.svg +0 -1
- package/systems/5e/images/candle-flame.svg +0 -1
- package/systems/5e/images/candle-light.svg +0 -1
- package/systems/5e/images/canoe.svg +0 -1
- package/systems/5e/images/cape.svg +0 -1
- package/systems/5e/images/caravel.svg +0 -1
- package/systems/5e/images/card-pick.svg +0 -1
- package/systems/5e/images/carnivore-mouth.svg +0 -1
- package/systems/5e/images/cassowary-head.svg +0 -1
- package/systems/5e/images/cat.svg +0 -1
- package/systems/5e/images/centaur.svg +0 -1
- package/systems/5e/images/centipede.svg +0 -1
- package/systems/5e/images/chain-mail.svg +0 -1
- package/systems/5e/images/chained-arrow-heads.svg +0 -1
- package/systems/5e/images/charging-bull.svg +0 -1
- package/systems/5e/images/chariot.svg +0 -1
- package/systems/5e/images/chest.svg +0 -1
- package/systems/5e/images/chisel.svg +0 -1
- package/systems/5e/images/claw-hammer.svg +0 -1
- package/systems/5e/images/closed-barbute.svg +0 -1
- package/systems/5e/images/cobra.svg +0 -1
- package/systems/5e/images/colombian-statue.svg +0 -1
- package/systems/5e/images/condor-emblem.svg +0 -1
- package/systems/5e/images/cooking-pot.svg +0 -1
- package/systems/5e/images/cowled.svg +0 -1
- package/systems/5e/images/crab-claw.svg +0 -1
- package/systems/5e/images/crab.svg +0 -1
- package/systems/5e/images/crescent-staff.svg +0 -1
- package/systems/5e/images/croc-jaws.svg +0 -1
- package/systems/5e/images/crossbow.svg +0 -1
- package/systems/5e/images/crossed-chains.svg +0 -1
- package/systems/5e/images/crow-dive.svg +0 -1
- package/systems/5e/images/crowbar.svg +0 -1
- package/systems/5e/images/crown.svg +0 -1
- package/systems/5e/images/crowned-skull.svg +0 -1
- package/systems/5e/images/crystal-ball.svg +0 -1
- package/systems/5e/images/crystal-cluster.svg +0 -1
- package/systems/5e/images/crystal-eye.svg +0 -1
- package/systems/5e/images/cube.svg +0 -1
- package/systems/5e/images/cubes.svg +0 -1
- package/systems/5e/images/cultist-lorc.svg +0 -1
- package/systems/5e/images/cultist-skoll.svg +0 -1
- package/systems/5e/images/curled-tentacle.svg +0 -1
- package/systems/5e/images/daemon-skull.svg +0 -1
- package/systems/5e/images/dart.svg +0 -1
- package/systems/5e/images/deer-head.svg +0 -1
- package/systems/5e/images/desert-skull.svg +0 -1
- package/systems/5e/images/devil-mask.svg +0 -1
- package/systems/5e/images/diablo-skull.svg +0 -1
- package/systems/5e/images/dice-six-faces-five.svg +0 -1
- package/systems/5e/images/dinosaur-rex.svg +0 -1
- package/systems/5e/images/direwolf.svg +0 -1
- package/systems/5e/images/djinn.svg +0 -1
- package/systems/5e/images/donkey.svg +0 -1
- package/systems/5e/images/dragon-head-faithtoken.svg +0 -1
- package/systems/5e/images/dragon-head-lorc.svg +0 -1
- package/systems/5e/images/dragon-orb.svg +0 -1
- package/systems/5e/images/dragon-shield.svg +0 -1
- package/systems/5e/images/dragon-spiral.svg +0 -1
- package/systems/5e/images/drakkar.svg +0 -1
- package/systems/5e/images/dread-skull.svg +0 -1
- package/systems/5e/images/drum.svg +0 -1
- package/systems/5e/images/duality-mask.svg +0 -1
- package/systems/5e/images/dust-cloud.svg +0 -1
- package/systems/5e/images/dwarf-face.svg +0 -1
- package/systems/5e/images/dwarf-helmet.svg +0 -1
- package/systems/5e/images/eagle-emblem.svg +0 -1
- package/systems/5e/images/eagle-head.svg +0 -1
- package/systems/5e/images/egyptian-sphinx.svg +0 -1
- package/systems/5e/images/elephant-head.svg +0 -1
- package/systems/5e/images/elf-ear.svg +0 -1
- package/systems/5e/images/elf-helmet.svg +0 -1
- package/systems/5e/images/empty-wood-bucket-handle.svg +0 -1
- package/systems/5e/images/ent-mouth.svg +0 -1
- package/systems/5e/images/ermine.svg +0 -1
- package/systems/5e/images/eruption.svg +0 -1
- package/systems/5e/images/evil-bat.svg +0 -1
- package/systems/5e/images/evil-minion.svg +0 -1
- package/systems/5e/images/evil-tree.svg +0 -1
- package/systems/5e/images/evil-wings.svg +0 -1
- package/systems/5e/images/eye-shield.svg +0 -1
- package/systems/5e/images/eyestalk.svg +0 -1
- package/systems/5e/images/fairy-wand.svg +0 -1
- package/systems/5e/images/fairy.svg +0 -1
- package/systems/5e/images/farmer.svg +0 -1
- package/systems/5e/images/feather.svg +0 -1
- package/systems/5e/images/feathered-wing.svg +0 -1
- package/systems/5e/images/feline.svg +0 -1
- package/systems/5e/images/fire-bottle.svg +0 -1
- package/systems/5e/images/fire-gem.svg +0 -1
- package/systems/5e/images/fire-silhouette.svg +0 -1
- package/systems/5e/images/first-aid-kit.svg +0 -1
- package/systems/5e/images/fish-monster.svg +0 -1
- package/systems/5e/images/fishing-hook.svg +0 -1
- package/systems/5e/images/fishing-net.svg +0 -1
- package/systems/5e/images/fishing-pole.svg +0 -1
- package/systems/5e/images/fist.svg +0 -1
- package/systems/5e/images/flail.svg +0 -1
- package/systems/5e/images/flanged-mace.svg +0 -1
- package/systems/5e/images/flat-hammer.svg +0 -1
- package/systems/5e/images/fleshy-mass.svg +0 -1
- package/systems/5e/images/flint-spark.svg +0 -1
- package/systems/5e/images/floating-crystal.svg +0 -1
- package/systems/5e/images/fluffy-flame.svg +0 -1
- package/systems/5e/images/flute.svg +0 -1
- package/systems/5e/images/fly.svg +0 -1
- package/systems/5e/images/fox-head.svg +0 -1
- package/systems/5e/images/frankenstein-creature.svg +0 -1
- package/systems/5e/images/frog.svg +0 -1
- package/systems/5e/images/galleon.svg +0 -1
- package/systems/5e/images/gargoyle.svg +0 -1
- package/systems/5e/images/gauntlet.svg +0 -1
- package/systems/5e/images/gecko.svg +0 -1
- package/systems/5e/images/gem-necklace.svg +0 -1
- package/systems/5e/images/gem-pendant.svg +0 -1
- package/systems/5e/images/gems.svg +0 -1
- package/systems/5e/images/ghost.svg +0 -1
- package/systems/5e/images/giant.svg +0 -1
- package/systems/5e/images/gladius.svg +0 -1
- package/systems/5e/images/glaive.svg +0 -1
- package/systems/5e/images/glass-ball.svg +0 -1
- package/systems/5e/images/gloves.svg +0 -1
- package/systems/5e/images/goat.svg +0 -1
- package/systems/5e/images/goblin-head.svg +0 -1
- package/systems/5e/images/goblin.svg +0 -1
- package/systems/5e/images/gold-scarab.svg +0 -1
- package/systems/5e/images/golem-head.svg +0 -1
- package/systems/5e/images/gooey-daemon.svg +0 -1
- package/systems/5e/images/gorilla.svg +0 -1
- package/systems/5e/images/grain-bundle.svg +0 -1
- package/systems/5e/images/greek-sphinx.svg +0 -1
- package/systems/5e/images/griffin-symbol.svg +0 -1
- package/systems/5e/images/grim-reaper.svg +0 -1
- package/systems/5e/images/halberd.svg +0 -1
- package/systems/5e/images/hand-saw.svg +0 -1
- package/systems/5e/images/handheld-fan.svg +0 -1
- package/systems/5e/images/hanging-spider.svg +0 -1
- package/systems/5e/images/harp.svg +0 -1
- package/systems/5e/images/harpy.svg +0 -1
- package/systems/5e/images/hatchet.svg +0 -1
- package/systems/5e/images/hawk-emblem.svg +0 -1
- package/systems/5e/images/headband-knot.svg +0 -1
- package/systems/5e/images/health-potion.svg +0 -1
- package/systems/5e/images/heart-bottle.svg +0 -1
- package/systems/5e/images/herbs-bundle.svg +0 -1
- package/systems/5e/images/hole-ladder.svg +0 -1
- package/systems/5e/images/holy-symbol.svg +0 -1
- package/systems/5e/images/holy-water.svg +0 -1
- package/systems/5e/images/honey-jar.svg +0 -1
- package/systems/5e/images/hood.svg +0 -1
- package/systems/5e/images/hooded-assassin.svg +0 -1
- package/systems/5e/images/horned-reptile.svg +0 -1
- package/systems/5e/images/horse-head-delapouite.svg +0 -1
- package/systems/5e/images/horse-head-lorc.svg +0 -1
- package/systems/5e/images/horseshoe.svg +0 -1
- package/systems/5e/images/hound.svg +0 -1
- package/systems/5e/images/hourglass.svg +0 -1
- package/systems/5e/images/hunting-horn.svg +0 -1
- package/systems/5e/images/hydra.svg +0 -1
- package/systems/5e/images/hyena-head.svg +0 -1
- package/systems/5e/images/icicles-aura.svg +0 -1
- package/systems/5e/images/ifrit.svg +0 -1
- package/systems/5e/images/imp-laugh.svg +0 -1
- package/systems/5e/images/imp.svg +0 -1
- package/systems/5e/images/insect-jaws.svg +0 -1
- package/systems/5e/images/invisible-face.svg +0 -1
- package/systems/5e/images/jester-hat.svg +0 -1
- package/systems/5e/images/jug.svg +0 -1
- package/systems/5e/images/jumping-dog.svg +0 -1
- package/systems/5e/images/katana.svg +0 -1
- package/systems/5e/images/key-lock.svg +0 -1
- package/systems/5e/images/kitchen-scale.svg +0 -1
- package/systems/5e/images/knapsack.svg +0 -1
- package/systems/5e/images/kraken-tentacle.svg +0 -1
- package/systems/5e/images/labrador-head.svg +0 -1
- package/systems/5e/images/ladder.svg +0 -1
- package/systems/5e/images/lantern.svg +0 -1
- package/systems/5e/images/leather-armor.svg +0 -1
- package/systems/5e/images/leather-boot.svg +0 -1
- package/systems/5e/images/leather-vest.svg +0 -1
- package/systems/5e/images/light-backpack.svg +0 -1
- package/systems/5e/images/light-helm.svg +0 -1
- package/systems/5e/images/lion.svg +0 -1
- package/systems/5e/images/lizard-tongue.svg +0 -1
- package/systems/5e/images/lizardman.svg +0 -1
- package/systems/5e/images/locked-box.svg +0 -1
- package/systems/5e/images/locked-fortress.svg +0 -1
- package/systems/5e/images/lockpicks.svg +0 -1
- package/systems/5e/images/long-antennae-bug.svg +0 -1
- package/systems/5e/images/long-legged-spider.svg +0 -1
- package/systems/5e/images/lunar-wand.svg +0 -1
- package/systems/5e/images/lyre.svg +0 -1
- package/systems/5e/images/magic-lamp.svg +0 -1
- package/systems/5e/images/magnifying-glass.svg +0 -1
- package/systems/5e/images/mail-shirt.svg +0 -1
- package/systems/5e/images/mammoth.svg +0 -1
- package/systems/5e/images/manacles.svg +0 -1
- package/systems/5e/images/mandrill-head.svg +0 -1
- package/systems/5e/images/manta-ray.svg +0 -1
- package/systems/5e/images/marbles.svg +0 -1
- package/systems/5e/images/masked-spider.svg +0 -1
- package/systems/5e/images/meat.svg +0 -1
- package/systems/5e/images/medal.svg +0 -1
- package/systems/5e/images/medusa-head.svg +0 -1
- package/systems/5e/images/mermaid.svg +0 -1
- package/systems/5e/images/metal-golem-head.svg +0 -1
- package/systems/5e/images/mimic-chest.svg +0 -1
- package/systems/5e/images/minotaur.svg +0 -1
- package/systems/5e/images/mirror-mirror.svg +0 -1
- package/systems/5e/images/monk-face.svg +0 -1
- package/systems/5e/images/moon-bats.svg +0 -1
- package/systems/5e/images/mountain-climbing.svg +0 -1
- package/systems/5e/images/mucous-pillar.svg +0 -1
- package/systems/5e/images/mummy-head.svg +0 -1
- package/systems/5e/images/mushrooms-cluster.svg +0 -1
- package/systems/5e/images/octopus.svg +0 -1
- package/systems/5e/images/ogre.svg +0 -1
- package/systems/5e/images/oil-can.svg +0 -1
- package/systems/5e/images/old-lantern.svg +0 -1
- package/systems/5e/images/old-wagon.svg +0 -1
- package/systems/5e/images/oni.svg +0 -1
- package/systems/5e/images/orb-wand.svg +0 -1
- package/systems/5e/images/orc-head.svg +0 -1
- package/systems/5e/images/owl.svg +0 -1
- package/systems/5e/images/oyster-pearl.svg +0 -1
- package/systems/5e/images/paint-brush.svg +0 -1
- package/systems/5e/images/painted-pottery.svg +0 -1
- package/systems/5e/images/palette.svg +0 -1
- package/systems/5e/images/pan-flute.svg +0 -1
- package/systems/5e/images/paper.svg +0 -1
- package/systems/5e/images/pegasus.svg +0 -1
- package/systems/5e/images/pencil.svg +0 -1
- package/systems/5e/images/perfume-bottle.svg +0 -1
- package/systems/5e/images/person.svg +0 -1
- package/systems/5e/images/pilgrim-hat.svg +0 -1
- package/systems/5e/images/pipes.svg +0 -1
- package/systems/5e/images/piranha.svg +0 -1
- package/systems/5e/images/plain-arrow.svg +0 -1
- package/systems/5e/images/plain-dagger.svg +0 -1
- package/systems/5e/images/plesiosaurus.svg +0 -1
- package/systems/5e/images/pointy-hat.svg +0 -1
- package/systems/5e/images/poison-bottle.svg +0 -1
- package/systems/5e/images/polar-bear.svg +0 -1
- package/systems/5e/images/powder-bag.svg +0 -1
- package/systems/5e/images/prayer-beads.svg +0 -1
- package/systems/5e/images/pulley-hook.svg +0 -1
- package/systems/5e/images/quill-ink.svg +0 -1
- package/systems/5e/images/quill.svg +0 -1
- package/systems/5e/images/quiver.svg +0 -1
- package/systems/5e/images/rat.svg +0 -1
- package/systems/5e/images/rattlesnake.svg +0 -1
- package/systems/5e/images/raven.svg +0 -1
- package/systems/5e/images/red-carpet.svg +0 -1
- package/systems/5e/images/rhinoceros-horn.svg +0 -1
- package/systems/5e/images/ring.svg +0 -1
- package/systems/5e/images/ringing-bell.svg +0 -1
- package/systems/5e/images/robber.svg +0 -1
- package/systems/5e/images/robe.svg +0 -1
- package/systems/5e/images/robin-hood-hat.svg +0 -1
- package/systems/5e/images/robot-golem.svg +0 -1
- package/systems/5e/images/rock-golem.svg +0 -1
- package/systems/5e/images/rolled-cloth.svg +0 -1
- package/systems/5e/images/rooster.svg +0 -1
- package/systems/5e/images/rope-coil.svg +0 -1
- package/systems/5e/images/round-bottom-flask.svg +0 -1
- package/systems/5e/images/round-potion.svg +0 -1
- package/systems/5e/images/rune-stone.svg +0 -1
- package/systems/5e/images/saber-toothed-cat-head.svg +0 -1
- package/systems/5e/images/saddle.svg +0 -1
- package/systems/5e/images/salamander.svg +0 -1
- package/systems/5e/images/scale-mail.svg +0 -1
- package/systems/5e/images/school-of-fish.svg +0 -1
- package/systems/5e/images/scorpion.svg +0 -1
- package/systems/5e/images/scroll-unfurled.svg +0 -1
- package/systems/5e/images/sea-serpent.svg +0 -1
- package/systems/5e/images/seahorse.svg +0 -1
- package/systems/5e/images/seated-mouse.svg +0 -1
- package/systems/5e/images/secret-book.svg +0 -1
- package/systems/5e/images/sensuousness.svg +0 -1
- package/systems/5e/images/sewing-needle.svg +0 -1
- package/systems/5e/images/shadow-follower.svg +0 -1
- package/systems/5e/images/shambling-mound.svg +0 -1
- package/systems/5e/images/shambling-zombie.svg +0 -1
- package/systems/5e/images/shark-fin.svg +0 -1
- package/systems/5e/images/shark-jaws.svg +0 -1
- package/systems/5e/images/shield.svg +0 -1
- package/systems/5e/images/shirt-button.svg +0 -1
- package/systems/5e/images/sickle.svg +0 -1
- package/systems/5e/images/siege-ram.svg +0 -1
- package/systems/5e/images/skeleton.svg +0 -1
- package/systems/5e/images/skull-staff.svg +0 -1
- package/systems/5e/images/sleeping-bag.svg +0 -1
- package/systems/5e/images/slime.svg +0 -1
- package/systems/5e/images/sling.svg +0 -1
- package/systems/5e/images/slippers.svg +0 -1
- package/systems/5e/images/small-fire.svg +0 -1
- package/systems/5e/images/small-fishing-sailboat.svg +0 -1
- package/systems/5e/images/smoking-orb.svg +0 -1
- package/systems/5e/images/snake-spiral.svg +0 -1
- package/systems/5e/images/snake-tongue.svg +0 -1
- package/systems/5e/images/snake-totem.svg +0 -1
- package/systems/5e/images/snake.svg +0 -1
- package/systems/5e/images/soap.svg +0 -1
- package/systems/5e/images/spade.svg +0 -1
- package/systems/5e/images/spark-spirit.svg +0 -1
- package/systems/5e/images/sparkling-sabre.svg +0 -1
- package/systems/5e/images/spartan.svg +0 -1
- package/systems/5e/images/spectre.svg +0 -1
- package/systems/5e/images/spell-book.svg +0 -1
- package/systems/5e/images/sperm-whale.svg +0 -1
- package/systems/5e/images/spider-alt.svg +0 -1
- package/systems/5e/images/spiked-armor.svg +0 -1
- package/systems/5e/images/spiked-dragon-head.svg +0 -1
- package/systems/5e/images/spiked-mace.svg +0 -1
- package/systems/5e/images/spiked-tail.svg +0 -1
- package/systems/5e/images/spikes.svg +0 -1
- package/systems/5e/images/spinning-wheel.svg +0 -1
- package/systems/5e/images/spotted-mushroom.svg +0 -1
- package/systems/5e/images/spy.svg +0 -1
- package/systems/5e/images/spyglass.svg +0 -1
- package/systems/5e/images/squid.svg +0 -1
- package/systems/5e/images/stag-head.svg +0 -1
- package/systems/5e/images/steam.svg +0 -1
- package/systems/5e/images/steampunk-goggles.svg +0 -1
- package/systems/5e/images/stone-block.svg +0 -1
- package/systems/5e/images/stone-pile.svg +0 -1
- package/systems/5e/images/stone-sphere.svg +0 -1
- package/systems/5e/images/straight-pipe.svg +0 -1
- package/systems/5e/images/sun-priest.svg +0 -1
- package/systems/5e/images/swap-bag.svg +0 -1
- package/systems/5e/images/thor-hammer.svg +0 -1
- package/systems/5e/images/thrown-spear.svg +0 -1
- package/systems/5e/images/tiara.svg +0 -1
- package/systems/5e/images/tick.svg +0 -1
- package/systems/5e/images/tied-scroll.svg +0 -1
- package/systems/5e/images/tiger-head.svg +0 -1
- package/systems/5e/images/tiger.svg +0 -1
- package/systems/5e/images/tinker.svg +0 -1
- package/systems/5e/images/toad-teeth.svg +0 -1
- package/systems/5e/images/torch.svg +0 -1
- package/systems/5e/images/tornado.svg +0 -1
- package/systems/5e/images/totem.svg +0 -1
- package/systems/5e/images/transparent-slime.svg +0 -1
- package/systems/5e/images/trap-mask.svg +0 -1
- package/systems/5e/images/treasure-map.svg +0 -1
- package/systems/5e/images/tree-face.svg +0 -1
- package/systems/5e/images/tribal-mask.svg +0 -1
- package/systems/5e/images/tribal-pendant.svg +0 -1
- package/systems/5e/images/triceratops-head.svg +0 -1
- package/systems/5e/images/trident.svg +0 -1
- package/systems/5e/images/triton-head.svg +0 -1
- package/systems/5e/images/troglodyte.svg +0 -1
- package/systems/5e/images/troll.svg +0 -1
- package/systems/5e/images/turtle.svg +0 -1
- package/systems/5e/images/two-handed-sword.svg +0 -1
- package/systems/5e/images/unicorn.svg +0 -1
- package/systems/5e/images/vampire-dracula.svg +0 -1
- package/systems/5e/images/vial.svg +0 -1
- package/systems/5e/images/viking-head.svg +0 -1
- package/systems/5e/images/violin.svg +0 -1
- package/systems/5e/images/visored-helm.svg +0 -1
- package/systems/5e/images/vulture.svg +0 -1
- package/systems/5e/images/war-axe.svg +0 -1
- package/systems/5e/images/war-pick.svg +0 -1
- package/systems/5e/images/warhammer.svg +0 -1
- package/systems/5e/images/warlord-helmet.svg +0 -1
- package/systems/5e/images/wasp-sting.svg +0 -1
- package/systems/5e/images/water-bottle.svg +0 -1
- package/systems/5e/images/waterskin.svg +0 -1
- package/systems/5e/images/wavy-chains.svg +0 -1
- package/systems/5e/images/wax-seal.svg +0 -1
- package/systems/5e/images/werewolf.svg +0 -1
- package/systems/5e/images/wheelbarrow.svg +0 -1
- package/systems/5e/images/whip.svg +0 -1
- package/systems/5e/images/whistle.svg +0 -1
- package/systems/5e/images/wing-cloak.svg +0 -1
- package/systems/5e/images/winged-scepter.svg +0 -1
- package/systems/5e/images/winged-sword.svg +0 -1
- package/systems/5e/images/witch-face.svg +0 -1
- package/systems/5e/images/wizard-face.svg +0 -1
- package/systems/5e/images/wizard-staff.svg +0 -1
- package/systems/5e/images/wolf-head.svg +0 -1
- package/systems/5e/images/wolf-howl.svg +0 -1
- package/systems/5e/images/wolf-trap.svg +0 -1
- package/systems/5e/images/woman-elf-face.svg +0 -1
- package/systems/5e/images/wood-canoe.svg +0 -1
- package/systems/5e/images/wood-club.svg +0 -1
- package/systems/5e/images/worm-mouth.svg +0 -1
- package/systems/5e/images/wyvern.svg +0 -1
- package/systems/5e/instructions/adventure.md +0 -4
- package/systems/5e/instructions/combat.md +0 -9
- package/systems/5e/instructions/import.md +0 -1
- package/systems/5e/instructions/level-up.md +0 -1
- package/systems/5e/instructions/mentor-tutorial.md +0 -1
- package/systems/5e/instructions/play.md +0 -7
- package/systems/5e/instructions/quest-ends.md +0 -1
- package/systems/5e/instructions/rest.md +0 -1
- package/systems/5e/instructions/session-zero.md +0 -5
- package/systems/5e/instructions/setup.md +0 -1
- package/systems/5e/package.json +0 -13
- package/systems/5e/rules/Adventuring.md +0 -228
- package/systems/5e/rules/Beyond 1st Level.md +0 -241
- package/systems/5e/rules/Combat Encounters.md +0 -103
- package/systems/5e/rules/Combat.md +0 -504
- package/systems/5e/rules/Conditions.md +0 -110
- package/systems/5e/rules/Diseases.md +0 -41
- package/systems/5e/rules/Equipment.md +0 -731
- package/systems/5e/rules/Fantasy-Historical Pantheons.md +0 -112
- package/systems/5e/rules/Madness.md +0 -72
- package/systems/5e/rules/Magic Items.md +0 -142
- package/systems/5e/rules/Monsters.md +0 -403
- package/systems/5e/rules/Nonplayer Characters.md +0 -15
- package/systems/5e/rules/Objects.md +0 -40
- package/systems/5e/rules/Poisons.md +0 -64
- package/systems/5e/rules/Races.md +0 -33
- package/systems/5e/rules/Spellcasting.md +0 -225
- package/systems/5e/rules/The Planes of Existence.md +0 -59
- package/systems/5e/rules/Traps.md +0 -170
- package/systems/5e/rules/Using Ability Scores.md +0 -394
- package/systems/5e/system.yaml +0 -847
- package/systems/5e/versions/srd-5.1/system.yaml +0 -2
- package/systems/5e/words/ar.yaml +0 -533
- package/systems/5e/words/cs.yaml +0 -533
- package/systems/5e/words/da.yaml +0 -533
- package/systems/5e/words/de.yaml +0 -533
- package/systems/5e/words/el.yaml +0 -533
- package/systems/5e/words/en.yaml +0 -20
- package/systems/5e/words/es.yaml +0 -533
- package/systems/5e/words/fi.yaml +0 -533
- package/systems/5e/words/fr.yaml +0 -533
- package/systems/5e/words/he.yaml +0 -533
- package/systems/5e/words/hi.yaml +0 -533
- package/systems/5e/words/hu.yaml +0 -533
- package/systems/5e/words/is.yaml +0 -533
- package/systems/5e/words/it.yaml +0 -575
- package/systems/5e/words/ja.yaml +0 -533
- package/systems/5e/words/ko.yaml +0 -533
- package/systems/5e/words/nb.yaml +0 -533
- package/systems/5e/words/nl.yaml +0 -533
- package/systems/5e/words/pl.yaml +0 -533
- package/systems/5e/words/pt.yaml +0 -533
- package/systems/5e/words/ro.yaml +0 -533
- package/systems/5e/words/ru.yaml +0 -533
- package/systems/5e/words/sv.yaml +0 -533
- package/systems/5e/words/tr.yaml +0 -533
- package/systems/5e/words/uk.yaml +0 -533
- package/systems/5e/words/zh.yaml +0 -533
- package/systems/5e/world/creatures/Aboleth.md +0 -66
- package/systems/5e/world/creatures/Acolyte.md +0 -37
- package/systems/5e/world/creatures/Adult Black Dragon.md +0 -71
- package/systems/5e/world/creatures/Adult Blue Dragon.md +0 -68
- package/systems/5e/world/creatures/Adult Brass Dragon.md +0 -72
- package/systems/5e/world/creatures/Adult Bronze Dragon.md +0 -80
- package/systems/5e/world/creatures/Adult Copper Dragon.md +0 -72
- package/systems/5e/world/creatures/Adult Gold Dragon.md +0 -80
- package/systems/5e/world/creatures/Adult Green Dragon.md +0 -72
- package/systems/5e/world/creatures/Adult Red Dragon.md +0 -68
- package/systems/5e/world/creatures/Adult Silver Dragon.md +0 -76
- package/systems/5e/world/creatures/Adult White Dragon.md +0 -72
- package/systems/5e/world/creatures/Air Elemental.md +0 -43
- package/systems/5e/world/creatures/Ancient Black Dragon.md +0 -71
- package/systems/5e/world/creatures/Ancient Blue Dragon.md +0 -68
- package/systems/5e/world/creatures/Ancient Brass Dragon.md +0 -77
- package/systems/5e/world/creatures/Ancient Bronze Dragon.md +0 -80
- package/systems/5e/world/creatures/Ancient Copper Dragon.md +0 -77
- package/systems/5e/world/creatures/Ancient Gold Dragon.md +0 -80
- package/systems/5e/world/creatures/Ancient Green Dragon.md +0 -72
- package/systems/5e/world/creatures/Ancient Red Dragon.md +0 -68
- package/systems/5e/world/creatures/Ancient Silver Dragon.md +0 -76
- package/systems/5e/world/creatures/Ancient White Dragon.md +0 -72
- package/systems/5e/world/creatures/Androsphinx.md +0 -83
- package/systems/5e/world/creatures/Animated Armor.md +0 -39
- package/systems/5e/world/creatures/Ankheg.md +0 -31
- package/systems/5e/world/creatures/Ape.md +0 -32
- package/systems/5e/world/creatures/Archmage.md +0 -63
- package/systems/5e/world/creatures/Assassin.md +0 -48
- package/systems/5e/world/creatures/Awakened Shrub.md +0 -34
- package/systems/5e/world/creatures/Awakened Tree.md +0 -35
- package/systems/5e/world/creatures/Axe Beak.md +0 -26
- package/systems/5e/world/creatures/Azer.md +0 -40
- package/systems/5e/world/creatures/Baboon.md +0 -30
- package/systems/5e/world/creatures/Badger.md +0 -31
- package/systems/5e/world/creatures/Balor.md +0 -55
- package/systems/5e/world/creatures/Bandit Captain.md +0 -45
- package/systems/5e/world/creatures/Bandit.md +0 -33
- package/systems/5e/world/creatures/Barbed Devil.md +0 -52
- package/systems/5e/world/creatures/Basilisk.md +0 -35
- package/systems/5e/world/creatures/Bat.md +0 -34
- package/systems/5e/world/creatures/Bearded Devil.md +0 -48
- package/systems/5e/world/creatures/Behir.md +0 -44
- package/systems/5e/world/creatures/Berserker.md +0 -33
- package/systems/5e/world/creatures/Black Bear.md +0 -38
- package/systems/5e/world/creatures/Black Dragon Wyrmling.md +0 -41
- package/systems/5e/world/creatures/Black Pudding.md +0 -46
- package/systems/5e/world/creatures/Blink Dog.md +0 -36
- package/systems/5e/world/creatures/Blood Hawk.md +0 -36
- package/systems/5e/world/creatures/Blue Dragon Wyrmling.md +0 -36
- package/systems/5e/world/creatures/Boar.md +0 -33
- package/systems/5e/world/creatures/Bone Devil.md +0 -47
- package/systems/5e/world/creatures/Brass Dragon Wyrmling.md +0 -40
- package/systems/5e/world/creatures/Bronze Dragon Wyrmling.md +0 -45
- package/systems/5e/world/creatures/Brown Bear.md +0 -38
- package/systems/5e/world/creatures/Bugbear.md +0 -39
- package/systems/5e/world/creatures/Bulette.md +0 -37
- package/systems/5e/world/creatures/Camel.md +0 -24
- package/systems/5e/world/creatures/Cat.md +0 -31
- package/systems/5e/world/creatures/Centaur.md +0 -40
- package/systems/5e/world/creatures/Chain Devil.md +0 -52
- package/systems/5e/world/creatures/Chimera.md +0 -41
- package/systems/5e/world/creatures/Chuul.md +0 -45
- package/systems/5e/world/creatures/Clay Golem.md +0 -52
- package/systems/5e/world/creatures/Cloaker.md +0 -56
- package/systems/5e/world/creatures/Cloud Giant.md +0 -46
- package/systems/5e/world/creatures/Cockatrice.md +0 -26
- package/systems/5e/world/creatures/Commoner.md +0 -27
- package/systems/5e/world/creatures/Constrictor Snake.md +0 -29
- package/systems/5e/world/creatures/Copper Dragon Wyrmling.md +0 -40
- package/systems/5e/world/creatures/Couatl.md +0 -54
- package/systems/5e/world/creatures/Crab.md +0 -33
- package/systems/5e/world/creatures/Crocodile.md +0 -32
- package/systems/5e/world/creatures/Cult Fanatic.md +0 -46
- package/systems/5e/world/creatures/Cultist.md +0 -34
- package/systems/5e/world/creatures/Darkmantle.md +0 -42
- package/systems/5e/world/creatures/Death Dog.md +0 -36
- package/systems/5e/world/creatures/Deep Gnome (Svirfneblin).md +0 -46
- package/systems/5e/world/creatures/Deer.md +0 -24
- package/systems/5e/world/creatures/Deva.md +0 -57
- package/systems/5e/world/creatures/Dire Wolf.md +0 -34
- package/systems/5e/world/creatures/Djinni.md +0 -50
- package/systems/5e/world/creatures/Doppelganger.md +0 -45
- package/systems/5e/world/creatures/Draft Horse.md +0 -24
- package/systems/5e/world/creatures/Dragon Turtle.md +0 -47
- package/systems/5e/world/creatures/Dragonborn.md +0 -58
- package/systems/5e/world/creatures/Dretch.md +0 -39
- package/systems/5e/world/creatures/Drider.md +0 -58
- package/systems/5e/world/creatures/Drow Elf.md +0 -46
- package/systems/5e/world/creatures/Druid (creature).md +0 -41
- package/systems/5e/world/creatures/Dryad.md +0 -53
- package/systems/5e/world/creatures/Duergar.md +0 -45
- package/systems/5e/world/creatures/Dust Mephit.md +0 -42
- package/systems/5e/world/creatures/Dwarf.md +0 -49
- package/systems/5e/world/creatures/Eagle.md +0 -31
- package/systems/5e/world/creatures/Earth Elemental.md +0 -44
- package/systems/5e/world/creatures/Efreeti.md +0 -48
- package/systems/5e/world/creatures/Elephant.md +0 -33
- package/systems/5e/world/creatures/Elf.md +0 -44
- package/systems/5e/world/creatures/Elk.md +0 -32
- package/systems/5e/world/creatures/Erinyes.md +0 -51
- package/systems/5e/world/creatures/Ettercap.md +0 -48
- package/systems/5e/world/creatures/Ettin.md +0 -42
- package/systems/5e/world/creatures/Fire Elemental.md +0 -43
- package/systems/5e/world/creatures/Fire Giant.md +0 -35
- package/systems/5e/world/creatures/Flesh Golem.md +0 -53
- package/systems/5e/world/creatures/Flying Snake.md +0 -34
- package/systems/5e/world/creatures/Flying Sword.md +0 -38
- package/systems/5e/world/creatures/Frog.md +0 -32
- package/systems/5e/world/creatures/Frost Giant.md +0 -35
- package/systems/5e/world/creatures/Gargoyle.md +0 -42
- package/systems/5e/world/creatures/Gelatinous Cube.md +0 -49
- package/systems/5e/world/creatures/Ghast.md +0 -40
- package/systems/5e/world/creatures/Ghost.md +0 -49
- package/systems/5e/world/creatures/Ghoul.md +0 -31
- package/systems/5e/world/creatures/Giant Ape.md +0 -32
- package/systems/5e/world/creatures/Giant Badger.md +0 -37
- package/systems/5e/world/creatures/Giant Bat.md +0 -34
- package/systems/5e/world/creatures/Giant Boar.md +0 -33
- package/systems/5e/world/creatures/Giant Centipede.md +0 -27
- package/systems/5e/world/creatures/Giant Constrictor Snake.md +0 -30
- package/systems/5e/world/creatures/Giant Crab.md +0 -33
- package/systems/5e/world/creatures/Giant Crocodile.md +0 -38
- package/systems/5e/world/creatures/Giant Eagle.md +0 -40
- package/systems/5e/world/creatures/Giant Elk.md +0 -37
- package/systems/5e/world/creatures/Giant Fire Beetle.md +0 -33
- package/systems/5e/world/creatures/Giant Frog.md +0 -40
- package/systems/5e/world/creatures/Giant Goat.md +0 -33
- package/systems/5e/world/creatures/Giant Hyena.md +0 -30
- package/systems/5e/world/creatures/Giant Lizard.md +0 -29
- package/systems/5e/world/creatures/Giant Octopus.md +0 -41
- package/systems/5e/world/creatures/Giant Owl.md +0 -38
- package/systems/5e/world/creatures/Giant Poisonous Snake.md +0 -27
- package/systems/5e/world/creatures/Giant Rat.md +0 -39
- package/systems/5e/world/creatures/Giant Scorpion.md +0 -32
- package/systems/5e/world/creatures/Giant Sea Horse.md +0 -36
- package/systems/5e/world/creatures/Giant Shark.md +0 -38
- package/systems/5e/world/creatures/Giant Spider.md +0 -45
- package/systems/5e/world/creatures/Giant Toad.md +0 -39
- package/systems/5e/world/creatures/Giant Vulture.md +0 -43
- package/systems/5e/world/creatures/Giant Wasp.md +0 -25
- package/systems/5e/world/creatures/Giant Weasel.md +0 -31
- package/systems/5e/world/creatures/Giant Wolf Spider.md +0 -41
- package/systems/5e/world/creatures/Gibbering Mouther.md +0 -41
- package/systems/5e/world/creatures/Glabrezu.md +0 -48
- package/systems/5e/world/creatures/Gladiator.md +0 -49
- package/systems/5e/world/creatures/Gnoll.md +0 -38
- package/systems/5e/world/creatures/Gnome.md +0 -37
- package/systems/5e/world/creatures/Goat.md +0 -32
- package/systems/5e/world/creatures/Goblin.md +0 -36
- package/systems/5e/world/creatures/Gold Dragon Wyrmling.md +0 -45
- package/systems/5e/world/creatures/Gorgon.md +0 -39
- package/systems/5e/world/creatures/Gray Ooze.md +0 -42
- package/systems/5e/world/creatures/Green Dragon Wyrmling.md +0 -42
- package/systems/5e/world/creatures/Green Hag.md +0 -49
- package/systems/5e/world/creatures/Grick.md +0 -39
- package/systems/5e/world/creatures/Griffon.md +0 -38
- package/systems/5e/world/creatures/Grimlock.md +0 -39
- package/systems/5e/world/creatures/Guard.md +0 -29
- package/systems/5e/world/creatures/Guardian Naga.md +0 -55
- package/systems/5e/world/creatures/Gynosphinx.md +0 -72
- package/systems/5e/world/creatures/Half-Elf.md +0 -40
- package/systems/5e/world/creatures/Half-Orc.md +0 -44
- package/systems/5e/world/creatures/Half-Red Dragon Veteran.md +0 -42
- package/systems/5e/world/creatures/Halfling.md +0 -39
- package/systems/5e/world/creatures/Harpy.md +0 -39
- package/systems/5e/world/creatures/Hawk.md +0 -31
- package/systems/5e/world/creatures/Hell Hound.md +0 -40
- package/systems/5e/world/creatures/Hezrou.md +0 -45
- package/systems/5e/world/creatures/High Elf.md +0 -22
- package/systems/5e/world/creatures/Hill Dwarf.md +0 -16
- package/systems/5e/world/creatures/Hill Giant.md +0 -33
- package/systems/5e/world/creatures/Hippogriff.md +0 -37
- package/systems/5e/world/creatures/Hobgoblin.md +0 -35
- package/systems/5e/world/creatures/Homunculus.md +0 -35
- package/systems/5e/world/creatures/Horned Devil.md +0 -49
- package/systems/5e/world/creatures/Human.md +0 -29
- package/systems/5e/world/creatures/Hunter Shark.md +0 -38
- package/systems/5e/world/creatures/Hydra.md +0 -49
- package/systems/5e/world/creatures/Hyena.md +0 -30
- package/systems/5e/world/creatures/Ice Devil.md +0 -56
- package/systems/5e/world/creatures/Ice Mephit.md +0 -45
- package/systems/5e/world/creatures/Imp.md +0 -45
- package/systems/5e/world/creatures/Invisible Stalker.md +0 -42
- package/systems/5e/world/creatures/Iron Golem.md +0 -52
- package/systems/5e/world/creatures/Jackal.md +0 -33
- package/systems/5e/world/creatures/Killer Whale.md +0 -39
- package/systems/5e/world/creatures/Knight.md +0 -48
- package/systems/5e/world/creatures/Kobold.md +0 -37
- package/systems/5e/world/creatures/Kraken.md +0 -70
- package/systems/5e/world/creatures/Lamia.md +0 -46
- package/systems/5e/world/creatures/Lemure.md +0 -37
- package/systems/5e/world/creatures/Lich.md +0 -84
- package/systems/5e/world/creatures/Lightfoot Halfling.md +0 -18
- package/systems/5e/world/creatures/Lion.md +0 -42
- package/systems/5e/world/creatures/Lizard.md +0 -26
- package/systems/5e/world/creatures/Lizardfolk.md +0 -45
- package/systems/5e/world/creatures/Mage.md +0 -47
- package/systems/5e/world/creatures/Magma Mephit.md +0 -45
- package/systems/5e/world/creatures/Magmin.md +0 -37
- package/systems/5e/world/creatures/Mammoth.md +0 -35
- package/systems/5e/world/creatures/Manticore.md +0 -42
- package/systems/5e/world/creatures/Marilith.md +0 -56
- package/systems/5e/world/creatures/Mastiff.md +0 -32
- package/systems/5e/world/creatures/Medusa.md +0 -46
- package/systems/5e/world/creatures/Merfolk.md +0 -32
- package/systems/5e/world/creatures/Merrow.md +0 -42
- package/systems/5e/world/creatures/Mimic.md +0 -46
- package/systems/5e/world/creatures/Minotaur Skeleton.md +0 -38
- package/systems/5e/world/creatures/Minotaur.md +0 -42
- package/systems/5e/world/creatures/Mule.md +0 -32
- package/systems/5e/world/creatures/Mummy Lord.md +0 -83
- package/systems/5e/world/creatures/Mummy.md +0 -38
- package/systems/5e/world/creatures/Nalfeshnee.md +0 -49
- package/systems/5e/world/creatures/Night Hag.md +0 -50
- package/systems/5e/world/creatures/Nightmare.md +0 -39
- package/systems/5e/world/creatures/Noble.md +0 -36
- package/systems/5e/world/creatures/Ochre Jelly.md +0 -42
- package/systems/5e/world/creatures/Octopus.md +0 -41
- package/systems/5e/world/creatures/Ogre Zombie.md +0 -34
- package/systems/5e/world/creatures/Ogre.md +0 -30
- package/systems/5e/world/creatures/Oni.md +0 -53
- package/systems/5e/world/creatures/Orc.md +0 -36
- package/systems/5e/world/creatures/Otyugh.md +0 -42
- package/systems/5e/world/creatures/Owl.md +0 -35
- package/systems/5e/world/creatures/Owlbear.md +0 -38
- package/systems/5e/world/creatures/Panther.md +0 -37
- package/systems/5e/world/creatures/Pegasus.md +0 -28
- package/systems/5e/world/creatures/Phase Spider.md +0 -41
- package/systems/5e/world/creatures/Pit Fiend.md +0 -61
- package/systems/5e/world/creatures/Planetar.md +0 -56
- package/systems/5e/world/creatures/Plesiosaurus.md +0 -32
- package/systems/5e/world/creatures/Poisonous Snake.md +0 -26
- package/systems/5e/world/creatures/Polar Bear.md +0 -38
- package/systems/5e/world/creatures/Pony.md +0 -24
- package/systems/5e/world/creatures/Priest.md +0 -47
- package/systems/5e/world/creatures/Pseudodragon.md +0 -44
- package/systems/5e/world/creatures/Purple Worm.md +0 -42
- package/systems/5e/world/creatures/Quasit.md +0 -44
- package/systems/5e/world/creatures/Quipper.md +0 -36
- package/systems/5e/world/creatures/Rakshasa.md +0 -45
- package/systems/5e/world/creatures/Rat.md +0 -30
- package/systems/5e/world/creatures/Raven.md +0 -31
- package/systems/5e/world/creatures/Red Dragon Wyrmling.md +0 -36
- package/systems/5e/world/creatures/Reef Shark.md +0 -38
- package/systems/5e/world/creatures/Remorhaz.md +0 -39
- package/systems/5e/world/creatures/Rhinoceros.md +0 -30
- package/systems/5e/world/creatures/Riding Horse.md +0 -24
- package/systems/5e/world/creatures/Roc.md +0 -39
- package/systems/5e/world/creatures/Rock Gnome.md +0 -27
- package/systems/5e/world/creatures/Roper.md +0 -48
- package/systems/5e/world/creatures/Rug of Smothering.md +0 -38
- package/systems/5e/world/creatures/Rust Monster.md +0 -39
- package/systems/5e/world/creatures/Saber-Toothed Tiger.md +0 -36
- package/systems/5e/world/creatures/Sahuagin.md +0 -49
- package/systems/5e/world/creatures/Salamander.md +0 -44
- package/systems/5e/world/creatures/Satyr.md +0 -38
- package/systems/5e/world/creatures/Scorpion.md +0 -26
- package/systems/5e/world/creatures/Scout.md +0 -40
- package/systems/5e/world/creatures/Sea Hag.md +0 -46
- package/systems/5e/world/creatures/Sea Horse.md +0 -25
- package/systems/5e/world/creatures/Shadow.md +0 -45
- package/systems/5e/world/creatures/Shambling Mound.md +0 -42
- package/systems/5e/world/creatures/Shield Guardian.md +0 -49
- package/systems/5e/world/creatures/Shrieker.md +0 -31
- package/systems/5e/world/creatures/Silver Dragon Wyrmling.md +0 -39
- package/systems/5e/world/creatures/Skeleton.md +0 -33
- package/systems/5e/world/creatures/Solar.md +0 -77
- package/systems/5e/world/creatures/Specter.md +0 -38
- package/systems/5e/world/creatures/Spider.md +0 -38
- package/systems/5e/world/creatures/Spirit Naga.md +0 -50
- package/systems/5e/world/creatures/Sprite.md +0 -37
- package/systems/5e/world/creatures/Spy.md +0 -42
- package/systems/5e/world/creatures/Steam Mephit.md +0 -40
- package/systems/5e/world/creatures/Stirge.md +0 -29
- package/systems/5e/world/creatures/Stone Giant.md +0 -45
- package/systems/5e/world/creatures/Stone Golem.md +0 -46
- package/systems/5e/world/creatures/Storm Giant.md +0 -51
- package/systems/5e/world/creatures/Succubus-Incubus.md +0 -50
- package/systems/5e/world/creatures/Swarm of Bats.md +0 -39
- package/systems/5e/world/creatures/Swarm of Insects.md +0 -52
- package/systems/5e/world/creatures/Swarm of Poisonous Snakes.md +0 -33
- package/systems/5e/world/creatures/Swarm of Quippers.md +0 -39
- package/systems/5e/world/creatures/Swarm of Rats.md +0 -35
- package/systems/5e/world/creatures/Swarm of Ravens.md +0 -33
- package/systems/5e/world/creatures/Tarrasque.md +0 -78
- package/systems/5e/world/creatures/Thug.md +0 -40
- package/systems/5e/world/creatures/Tiefling.md +0 -40
- package/systems/5e/world/creatures/Tiger.md +0 -37
- package/systems/5e/world/creatures/Treant.md +0 -45
- package/systems/5e/world/creatures/Tribal Warrior.md +0 -33
- package/systems/5e/world/creatures/Triceratops.md +0 -33
- package/systems/5e/world/creatures/Troll.md +0 -42
- package/systems/5e/world/creatures/Tyrannosaurus Rex.md +0 -32
- package/systems/5e/world/creatures/Unicorn.md +0 -71
- package/systems/5e/world/creatures/Vampire Spawn.md +0 -55
- package/systems/5e/world/creatures/Vampire.md +0 -93
- package/systems/5e/world/creatures/Veteran.md +0 -38
- package/systems/5e/world/creatures/Violet Fungus.md +0 -34
- package/systems/5e/world/creatures/Vrock.md +0 -49
- package/systems/5e/world/creatures/Vulture.md +0 -34
- package/systems/5e/world/creatures/Warhorse Skeleton.md +0 -29
- package/systems/5e/world/creatures/Warhorse.md +0 -29
- package/systems/5e/world/creatures/Water Elemental.md +0 -47
- package/systems/5e/world/creatures/Weasel.md +0 -30
- package/systems/5e/world/creatures/Werebear.md +0 -45
- package/systems/5e/world/creatures/Wereboar.md +0 -45
- package/systems/5e/world/creatures/Wererat.md +0 -45
- package/systems/5e/world/creatures/Weretiger.md +0 -51
- package/systems/5e/world/creatures/Werewolf.md +0 -45
- package/systems/5e/world/creatures/White Dragon Wyrmling.md +0 -37
- package/systems/5e/world/creatures/Wight.md +0 -47
- package/systems/5e/world/creatures/Will-o'-Wisp.md +0 -47
- package/systems/5e/world/creatures/Winter Wolf.md +0 -44
- package/systems/5e/world/creatures/Wolf.md +0 -34
- package/systems/5e/world/creatures/Worg.md +0 -35
- package/systems/5e/world/creatures/Wraith.md +0 -41
- package/systems/5e/world/creatures/Wyvern.md +0 -37
- package/systems/5e/world/creatures/Xorn.md +0 -48
- package/systems/5e/world/creatures/Young Black Dragon.md +0 -47
- package/systems/5e/world/creatures/Young Blue Dragon.md +0 -42
- package/systems/5e/world/creatures/Young Brass Dragon.md +0 -46
- package/systems/5e/world/creatures/Young Bronze Dragon.md +0 -51
- package/systems/5e/world/creatures/Young Copper Dragon.md +0 -46
- package/systems/5e/world/creatures/Young Gold Dragon.md +0 -51
- package/systems/5e/world/creatures/Young Green Dragon.md +0 -48
- package/systems/5e/world/creatures/Young Red Dragon.md +0 -42
- package/systems/5e/world/creatures/Young Silver Dragon.md +0 -45
- package/systems/5e/world/creatures/Young White Dragon.md +0 -48
- package/systems/5e/world/creatures/Zombie.md +0 -34
- package/systems/5e/world/items/Abacus.md +0 -6
- package/systems/5e/world/items/Acid.md +0 -9
- package/systems/5e/world/items/Adamantine Armor.md +0 -7
- package/systems/5e/world/items/Alchemist's Fire.md +0 -9
- package/systems/5e/world/items/Alchemist's Supplies.md +0 -8
- package/systems/5e/world/items/Ammunition, +1, +2, or +3.md +0 -7
- package/systems/5e/world/items/Amulet of Health.md +0 -9
- package/systems/5e/world/items/Amulet of Proof against Detection and Location.md +0 -8
- package/systems/5e/world/items/Amulet of the Planes.md +0 -8
- package/systems/5e/world/items/Amulet.md +0 -8
- package/systems/5e/world/items/Animated Shield.md +0 -8
- package/systems/5e/world/items/Antitoxin.md +0 -8
- package/systems/5e/world/items/Apparatus of the Crab.md +0 -38
- package/systems/5e/world/items/Armor of Invulnerability.md +0 -9
- package/systems/5e/world/items/Armor of Resistance.md +0 -16
- package/systems/5e/world/items/Armor of Vulnerability.md +0 -10
- package/systems/5e/world/items/Armor, +1, +2, or +3.md +0 -7
- package/systems/5e/world/items/Arrow of Slaying.md +0 -11
- package/systems/5e/world/items/Arrow-Catching Shield.md +0 -8
- package/systems/5e/world/items/Arrows.md +0 -8
- package/systems/5e/world/items/Backpack.md +0 -6
- package/systems/5e/world/items/Bag of Beans.md +0 -26
- package/systems/5e/world/items/Bag of Devouring.md +0 -13
- package/systems/5e/world/items/Bag of Holding.md +0 -13
- package/systems/5e/world/items/Bag of Tricks.md +0 -52
- package/systems/5e/world/items/Bagpipes.md +0 -8
- package/systems/5e/world/items/Ball Bearings.md +0 -9
- package/systems/5e/world/items/Barding.md +0 -8
- package/systems/5e/world/items/Barrel.md +0 -6
- package/systems/5e/world/items/Basic Poison.md +0 -8
- package/systems/5e/world/items/Basket.md +0 -6
- package/systems/5e/world/items/Battleaxe.md +0 -11
- package/systems/5e/world/items/Bead of Force.md +0 -11
- package/systems/5e/world/items/Bedroll.md +0 -6
- package/systems/5e/world/items/Bell.md +0 -5
- package/systems/5e/world/items/Belt of Dwarvenkind.md +0 -19
- package/systems/5e/world/items/Belt of Giant Strength.md +0 -18
- package/systems/5e/world/items/Berserker Axe.md +0 -12
- package/systems/5e/world/items/Bit and Bridle.md +0 -6
- package/systems/5e/world/items/Blanket.md +0 -6
- package/systems/5e/world/items/Block and Tackle.md +0 -8
- package/systems/5e/world/items/Blowgun Needles.md +0 -8
- package/systems/5e/world/items/Blowgun.md +0 -11
- package/systems/5e/world/items/Book.md +0 -8
- package/systems/5e/world/items/Boots of Elvenkind.md +0 -7
- package/systems/5e/world/items/Boots of Levitation.md +0 -8
- package/systems/5e/world/items/Boots of Speed.md +0 -10
- package/systems/5e/world/items/Boots of Striding and Springing.md +0 -8
- package/systems/5e/world/items/Boots of the Winterlands.md +0 -13
- package/systems/5e/world/items/Bowl of Commanding Water Elementals.md +0 -9
- package/systems/5e/world/items/Bracers of Archery.md +0 -8
- package/systems/5e/world/items/Bracers of Defense.md +0 -8
- package/systems/5e/world/items/Brazier of Commanding Fire Elementals.md +0 -9
- package/systems/5e/world/items/Breastplate.md +0 -10
- package/systems/5e/world/items/Brewer's Supplies.md +0 -8
- package/systems/5e/world/items/Brooch of Shielding.md +0 -9
- package/systems/5e/world/items/Broom of Flying.md +0 -9
- package/systems/5e/world/items/Bucket.md +0 -6
- package/systems/5e/world/items/Bullseye Lantern.md +0 -9
- package/systems/5e/world/items/Burglar's Pack.md +0 -9
- package/systems/5e/world/items/Calligrapher's Supplies.md +0 -8
- package/systems/5e/world/items/Caltrops.md +0 -9
- package/systems/5e/world/items/Candle of Invocation.md +0 -26
- package/systems/5e/world/items/Candle.md +0 -7
- package/systems/5e/world/items/Cape of the Mountebank.md +0 -9
- package/systems/5e/world/items/Carpenter's Tools.md +0 -8
- package/systems/5e/world/items/Carpet of Flying.md +0 -18
- package/systems/5e/world/items/Carriage.md +0 -6
- package/systems/5e/world/items/Cart.md +0 -6
- package/systems/5e/world/items/Cartographer's Tools.md +0 -8
- package/systems/5e/world/items/Censer of Controlling Air Elementals.md +0 -9
- package/systems/5e/world/items/Chain Mail.md +0 -13
- package/systems/5e/world/items/Chain Shirt.md +0 -10
- package/systems/5e/world/items/Chain.md +0 -10
- package/systems/5e/world/items/Chalk.md +0 -6
- package/systems/5e/world/items/Chariot.md +0 -6
- package/systems/5e/world/items/Chest.md +0 -6
- package/systems/5e/world/items/Chime of Opening.md +0 -9
- package/systems/5e/world/items/Circlet of Blasting.md +0 -7
- package/systems/5e/world/items/Climber's Kit.md +0 -8
- package/systems/5e/world/items/Cloak of Arachnida.md +0 -15
- package/systems/5e/world/items/Cloak of Displacement.md +0 -8
- package/systems/5e/world/items/Cloak of Elvenkind.md +0 -8
- package/systems/5e/world/items/Cloak of Protection.md +0 -10
- package/systems/5e/world/items/Cloak of the Bat.md +0 -10
- package/systems/5e/world/items/Cloak of the Manta Ray.md +0 -7
- package/systems/5e/world/items/Club.md +0 -11
- package/systems/5e/world/items/Cobbler's Tools.md +0 -8
- package/systems/5e/world/items/Common Clothes.md +0 -7
- package/systems/5e/world/items/Component Pouch.md +0 -8
- package/systems/5e/world/items/Cook's Utensils.md +0 -8
- package/systems/5e/world/items/Costume Clothes.md +0 -7
- package/systems/5e/world/items/Crossbow Bolt Case.md +0 -9
- package/systems/5e/world/items/Crossbow Bolts.md +0 -8
- package/systems/5e/world/items/Crowbar.md +0 -8
- package/systems/5e/world/items/Crystal Ball.md +0 -16
- package/systems/5e/world/items/Crystal.md +0 -8
- package/systems/5e/world/items/Cube of Force.md +0 -34
- package/systems/5e/world/items/Cubic Gate.md +0 -12
- package/systems/5e/world/items/Dagger of Venom.md +0 -9
- package/systems/5e/world/items/Dagger.md +0 -11
- package/systems/5e/world/items/Dancing Sword.md +0 -12
- package/systems/5e/world/items/Dart.md +0 -11
- package/systems/5e/world/items/Decanter of Endless Water.md +0 -13
- package/systems/5e/world/items/Deck of Illusions.md +0 -49
- package/systems/5e/world/items/Deck of Many Things.md +0 -114
- package/systems/5e/world/items/Defender.md +0 -10
- package/systems/5e/world/items/Demon Armor.md +0 -10
- package/systems/5e/world/items/Dice Set.md +0 -7
- package/systems/5e/world/items/Dimensional Shackles.md +0 -9
- package/systems/5e/world/items/Diplomat's Pack.md +0 -9
- package/systems/5e/world/items/Disguise Kit.md +0 -8
- package/systems/5e/world/items/Dragon Scale Mail.md +0 -20
- package/systems/5e/world/items/Dragon Slayer.md +0 -9
- package/systems/5e/world/items/Drum.md +0 -8
- package/systems/5e/world/items/Dulcimer.md +0 -8
- package/systems/5e/world/items/Dungeoneer's Pack.md +0 -9
- package/systems/5e/world/items/Dust of Disappearance.md +0 -7
- package/systems/5e/world/items/Dust of Dryness.md +0 -11
- package/systems/5e/world/items/Dust of Sneezing and Choking.md +0 -9
- package/systems/5e/world/items/Dwarven Plate.md +0 -7
- package/systems/5e/world/items/Dwarven Thrower.md +0 -8
- package/systems/5e/world/items/Efficient Quiver.md +0 -9
- package/systems/5e/world/items/Efreeti Bottle.md +0 -15
- package/systems/5e/world/items/Elemental Gem.md +0 -14
- package/systems/5e/world/items/Elven Chain.md +0 -7
- package/systems/5e/world/items/Emblem.md +0 -7
- package/systems/5e/world/items/Entertainer's Pack.md +0 -9
- package/systems/5e/world/items/Eversmoking Bottle.md +0 -9
- package/systems/5e/world/items/Exotic Saddle.md +0 -8
- package/systems/5e/world/items/Explorer's Pack.md +0 -9
- package/systems/5e/world/items/Eyes of Charming.md +0 -8
- package/systems/5e/world/items/Eyes of Minute Seeing.md +0 -7
- package/systems/5e/world/items/Eyes of the Eagle.md +0 -8
- package/systems/5e/world/items/Feather Token.md +0 -27
- package/systems/5e/world/items/Feed.md +0 -7
- package/systems/5e/world/items/Figurine of Wondrous Power.md +0 -53
- package/systems/5e/world/items/Fine Clothes.md +0 -7
- package/systems/5e/world/items/Fishing Tackle.md +0 -8
- package/systems/5e/world/items/Flail.md +0 -10
- package/systems/5e/world/items/Flame Tongue.md +0 -8
- package/systems/5e/world/items/Flask or Tankard.md +0 -6
- package/systems/5e/world/items/Flute.md +0 -8
- package/systems/5e/world/items/Folding Boat.md +0 -15
- package/systems/5e/world/items/Forgery Kit.md +0 -8
- package/systems/5e/world/items/Frost Brand.md +0 -13
- package/systems/5e/world/items/Galley.md +0 -6
- package/systems/5e/world/items/Gauntlets of Ogre Power.md +0 -9
- package/systems/5e/world/items/Gem of Brightness.md +0 -14
- package/systems/5e/world/items/Gem of Seeing.md +0 -11
- package/systems/5e/world/items/Giant Slayer.md +0 -9
- package/systems/5e/world/items/Glaive.md +0 -11
- package/systems/5e/world/items/Glamoured Studded Leather.md +0 -7
- package/systems/5e/world/items/Glass Bottle.md +0 -7
- package/systems/5e/world/items/Glassblower's Tools.md +0 -8
- package/systems/5e/world/items/Gloves of Missile Snaring.md +0 -8
- package/systems/5e/world/items/Gloves of Swimming and Climbing.md +0 -8
- package/systems/5e/world/items/Goggles of Night.md +0 -7
- package/systems/5e/world/items/Grappling Hook.md +0 -6
- package/systems/5e/world/items/Greataxe.md +0 -11
- package/systems/5e/world/items/Greatclub.md +0 -11
- package/systems/5e/world/items/Greatsword.md +0 -11
- package/systems/5e/world/items/Halberd.md +0 -11
- package/systems/5e/world/items/Half Plate Armor.md +0 -12
- package/systems/5e/world/items/Hammer of Thunderbolts.md +0 -12
- package/systems/5e/world/items/Hammer.md +0 -6
- package/systems/5e/world/items/Hand Crossbow.md +0 -12
- package/systems/5e/world/items/Handaxe.md +0 -11
- package/systems/5e/world/items/Handy Haversack.md +0 -15
- package/systems/5e/world/items/Hat of Disguise.md +0 -8
- package/systems/5e/world/items/Headband of Intellect.md +0 -9
- package/systems/5e/world/items/Healer's Kit.md +0 -9
- package/systems/5e/world/items/Heavy Crossbow.md +0 -12
- package/systems/5e/world/items/Helm of Brilliance.md +0 -17
- package/systems/5e/world/items/Helm of Comprehending Languages.md +0 -7
- package/systems/5e/world/items/Helm of Telepathy.md +0 -10
- package/systems/5e/world/items/Helm of Teleportation.md +0 -9
- package/systems/5e/world/items/Hempen Rope.md +0 -10
- package/systems/5e/world/items/Herbalism Kit.md +0 -8
- package/systems/5e/world/items/Hide Armor.md +0 -11
- package/systems/5e/world/items/Holy Avenger.md +0 -10
- package/systems/5e/world/items/Holy Water.md +0 -11
- package/systems/5e/world/items/Hooded Lantern.md +0 -9
- package/systems/5e/world/items/Horn of Blasting.md +0 -9
- package/systems/5e/world/items/Horn of Valhalla.md +0 -18
- package/systems/5e/world/items/Horn.md +0 -8
- package/systems/5e/world/items/Horseshoes of Speed.md +0 -7
- package/systems/5e/world/items/Horseshoes of a Zephyr.md +0 -7
- package/systems/5e/world/items/Hourglass.md +0 -6
- package/systems/5e/world/items/Hunting Trap.md +0 -8
- package/systems/5e/world/items/Immovable Rod.md +0 -7
- package/systems/5e/world/items/Ink Pen.md +0 -5
- package/systems/5e/world/items/Ink.md +0 -6
- package/systems/5e/world/items/Instant Fortress.md +0 -13
- package/systems/5e/world/items/Ioun Stone.md +0 -48
- package/systems/5e/world/items/Iron Bands of Binding.md +0 -13
- package/systems/5e/world/items/Iron Flask.md +0 -34
- package/systems/5e/world/items/Iron Pot.md +0 -7
- package/systems/5e/world/items/Iron Spikes.md +0 -8
- package/systems/5e/world/items/Javelin of Lightning.md +0 -9
- package/systems/5e/world/items/Javelin.md +0 -11
- package/systems/5e/world/items/Jeweler's Tools.md +0 -8
- package/systems/5e/world/items/Jug or Pitcher.md +0 -6
- package/systems/5e/world/items/Keelboat.md +0 -8
- package/systems/5e/world/items/Ladder.md +0 -8
- package/systems/5e/world/items/Lamp.md +0 -8
- package/systems/5e/world/items/Lance.md +0 -13
- package/systems/5e/world/items/Lantern of Revealing.md +0 -7
- package/systems/5e/world/items/Leather Armor.md +0 -11
- package/systems/5e/world/items/Leatherworker's Tools.md +0 -8
- package/systems/5e/world/items/Light Crossbow.md +0 -12
- package/systems/5e/world/items/Light Hammer.md +0 -11
- package/systems/5e/world/items/Lock.md +0 -8
- package/systems/5e/world/items/Longbow.md +0 -11
- package/systems/5e/world/items/Longship.md +0 -6
- package/systems/5e/world/items/Longsword.md +0 -11
- package/systems/5e/world/items/Luck Blade.md +0 -12
- package/systems/5e/world/items/Lute.md +0 -8
- package/systems/5e/world/items/Lyre.md +0 -8
- package/systems/5e/world/items/Mace of Disruption.md +0 -10
- package/systems/5e/world/items/Mace of Smiting.md +0 -9
- package/systems/5e/world/items/Mace of Terror.md +0 -11
- package/systems/5e/world/items/Mace.md +0 -10
- package/systems/5e/world/items/Magnifying Glass.md +0 -7
- package/systems/5e/world/items/Manacles.md +0 -8
- package/systems/5e/world/items/Mantle of Spell Resistance.md +0 -8
- package/systems/5e/world/items/Manual of Bodily Health.md +0 -7
- package/systems/5e/world/items/Manual of Gainful Exercise.md +0 -7
- package/systems/5e/world/items/Manual of Golems.md +0 -18
- package/systems/5e/world/items/Manual of Quickness of Action.md +0 -7
- package/systems/5e/world/items/Map or Scroll Case.md +0 -9
- package/systems/5e/world/items/Marvelous Pigments.md +0 -15
- package/systems/5e/world/items/Mason's Tools.md +0 -8
- package/systems/5e/world/items/Maul.md +0 -11
- package/systems/5e/world/items/Medallion of Thoughts.md +0 -9
- package/systems/5e/world/items/Merchant's Scale.md +0 -9
- package/systems/5e/world/items/Mess Kit.md +0 -8
- package/systems/5e/world/items/Military Saddle.md +0 -8
- package/systems/5e/world/items/Miner's Pick.md +0 -7
- package/systems/5e/world/items/Mirror of Life Trapping.md +0 -19
- package/systems/5e/world/items/Mithral Armor.md +0 -7
- package/systems/5e/world/items/Morningstar.md +0 -10
- package/systems/5e/world/items/Navigator's Tools.md +0 -8
- package/systems/5e/world/items/Necklace of Adaptation.md +0 -8
- package/systems/5e/world/items/Necklace of Fireballs.md +0 -9
- package/systems/5e/world/items/Necklace of Prayer Beads.md +0 -19
- package/systems/5e/world/items/Net.md +0 -13
- package/systems/5e/world/items/Nine Lives Stealer.md +0 -10
- package/systems/5e/world/items/Oathbow.md +0 -12
- package/systems/5e/world/items/Oil of Etherealness.md +0 -7
- package/systems/5e/world/items/Oil of Sharpness.md +0 -7
- package/systems/5e/world/items/Oil of Slipperiness.md +0 -9
- package/systems/5e/world/items/Oil.md +0 -9
- package/systems/5e/world/items/Orb of Dragonkind.md +0 -33
- package/systems/5e/world/items/Orb.md +0 -8
- package/systems/5e/world/items/Pack Saddle.md +0 -8
- package/systems/5e/world/items/Padded Armor.md +0 -12
- package/systems/5e/world/items/Painter's Supplies.md +0 -8
- package/systems/5e/world/items/Pan Flute.md +0 -8
- package/systems/5e/world/items/Paper.md +0 -6
- package/systems/5e/world/items/Parchment.md +0 -6
- package/systems/5e/world/items/Pearl of Power.md +0 -8
- package/systems/5e/world/items/Perfume.md +0 -6
- package/systems/5e/world/items/Periapt of Health.md +0 -7
- package/systems/5e/world/items/Periapt of Proof against Poison.md +0 -7
- package/systems/5e/world/items/Periapt of Wound Closure.md +0 -8
- package/systems/5e/world/items/Philter of Love.md +0 -7
- package/systems/5e/world/items/Pike.md +0 -11
- package/systems/5e/world/items/Pipes of Haunting.md +0 -7
- package/systems/5e/world/items/Pipes of the Sewers.md +0 -12
- package/systems/5e/world/items/Piton.md +0 -6
- package/systems/5e/world/items/Plate Armor of Etherealness.md +0 -8
- package/systems/5e/world/items/Plate Armor.md +0 -14
- package/systems/5e/world/items/Playing Card Set.md +0 -7
- package/systems/5e/world/items/Poisoner's Kit.md +0 -8
- package/systems/5e/world/items/Pole.md +0 -8
- package/systems/5e/world/items/Portable Hole.md +0 -16
- package/systems/5e/world/items/Portable Ram.md +0 -9
- package/systems/5e/world/items/Potion of Animal Friendship.md +0 -7
- package/systems/5e/world/items/Potion of Clairvoyance.md +0 -7
- package/systems/5e/world/items/Potion of Climbing.md +0 -7
- package/systems/5e/world/items/Potion of Diminution.md +0 -7
- package/systems/5e/world/items/Potion of Flying.md +0 -7
- package/systems/5e/world/items/Potion of Gaseous Form.md +0 -7
- package/systems/5e/world/items/Potion of Giant Strength.md +0 -17
- package/systems/5e/world/items/Potion of Growth.md +0 -7
- package/systems/5e/world/items/Potion of Healing.md +0 -20
- package/systems/5e/world/items/Potion of Heroism.md +0 -7
- package/systems/5e/world/items/Potion of Invisibility.md +0 -7
- package/systems/5e/world/items/Potion of Mind Reading.md +0 -7
- package/systems/5e/world/items/Potion of Poison.md +0 -9
- package/systems/5e/world/items/Potion of Resistance.md +0 -15
- package/systems/5e/world/items/Potion of Speed.md +0 -7
- package/systems/5e/world/items/Potion of Water Breathing.md +0 -7
- package/systems/5e/world/items/Potter's Tools.md +0 -8
- package/systems/5e/world/items/Pouch.md +0 -8
- package/systems/5e/world/items/Priest's Pack.md +0 -9
- package/systems/5e/world/items/Quarterstaff.md +0 -11
- package/systems/5e/world/items/Quiver.md +0 -8
- package/systems/5e/world/items/Rapier.md +0 -11
- package/systems/5e/world/items/Rations.md +0 -9
- package/systems/5e/world/items/Reliquary.md +0 -8
- package/systems/5e/world/items/Restorative Ointment.md +0 -9
- package/systems/5e/world/items/Riding Saddle.md +0 -8
- package/systems/5e/world/items/Ring Mail.md +0 -11
- package/systems/5e/world/items/Ring of Animal Influence.md +0 -12
- package/systems/5e/world/items/Ring of Djinni Summoning.md +0 -12
- package/systems/5e/world/items/Ring of Elemental Command.md +0 -43
- package/systems/5e/world/items/Ring of Evasion.md +0 -9
- package/systems/5e/world/items/Ring of Feather Falling.md +0 -8
- package/systems/5e/world/items/Ring of Free Action.md +0 -8
- package/systems/5e/world/items/Ring of Invisibility.md +0 -8
- package/systems/5e/world/items/Ring of Jumping.md +0 -8
- package/systems/5e/world/items/Ring of Mind Shielding.md +0 -12
- package/systems/5e/world/items/Ring of Protection.md +0 -10
- package/systems/5e/world/items/Ring of Regeneration.md +0 -8
- package/systems/5e/world/items/Ring of Resistance.md +0 -21
- package/systems/5e/world/items/Ring of Shooting Stars.md +0 -28
- package/systems/5e/world/items/Ring of Spell Storing.md +0 -12
- package/systems/5e/world/items/Ring of Spell Turning.md +0 -8
- package/systems/5e/world/items/Ring of Swimming.md +0 -7
- package/systems/5e/world/items/Ring of Telekinesis.md +0 -8
- package/systems/5e/world/items/Ring of Three Wishes.md +0 -7
- package/systems/5e/world/items/Ring of Warmth.md +0 -9
- package/systems/5e/world/items/Ring of Water Walking.md +0 -7
- package/systems/5e/world/items/Ring of X-ray Vision.md +0 -10
- package/systems/5e/world/items/Ring of the Ram.md +0 -11
- package/systems/5e/world/items/Robe of Eyes.md +0 -16
- package/systems/5e/world/items/Robe of Scintillating Colors.md +0 -9
- package/systems/5e/world/items/Robe of Stars.md +0 -12
- package/systems/5e/world/items/Robe of Useful Items.md +0 -34
- package/systems/5e/world/items/Robe of the Archmagi.md +0 -16
- package/systems/5e/world/items/Robes.md +0 -6
- package/systems/5e/world/items/Rod of Absorption.md +0 -14
- package/systems/5e/world/items/Rod of Alertness.md +0 -16
- package/systems/5e/world/items/Rod of Lordly Might.md +0 -28
- package/systems/5e/world/items/Rod of Rulership.md +0 -8
- package/systems/5e/world/items/Rod of Security.md +0 -11
- package/systems/5e/world/items/Rod.md +0 -8
- package/systems/5e/world/items/Rope of Climbing.md +0 -11
- package/systems/5e/world/items/Rope of Entanglement.md +0 -11
- package/systems/5e/world/items/Rowboat.md +0 -8
- package/systems/5e/world/items/Sack.md +0 -6
- package/systems/5e/world/items/Saddlebags.md +0 -6
- package/systems/5e/world/items/Sailing Ship.md +0 -6
- package/systems/5e/world/items/Scale Mail.md +0 -11
- package/systems/5e/world/items/Scarab of Protection.md +0 -12
- package/systems/5e/world/items/Scholar's Pack.md +0 -9
- package/systems/5e/world/items/Scimitar of Speed.md +0 -8
- package/systems/5e/world/items/Scimitar.md +0 -11
- package/systems/5e/world/items/Sealing Wax.md +0 -5
- package/systems/5e/world/items/Shawm.md +0 -8
- package/systems/5e/world/items/Shield of Missile Attraction.md +0 -11
- package/systems/5e/world/items/Shield, +1, +2, or +3.md +0 -7
- package/systems/5e/world/items/Shield.md +0 -10
- package/systems/5e/world/items/Shortbow.md +0 -11
- package/systems/5e/world/items/Shortsword.md +0 -11
- package/systems/5e/world/items/Shovel.md +0 -6
- package/systems/5e/world/items/Sickle.md +0 -11
- package/systems/5e/world/items/Signal Whistle.md +0 -5
- package/systems/5e/world/items/Signet Ring.md +0 -5
- package/systems/5e/world/items/Silk Rope.md +0 -10
- package/systems/5e/world/items/Sled.md +0 -6
- package/systems/5e/world/items/Sledgehammer.md +0 -7
- package/systems/5e/world/items/Sling Bullets.md +0 -8
- package/systems/5e/world/items/Sling.md +0 -10
- package/systems/5e/world/items/Slippers of Spider Climbing.md +0 -8
- package/systems/5e/world/items/Smith's Tools.md +0 -8
- package/systems/5e/world/items/Soap.md +0 -5
- package/systems/5e/world/items/Sovereign Glue.md +0 -9
- package/systems/5e/world/items/Spear.md +0 -11
- package/systems/5e/world/items/Spell Scroll.md +0 -28
- package/systems/5e/world/items/Spellbook.md +0 -8
- package/systems/5e/world/items/Spellguard Shield.md +0 -8
- package/systems/5e/world/items/Sphere of Annihilation.md +0 -21
- package/systems/5e/world/items/Splint Armor.md +0 -14
- package/systems/5e/world/items/Sprig of Mistletoe.md +0 -7
- package/systems/5e/world/items/Spyglass.md +0 -8
- package/systems/5e/world/items/Staff of Charming.md +0 -12
- package/systems/5e/world/items/Staff of Fire.md +0 -14
- package/systems/5e/world/items/Staff of Frost.md +0 -14
- package/systems/5e/world/items/Staff of Healing.md +0 -11
- package/systems/5e/world/items/Staff of Power.md +0 -28
- package/systems/5e/world/items/Staff of Striking.md +0 -11
- package/systems/5e/world/items/Staff of Swarming Insects.md +0 -13
- package/systems/5e/world/items/Staff of Thunder and Lightning.md +0 -18
- package/systems/5e/world/items/Staff of Withering.md +0 -11
- package/systems/5e/world/items/Staff of the Magi.md +0 -28
- package/systems/5e/world/items/Staff of the Python.md +0 -12
- package/systems/5e/world/items/Staff of the Woodlands.md +0 -17
- package/systems/5e/world/items/Staff.md +0 -8
- package/systems/5e/world/items/Steel Mirror.md +0 -7
- package/systems/5e/world/items/Stone of Controlling Earth Elementals.md +0 -7
- package/systems/5e/world/items/Stone of Good Luck.md +0 -12
- package/systems/5e/world/items/Studded Leather Armor.md +0 -11
- package/systems/5e/world/items/Sun Blade.md +0 -12
- package/systems/5e/world/items/Sword of Life Stealing.md +0 -8
- package/systems/5e/world/items/Sword of Sharpness.md +0 -12
- package/systems/5e/world/items/Sword of Wounding.md +0 -10
- package/systems/5e/world/items/Talisman of Pure Good.md +0 -13
- package/systems/5e/world/items/Talisman of Ultimate Evil.md +0 -13
- package/systems/5e/world/items/Talisman of the Sphere.md +0 -8
- package/systems/5e/world/items/Thieves' Tools.md +0 -8
- package/systems/5e/world/items/Tinderbox.md +0 -8
- package/systems/5e/world/items/Tinker's Tools.md +0 -8
- package/systems/5e/world/items/Tome of Clear Thought.md +0 -7
- package/systems/5e/world/items/Tome of Leadership and Influence.md +0 -7
- package/systems/5e/world/items/Tome of Understanding.md +0 -7
- package/systems/5e/world/items/Torch.md +0 -8
- package/systems/5e/world/items/Totem.md +0 -7
- package/systems/5e/world/items/Traveler's Clothes.md +0 -7
- package/systems/5e/world/items/Trident of Fish Command.md +0 -9
- package/systems/5e/world/items/Trident.md +0 -11
- package/systems/5e/world/items/Two-Person Tent.md +0 -9
- package/systems/5e/world/items/Unarmed Strike.md +0 -8
- package/systems/5e/world/items/Universal Solvent.md +0 -7
- package/systems/5e/world/items/Vial.md +0 -5
- package/systems/5e/world/items/Vicious Weapon.md +0 -7
- package/systems/5e/world/items/Viol.md +0 -8
- package/systems/5e/world/items/Vorpal Sword.md +0 -10
- package/systems/5e/world/items/Wagon.md +0 -6
- package/systems/5e/world/items/Wand of Binding.md +0 -13
- package/systems/5e/world/items/Wand of Enemy Detection.md +0 -11
- package/systems/5e/world/items/Wand of Fear.md +0 -13
- package/systems/5e/world/items/Wand of Fireballs.md +0 -11
- package/systems/5e/world/items/Wand of Lightning Bolts.md +0 -11
- package/systems/5e/world/items/Wand of Magic Detection.md +0 -8
- package/systems/5e/world/items/Wand of Magic Missiles.md +0 -10
- package/systems/5e/world/items/Wand of Paralysis.md +0 -11
- package/systems/5e/world/items/Wand of Polymorph.md +0 -11
- package/systems/5e/world/items/Wand of Secrets.md +0 -8
- package/systems/5e/world/items/Wand of Web.md +0 -11
- package/systems/5e/world/items/Wand of Wonder.md +0 -40
- package/systems/5e/world/items/Wand of the War Mage, +1, +2, or +3.md +0 -8
- package/systems/5e/world/items/Wand.md +0 -8
- package/systems/5e/world/items/War Pick.md +0 -10
- package/systems/5e/world/items/Warhammer.md +0 -11
- package/systems/5e/world/items/Warship.md +0 -6
- package/systems/5e/world/items/Waterskin.md +0 -6
- package/systems/5e/world/items/Weapon, +1, +2, or +3.md +0 -7
- package/systems/5e/world/items/Weaver's Tools.md +0 -8
- package/systems/5e/world/items/Well of Many Worlds.md +0 -9
- package/systems/5e/world/items/Whetstone.md +0 -6
- package/systems/5e/world/items/Whip.md +0 -11
- package/systems/5e/world/items/Wind Fan.md +0 -7
- package/systems/5e/world/items/Winged Boots.md +0 -10
- package/systems/5e/world/items/Wings of Flying.md +0 -8
- package/systems/5e/world/items/Woodcarver's Tools.md +0 -8
- package/systems/5e/world/items/Wooden Staff.md +0 -8
- package/systems/5e/world/items/Yew Wand.md +0 -8
- package/systems/5e/world/topics/Acid Arrow.md +0 -14
- package/systems/5e/world/topics/Acid Splash.md +0 -14
- package/systems/5e/world/topics/Acolyte (background).md +0 -103
- package/systems/5e/world/topics/Aid.md +0 -14
- package/systems/5e/world/topics/Alarm.md +0 -17
- package/systems/5e/world/topics/Alter Self.md +0 -19
- package/systems/5e/world/topics/Animal Friendship.md +0 -14
- package/systems/5e/world/topics/Animal Messenger.md +0 -17
- package/systems/5e/world/topics/Animal Shapes.md +0 -17
- package/systems/5e/world/topics/Animate Dead.md +0 -18
- package/systems/5e/world/topics/Animate Objects.md +0 -31
- package/systems/5e/world/topics/Antilife Shell.md +0 -17
- package/systems/5e/world/topics/Antimagic Field.md +0 -31
- package/systems/5e/world/topics/Antipathy-Sympathy.md +0 -23
- package/systems/5e/world/topics/Arcane Eye.md +0 -17
- package/systems/5e/world/topics/Arcane Hand.md +0 -27
- package/systems/5e/world/topics/Arcane Lock.md +0 -14
- package/systems/5e/world/topics/Arcane Sword.md +0 -15
- package/systems/5e/world/topics/Arcanist's Magic Aura.md +0 -18
- package/systems/5e/world/topics/Astral Projection.md +0 -22
- package/systems/5e/world/topics/Augury.md +0 -22
- package/systems/5e/world/topics/Awaken.md +0 -14
- package/systems/5e/world/topics/Bane.md +0 -15
- package/systems/5e/world/topics/Banishment.md +0 -19
- package/systems/5e/world/topics/Barbarian.md +0 -123
- package/systems/5e/world/topics/Bard Spells.md +0 -147
- package/systems/5e/world/topics/Bard.md +0 -139
- package/systems/5e/world/topics/Barkskin.md +0 -13
- package/systems/5e/world/topics/Beacon of Hope.md +0 -13
- package/systems/5e/world/topics/Bestow Curse.md +0 -22
- package/systems/5e/world/topics/Black Tentacles.md +0 -17
- package/systems/5e/world/topics/Blade Barrier.md +0 -15
- package/systems/5e/world/topics/Bless.md +0 -15
- package/systems/5e/world/topics/Blight.md +0 -18
- package/systems/5e/world/topics/Blindness-Deafness.md +0 -15
- package/systems/5e/world/topics/Blink.md +0 -14
- package/systems/5e/world/topics/Blur.md +0 -13
- package/systems/5e/world/topics/Branding Smite.md +0 -15
- package/systems/5e/world/topics/Burning Hands.md +0 -16
- package/systems/5e/world/topics/Call Lightning.md +0 -19
- package/systems/5e/world/topics/Calm Emotions.md +0 -17
- package/systems/5e/world/topics/Chain Lightning.md +0 -16
- package/systems/5e/world/topics/Champion.md +0 -24
- package/systems/5e/world/topics/Charm Person.md +0 -14
- package/systems/5e/world/topics/Chill Touch.md +0 -16
- package/systems/5e/world/topics/Circle of Death.md +0 -14
- package/systems/5e/world/topics/Circle of the Land.md +0 -96
- package/systems/5e/world/topics/Clairvoyance.md +0 -17
- package/systems/5e/world/topics/Cleric Spells.md +0 -140
- package/systems/5e/world/topics/Cleric.md +0 -141
- package/systems/5e/world/topics/Clone.md +0 -14
- package/systems/5e/world/topics/Cloudkill.md +0 -19
- package/systems/5e/world/topics/College of Lore.md +0 -23
- package/systems/5e/world/topics/Color Spray.md +0 -16
- package/systems/5e/world/topics/Command.md +0 -26
- package/systems/5e/world/topics/Commune with Nature.md +0 -23
- package/systems/5e/world/topics/Commune.md +0 -17
- package/systems/5e/world/topics/Comprehend Languages.md +0 -15
- package/systems/5e/world/topics/Compulsion.md +0 -15
- package/systems/5e/world/topics/Cone of Cold.md +0 -16
- package/systems/5e/world/topics/Confusion.md +0 -26
- package/systems/5e/world/topics/Conjure Animals.md +0 -26
- package/systems/5e/world/topics/Conjure Celestial.md +0 -19
- package/systems/5e/world/topics/Conjure Elemental.md +0 -21
- package/systems/5e/world/topics/Conjure Fey.md +0 -21
- package/systems/5e/world/topics/Conjure Minor Elementals.md +0 -26
- package/systems/5e/world/topics/Conjure Woodland Beings.md +0 -26
- package/systems/5e/world/topics/Contact Other Plane.md +0 -15
- package/systems/5e/world/topics/Contagion.md +0 -28
- package/systems/5e/world/topics/Contingency.md +0 -16
- package/systems/5e/world/topics/Continual Flame.md +0 -12
- package/systems/5e/world/topics/Control Water.md +0 -29
- package/systems/5e/world/topics/Control Weather.md +0 -48
- package/systems/5e/world/topics/Counterspell.md +0 -14
- package/systems/5e/world/topics/Create Food and Water.md +0 -12
- package/systems/5e/world/topics/Create Undead.md +0 -18
- package/systems/5e/world/topics/Create or Destroy Water.md +0 -18
- package/systems/5e/world/topics/Creation.md +0 -26
- package/systems/5e/world/topics/Cure Wounds.md +0 -14
- package/systems/5e/world/topics/Dancing Lights.md +0 -15
- package/systems/5e/world/topics/Darkness.md +0 -17
- package/systems/5e/world/topics/Darkvision.md +0 -12
- package/systems/5e/world/topics/Daylight.md +0 -16
- package/systems/5e/world/topics/Death Ward.md +0 -16
- package/systems/5e/world/topics/Delayed Blast Fireball.md +0 -21
- package/systems/5e/world/topics/Demiplane.md +0 -14
- package/systems/5e/world/topics/Detect Evil and Good.md +0 -15
- package/systems/5e/world/topics/Detect Magic.md +0 -16
- package/systems/5e/world/topics/Detect Poison and Disease.md +0 -16
- package/systems/5e/world/topics/Detect Thoughts.md +0 -21
- package/systems/5e/world/topics/Dimension Door.md +0 -16
- package/systems/5e/world/topics/Disguise Self.md +0 -16
- package/systems/5e/world/topics/Disintegrate.md +0 -20
- package/systems/5e/world/topics/Dispel Evil and Good.md +0 -19
- package/systems/5e/world/topics/Dispel Magic.md +0 -14
- package/systems/5e/world/topics/Divination.md +0 -17
- package/systems/5e/world/topics/Divine Favor.md +0 -13
- package/systems/5e/world/topics/Divine Word.md +0 -19
- package/systems/5e/world/topics/Dominate Beast.md +0 -21
- package/systems/5e/world/topics/Dominate Monster.md +0 -21
- package/systems/5e/world/topics/Dominate Person.md +0 -21
- package/systems/5e/world/topics/Draconic Bloodline.md +0 -43
- package/systems/5e/world/topics/Dream.md +0 -18
- package/systems/5e/world/topics/Druid Spells.md +0 -140
- package/systems/5e/world/topics/Druid.md +0 -146
- package/systems/5e/world/topics/Druidcraft.md +0 -17
- package/systems/5e/world/topics/Earthquake.md +0 -25
- package/systems/5e/world/topics/Eldritch Blast.md +0 -14
- package/systems/5e/world/topics/Enhance Ability.md +0 -27
- package/systems/5e/world/topics/Enlarge-Reduce.md +0 -20
- package/systems/5e/world/topics/Entangle.md +0 -17
- package/systems/5e/world/topics/Enthrall.md +0 -12
- package/systems/5e/world/topics/Etherealness.md +0 -22
- package/systems/5e/world/topics/Expeditious Retreat.md +0 -13
- package/systems/5e/world/topics/Eyebite.md +0 -19
- package/systems/5e/world/topics/Fabricate.md +0 -16
- package/systems/5e/world/topics/Faerie Fire.md +0 -15
- package/systems/5e/world/topics/Faithful Hound.md +0 -16
- package/systems/5e/world/topics/False Life.md +0 -14
- package/systems/5e/world/topics/Fear.md +0 -15
- package/systems/5e/world/topics/Feather Fall.md +0 -12
- package/systems/5e/world/topics/Feeblemind.md +0 -18
- package/systems/5e/world/topics/Fighter.md +0 -109
- package/systems/5e/world/topics/Find Familiar.md +0 -25
- package/systems/5e/world/topics/Find Steed.md +0 -20
- package/systems/5e/world/topics/Find Traps.md +0 -14
- package/systems/5e/world/topics/Find the Path.md +0 -15
- package/systems/5e/world/topics/Finger of Death.md +0 -14
- package/systems/5e/world/topics/Fire Bolt.md +0 -14
- package/systems/5e/world/topics/Fire Shield.md +0 -16
- package/systems/5e/world/topics/Fire Storm.md +0 -14
- package/systems/5e/world/topics/Fireball.md +0 -16
- package/systems/5e/world/topics/Flame Blade.md +0 -19
- package/systems/5e/world/topics/Flame Strike.md +0 -14
- package/systems/5e/world/topics/Flaming Sphere.md +0 -19
- package/systems/5e/world/topics/Flesh to Stone.md +0 -19
- package/systems/5e/world/topics/Floating Disk.md +0 -17
- package/systems/5e/world/topics/Fly.md +0 -15
- package/systems/5e/world/topics/Fog Cloud.md +0 -15
- package/systems/5e/world/topics/Forbiddance.md +0 -19
- package/systems/5e/world/topics/Forcecage.md +0 -22
- package/systems/5e/world/topics/Foresight.md +0 -14
- package/systems/5e/world/topics/Freedom of Movement.md +0 -14
- package/systems/5e/world/topics/Freezing Sphere.md +0 -18
- package/systems/5e/world/topics/Gaseous Form.md +0 -17
- package/systems/5e/world/topics/Gate.md +0 -19
- package/systems/5e/world/topics/Geas.md +0 -18
- package/systems/5e/world/topics/Gentle Repose.md +0 -15
- package/systems/5e/world/topics/Giant Insect.md +0 -19
- package/systems/5e/world/topics/Glibness.md +0 -12
- package/systems/5e/world/topics/Globe of Invulnerability.md +0 -17
- package/systems/5e/world/topics/Glyph of Warding.md +0 -26
- package/systems/5e/world/topics/Goodberry.md +0 -14
- package/systems/5e/world/topics/Grappler.md +0 -17
- package/systems/5e/world/topics/Grease.md +0 -14
- package/systems/5e/world/topics/Greater Invisibility.md +0 -13
- package/systems/5e/world/topics/Greater Restoration.md +0 -17
- package/systems/5e/world/topics/Guardian of Faith.md +0 -14
- package/systems/5e/world/topics/Guards and Wards.md +0 -34
- package/systems/5e/world/topics/Guidance.md +0 -13
- package/systems/5e/world/topics/Guiding Bolt.md +0 -14
- package/systems/5e/world/topics/Gust of Wind.md +0 -19
- package/systems/5e/world/topics/Hallow.md +0 -36
- package/systems/5e/world/topics/Hallucinatory Terrain.md +0 -14
- package/systems/5e/world/topics/Harm.md +0 -12
- package/systems/5e/world/topics/Haste.md +0 -15
- package/systems/5e/world/topics/Heal.md +0 -14
- package/systems/5e/world/topics/Healing Word.md +0 -14
- package/systems/5e/world/topics/Heat Metal.md +0 -17
- package/systems/5e/world/topics/Hellish Rebuke.md +0 -14
- package/systems/5e/world/topics/Heroes' Feast.md +0 -14
- package/systems/5e/world/topics/Heroism.md +0 -15
- package/systems/5e/world/topics/Hideous Laughter.md +0 -15
- package/systems/5e/world/topics/Hold Monster.md +0 -15
- package/systems/5e/world/topics/Hold Person.md +0 -15
- package/systems/5e/world/topics/Holy Aura.md +0 -13
- package/systems/5e/world/topics/Hunter's Mark.md +0 -15
- package/systems/5e/world/topics/Hunter.md +0 -41
- package/systems/5e/world/topics/Hypnotic Pattern.md +0 -15
- package/systems/5e/world/topics/Ice Storm.md +0 -16
- package/systems/5e/world/topics/Identify.md +0 -15
- package/systems/5e/world/topics/Illusory Script.md +0 -19
- package/systems/5e/world/topics/Imprisonment.md +0 -38
- package/systems/5e/world/topics/Incendiary Cloud.md +0 -17
- package/systems/5e/world/topics/Inflict Wounds.md +0 -14
- package/systems/5e/world/topics/Insect Plague.md +0 -17
- package/systems/5e/world/topics/Instant Summons.md +0 -19
- package/systems/5e/world/topics/Invisibility.md +0 -15
- package/systems/5e/world/topics/Irresistible Dance.md +0 -15
- package/systems/5e/world/topics/Jump.md +0 -12
- package/systems/5e/world/topics/Knock.md +0 -18
- package/systems/5e/world/topics/Legend Lore.md +0 -14
- package/systems/5e/world/topics/Lesser Restoration.md +0 -12
- package/systems/5e/world/topics/Levitate.md +0 -17
- package/systems/5e/world/topics/Life Domain.md +0 -38
- package/systems/5e/world/topics/Light.md +0 -14
- package/systems/5e/world/topics/Lightning Bolt.md +0 -16
- package/systems/5e/world/topics/Locate Animals or Plants.md +0 -13
- package/systems/5e/world/topics/Locate Creature.md +0 -17
- package/systems/5e/world/topics/Locate Object.md +0 -17
- package/systems/5e/world/topics/Longstrider.md +0 -14
- package/systems/5e/world/topics/Mage Armor.md +0 -12
- package/systems/5e/world/topics/Mage Hand.md +0 -16
- package/systems/5e/world/topics/Magic Circle.md +0 -22
- package/systems/5e/world/topics/Magic Jar.md +0 -24
- package/systems/5e/world/topics/Magic Missile.md +0 -14
- package/systems/5e/world/topics/Magic Mouth.md +0 -17
- package/systems/5e/world/topics/Magic Weapon.md +0 -15
- package/systems/5e/world/topics/Magnificent Mansion.md +0 -16
- package/systems/5e/world/topics/Major Image.md +0 -19
- package/systems/5e/world/topics/Mass Cure Wounds.md +0 -14
- package/systems/5e/world/topics/Mass Heal.md +0 -12
- package/systems/5e/world/topics/Mass Healing Word.md +0 -14
- package/systems/5e/world/topics/Mass Suggestion.md +0 -20
- package/systems/5e/world/topics/Maze.md +0 -17
- package/systems/5e/world/topics/Meld into Stone.md +0 -17
- package/systems/5e/world/topics/Mending.md +0 -14
- package/systems/5e/world/topics/Message.md +0 -14
- package/systems/5e/world/topics/Meteor Swarm.md +0 -14
- package/systems/5e/world/topics/Mind Blank.md +0 -12
- package/systems/5e/world/topics/Minor Illusion.md +0 -18
- package/systems/5e/world/topics/Mirage Arcane.md +0 -18
- package/systems/5e/world/topics/Mirror Image.md +0 -20
- package/systems/5e/world/topics/Mislead.md +0 -17
- package/systems/5e/world/topics/Misty Step.md +0 -12
- package/systems/5e/world/topics/Modify Memory.md +0 -23
- package/systems/5e/world/topics/Monk.md +0 -153
- package/systems/5e/world/topics/Moonbeam.md +0 -21
- package/systems/5e/world/topics/Move Earth.md +0 -21
- package/systems/5e/world/topics/Nondetection.md +0 -12
- package/systems/5e/world/topics/Oath of Devotion.md +0 -62
- package/systems/5e/world/topics/Paladin Spells.md +0 -51
- package/systems/5e/world/topics/Paladin.md +0 -173
- package/systems/5e/world/topics/Pass without Trace.md +0 -13
- package/systems/5e/world/topics/Passwall.md +0 -14
- package/systems/5e/world/topics/Path of the Berserker.md +0 -21
- package/systems/5e/world/topics/Phantasmal Killer.md +0 -15
- package/systems/5e/world/topics/Phantom Steed.md +0 -15
- package/systems/5e/world/topics/Planar Ally.md +0 -22
- package/systems/5e/world/topics/Planar Binding.md +0 -16
- package/systems/5e/world/topics/Plane Shift.md +0 -16
- package/systems/5e/world/topics/Plant Growth.md +0 -18
- package/systems/5e/world/topics/Poison Spray.md +0 -14
- package/systems/5e/world/topics/Polymorph.md +0 -21
- package/systems/5e/world/topics/Power Word Kill.md +0 -12
- package/systems/5e/world/topics/Power Word Stun.md +0 -14
- package/systems/5e/world/topics/Prayer of Healing.md +0 -14
- package/systems/5e/world/topics/Prestidigitation.md +0 -21
- package/systems/5e/world/topics/Prismatic Spray.md +0 -28
- package/systems/5e/world/topics/Prismatic Wall.md +0 -34
- package/systems/5e/world/topics/Private Sanctum.md +0 -25
- package/systems/5e/world/topics/Produce Flame.md +0 -16
- package/systems/5e/world/topics/Programmed Illusion.md +0 -18
- package/systems/5e/world/topics/Project Image.md +0 -19
- package/systems/5e/world/topics/Protection from Energy.md +0 -13
- package/systems/5e/world/topics/Protection from Evil and Good.md +0 -15
- package/systems/5e/world/topics/Protection from Poison.md +0 -14
- package/systems/5e/world/topics/Purify Food and Drink.md +0 -13
- package/systems/5e/world/topics/Raise Dead.md +0 -18
- package/systems/5e/world/topics/Ranger Spells.md +0 -57
- package/systems/5e/world/topics/Ranger.md +0 -162
- package/systems/5e/world/topics/Ray of Enfeeblement.md +0 -15
- package/systems/5e/world/topics/Ray of Frost.md +0 -14
- package/systems/5e/world/topics/Regenerate.md +0 -14
- package/systems/5e/world/topics/Reincarnate.md +0 -33
- package/systems/5e/world/topics/Remove Curse.md +0 -12
- package/systems/5e/world/topics/Resilient Sphere.md +0 -19
- package/systems/5e/world/topics/Resistance.md +0 -13
- package/systems/5e/world/topics/Resurrection.md +0 -20
- package/systems/5e/world/topics/Reverse Gravity.md +0 -17
- package/systems/5e/world/topics/Revivify.md +0 -12
- package/systems/5e/world/topics/Rogue.md +0 -114
- package/systems/5e/world/topics/Rope Trick.md +0 -18
- package/systems/5e/world/topics/Sacred Flame.md +0 -14
- package/systems/5e/world/topics/Sanctuary.md +0 -14
- package/systems/5e/world/topics/School of Evocation.md +0 -24
- package/systems/5e/world/topics/Scorching Ray.md +0 -16
- package/systems/5e/world/topics/Scrying.md +0 -31
- package/systems/5e/world/topics/Secret Chest.md +0 -16
- package/systems/5e/world/topics/See Invisibility.md +0 -12
- package/systems/5e/world/topics/Seeming.md +0 -18
- package/systems/5e/world/topics/Sending.md +0 -14
- package/systems/5e/world/topics/Sequester.md +0 -16
- package/systems/5e/world/topics/Shapechange.md +0 -23
- package/systems/5e/world/topics/Shatter.md +0 -16
- package/systems/5e/world/topics/Shield (spell).md +0 -13
- package/systems/5e/world/topics/Shield of Faith.md +0 -13
- package/systems/5e/world/topics/Shillelagh.md +0 -12
- package/systems/5e/world/topics/Shocking Grasp.md +0 -14
- package/systems/5e/world/topics/Silence.md +0 -14
- package/systems/5e/world/topics/Silent Image.md +0 -17
- package/systems/5e/world/topics/Simulacrum.md +0 -18
- package/systems/5e/world/topics/Sleep.md +0 -18
- package/systems/5e/world/topics/Sleet Storm.md +0 -17
- package/systems/5e/world/topics/Slow.md +0 -19
- package/systems/5e/world/topics/Sorcerer Spells.md +0 -155
- package/systems/5e/world/topics/Sorcerer.md +0 -166
- package/systems/5e/world/topics/Spare the Dying.md +0 -12
- package/systems/5e/world/topics/Speak with Animals.md +0 -13
- package/systems/5e/world/topics/Speak with Dead.md +0 -14
- package/systems/5e/world/topics/Speak with Plants.md +0 -20
- package/systems/5e/world/topics/Spider Climb.md +0 -13
- package/systems/5e/world/topics/Spike Growth.md +0 -15
- package/systems/5e/world/topics/Spirit Guardians.md +0 -17
- package/systems/5e/world/topics/Spiritual Weapon.md +0 -18
- package/systems/5e/world/topics/Stinking Cloud.md +0 -17
- package/systems/5e/world/topics/Stone Shape.md +0 -12
- package/systems/5e/world/topics/Stoneskin.md +0 -13
- package/systems/5e/world/topics/Storm of Vengeance.md +0 -23
- package/systems/5e/world/topics/Suggestion.md +0 -19
- package/systems/5e/world/topics/Sunbeam.md +0 -17
- package/systems/5e/world/topics/Sunburst.md +0 -16
- package/systems/5e/world/topics/Symbol.md +0 -36
- package/systems/5e/world/topics/Telekinesis.md +0 -23
- package/systems/5e/world/topics/Telepathic Bond.md +0 -15
- package/systems/5e/world/topics/Teleport.md +0 -38
- package/systems/5e/world/topics/Teleportation Circle.md +0 -16
- package/systems/5e/world/topics/Thaumaturgy.md +0 -21
- package/systems/5e/world/topics/The Fiend.md +0 -47
- package/systems/5e/world/topics/Thief.md +0 -24
- package/systems/5e/world/topics/Thunderwave.md +0 -16
- package/systems/5e/world/topics/Time Stop.md +0 -14
- package/systems/5e/world/topics/Tiny Hut.md +0 -17
- package/systems/5e/world/topics/Tongues.md +0 -12
- package/systems/5e/world/topics/Transport via Plants.md +0 -12
- package/systems/5e/world/topics/Tree Stride.md +0 -15
- package/systems/5e/world/topics/True Polymorph.md +0 -29
- package/systems/5e/world/topics/True Resurrection.md +0 -16
- package/systems/5e/world/topics/True Seeing.md +0 -12
- package/systems/5e/world/topics/True Strike.md +0 -13
- package/systems/5e/world/topics/Unseen Servant.md +0 -17
- package/systems/5e/world/topics/Vampiric Touch.md +0 -15
- package/systems/5e/world/topics/Vicious Mockery.md +0 -14
- package/systems/5e/world/topics/Wall of Fire.md +0 -19
- package/systems/5e/world/topics/Wall of Force.md +0 -15
- package/systems/5e/world/topics/Wall of Ice.md +0 -19
- package/systems/5e/world/topics/Wall of Stone.md +0 -23
- package/systems/5e/world/topics/Wall of Thorns.md +0 -19
- package/systems/5e/world/topics/Warding Bond.md +0 -14
- package/systems/5e/world/topics/Warlock Spells.md +0 -99
- package/systems/5e/world/topics/Warlock.md +0 -283
- package/systems/5e/world/topics/Water Breathing.md +0 -13
- package/systems/5e/world/topics/Water Walk.md +0 -15
- package/systems/5e/world/topics/Way of the Open Hand.md +0 -25
- package/systems/5e/world/topics/Web.md +0 -21
- package/systems/5e/world/topics/Weird.md +0 -13
- package/systems/5e/world/topics/Wind Walk.md +0 -14
- package/systems/5e/world/topics/Wind Wall.md +0 -17
- package/systems/5e/world/topics/Wish.md +0 -26
- package/systems/5e/world/topics/Wizard Spells.md +0 -239
- package/systems/5e/world/topics/Wizard.md +0 -141
- package/systems/5e/world/topics/Word of Recall.md +0 -14
- package/systems/5e/world/topics/Zone of Truth.md +0 -14
- /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
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { readChoice } from "./prefs.js";
|
|
2
|
+
/** The event that tells the page the game's style changed: what draws an icon draws it again. */
|
|
3
|
+
export const gameStyleChanged = "rpg-engine:game-style";
|
|
4
|
+
/** Whether the page shows the game's style, by system: the game's, or the page's own. */
|
|
5
|
+
export function systemStylePref(system) {
|
|
6
|
+
return { key: `rpg-engine.game-style.${system}`, initial: "game", values: ["game", "page"] };
|
|
7
|
+
}
|
|
8
|
+
/** The game's style as last read, for Settings: its system and its theme's name; whether it has anything to show, or its theme was refused. */
|
|
9
|
+
export function gameStyle() {
|
|
10
|
+
return { system: theme.system, name: theme.name, shows: theme.css !== undefined || freeStyle !== undefined, refused: theme.refused === true };
|
|
11
|
+
}
|
|
12
|
+
/** The lines of an icon the game's style draws anew, while it is on; undefined for the page's own. */
|
|
13
|
+
export function themedIcon(name) {
|
|
14
|
+
return styleOn() ? theme.icons?.[name] : undefined;
|
|
15
|
+
}
|
|
16
|
+
/** Takes the theme of the campaign's system as read, and the free style sheet of its page module; the page shows them while the game's style is on. */
|
|
17
|
+
export function takeSystemStyle(read, pageStyle) {
|
|
18
|
+
const same = JSON.stringify(read) === JSON.stringify(theme) && pageStyle === freeStyle;
|
|
19
|
+
theme = read;
|
|
20
|
+
freeStyle = pageStyle;
|
|
21
|
+
if (!same) {
|
|
22
|
+
applyGameStyle();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/** Shows the game's style or the page's own, as the player keeps it for the campaign's system: after a change of that choice, or of what the system gives. */
|
|
26
|
+
export function applyGameStyle() {
|
|
27
|
+
if (typeof document === "undefined") {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const on = styleOn();
|
|
31
|
+
themeSheet ??= new CSSStyleSheet();
|
|
32
|
+
freeSheet ??= new CSSStyleSheet();
|
|
33
|
+
themeSheet.replaceSync(on ? theme.css ?? "" : "");
|
|
34
|
+
freeSheet.replaceSync(on ? freeStyle ?? "" : "");
|
|
35
|
+
const others = document.adoptedStyleSheets.filter((sheet) => sheet !== themeSheet && sheet !== freeSheet);
|
|
36
|
+
document.adoptedStyleSheets = [...others, themeSheet, freeSheet];
|
|
37
|
+
document.querySelectorAll(".title-too-wide").forEach((title) => title.classList.remove("title-too-wide"));
|
|
38
|
+
watchTitles();
|
|
39
|
+
fitTitles();
|
|
40
|
+
window.dispatchEvent(new Event(gameStyleChanged));
|
|
41
|
+
}
|
|
42
|
+
let theme = {};
|
|
43
|
+
let freeStyle;
|
|
44
|
+
let themeSheet;
|
|
45
|
+
let freeSheet;
|
|
46
|
+
let watching = false;
|
|
47
|
+
let fitting = false;
|
|
48
|
+
// The card titles the theme's face may make too wide, and the campaign's name.
|
|
49
|
+
const titles = ":is(summary, .card-head) :is(h2, h3, .rolls-title), .titles h1";
|
|
50
|
+
function styleOn() {
|
|
51
|
+
return theme.system !== undefined && gameStyle().shows && readChoice(systemStylePref(theme.system)) === "game";
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Each title the theme's face makes wider than its card goes back to the text's face, that title alone (D-528 (4)): measured as the page changes, as its
|
|
55
|
+
* faces come, and anew when the window's width changes.
|
|
56
|
+
*/
|
|
57
|
+
function watchTitles() {
|
|
58
|
+
if (watching) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
watching = true;
|
|
62
|
+
new MutationObserver(fitTitles).observe(document.body, { subtree: true, childList: true });
|
|
63
|
+
document.fonts.addEventListener("loadingdone", fitTitles);
|
|
64
|
+
window.addEventListener("resize", () => {
|
|
65
|
+
document.querySelectorAll(".title-too-wide").forEach((title) => title.classList.remove("title-too-wide"));
|
|
66
|
+
fitTitles();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/** Measures the titles at the next frame, once however often it is asked meanwhile. */
|
|
70
|
+
function fitTitles() {
|
|
71
|
+
if (fitting || !styleOn()) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
fitting = true;
|
|
75
|
+
requestAnimationFrame(() => {
|
|
76
|
+
fitting = false;
|
|
77
|
+
for (const title of document.querySelectorAll(titles)) {
|
|
78
|
+
const head = title.closest("summary, .card-head") ?? title;
|
|
79
|
+
if (!title.classList.contains("title-too-wide") && (title.scrollWidth > title.clientWidth + 1 || head.scrollWidth > head.clientWidth + 1)) {
|
|
80
|
+
title.classList.add("title-too-wide");
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
package/dist/dashboard/theme.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
// The page's theme (D-300): the system's, until the player picks light or dark at the top of the page, which this browser remembers; the dice follow it.
|
|
1
|
+
// The page's theme (D-300): the system's, until the player picks light or dark at the top of the page, which this browser remembers; the dice follow it. The page
|
|
2
|
+
// always says on <html> which one it shows, so that a game's style can give each its own pictures (D-528).
|
|
2
3
|
import { announcePref } from "./prefs.js";
|
|
3
4
|
// Where the browser remembers the theme the player picked.
|
|
4
5
|
const themeKey = "rpg-engine.theme";
|
|
6
|
+
// The theme of the system, which the page shows while the player picks none.
|
|
7
|
+
const systemDark = typeof matchMedia === "undefined" ? undefined : matchMedia("(prefers-color-scheme: dark)");
|
|
5
8
|
/** The theme the page shows: the one the player picked, or the system's. */
|
|
6
9
|
export function shownTheme() {
|
|
7
|
-
const
|
|
8
|
-
return
|
|
10
|
+
const shown = typeof document === "undefined" ? undefined : document.documentElement.dataset.theme;
|
|
11
|
+
return shown === "light" || shown === "dark" ? shown : systemDark?.matches === true ? "dark" : "light";
|
|
9
12
|
}
|
|
10
13
|
/** Shows the theme the player picked, and remembers it in this browser; every part of the page that shows it hears of it. */
|
|
11
14
|
export function pickTheme(theme) {
|
|
@@ -18,15 +21,23 @@ export function pickTheme(theme) {
|
|
|
18
21
|
}
|
|
19
22
|
announcePref();
|
|
20
23
|
}
|
|
21
|
-
/** At the page's start, the theme the player picked before,
|
|
24
|
+
/** At the page's start, the theme the player picked before, else the system's, followed as it changes while the player picks none. */
|
|
22
25
|
export function restoreTheme() {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (picked ===
|
|
26
|
-
document.documentElement.dataset.theme =
|
|
26
|
+
document.documentElement.dataset.theme = picked() ?? (systemDark?.matches === true ? "dark" : "light");
|
|
27
|
+
systemDark?.addEventListener("change", () => {
|
|
28
|
+
if (picked() === undefined) {
|
|
29
|
+
document.documentElement.dataset.theme = systemDark.matches ? "dark" : "light";
|
|
30
|
+
announcePref();
|
|
27
31
|
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function picked() {
|
|
35
|
+
try {
|
|
36
|
+
const kept = localStorage.getItem(themeKey);
|
|
37
|
+
return kept === "light" || kept === "dark" ? kept : undefined;
|
|
28
38
|
}
|
|
29
39
|
catch {
|
|
30
40
|
// No storage: the system's theme.
|
|
41
|
+
return undefined;
|
|
31
42
|
}
|
|
32
43
|
}
|
package/dist/dashboard/top.js
CHANGED
|
@@ -7,11 +7,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-ru
|
|
|
7
7
|
import { Fragment } from "preact";
|
|
8
8
|
import { useEffect, useLayoutEffect, useRef, useState } from "preact/hooks";
|
|
9
9
|
import { menuPages, packagePages, sectionAddress, sectionLabel, sections } from "./address.js";
|
|
10
|
-
import { Drawn, WidgetChips } from "./extension-widgets.js";
|
|
11
10
|
import { calendarDayLabel, gameDateLabel } from "./game-words.js";
|
|
12
11
|
import { Icon } from "./icons.js";
|
|
13
12
|
import { Master } from "./master.js";
|
|
14
|
-
import { ownKey } from "./page-code.js";
|
|
13
|
+
import { ownKey } from "./packages/page-code.js";
|
|
14
|
+
import { Drawn, WidgetChips } from "./packages/widgets.js";
|
|
15
15
|
import { usePrefChange } from "./prefs.js";
|
|
16
16
|
import { t } from "./text.js";
|
|
17
17
|
import { pickTheme, shownTheme } from "./theme.js";
|
package/dist/dashboard/turns.js
CHANGED
|
@@ -4,12 +4,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-ru
|
|
|
4
4
|
// strip that lights up on their turn, their counter, the party's as numbers and a foe's in words, their state as icons, what they keep, the death saves at 0;
|
|
5
5
|
// and the player's character's card, the fields and groups of its sheet the system names. The page never decides a rule: it shows.
|
|
6
6
|
import { useContext, useEffect, useRef } from "preact/hooks";
|
|
7
|
-
import { TalkName } from "./
|
|
7
|
+
import { TalkName } from "./acts/names.js";
|
|
8
8
|
import { CardHead, CardHeader, useOpen } from "./card.js";
|
|
9
|
-
import { WidgetsContext } from "./extension-widgets.js";
|
|
10
9
|
import { Icon, iconPath } from "./icons.js";
|
|
11
10
|
import { fieldLabel, itemLabel, phraseLabel, shownText, strangerLabel } from "./labels.js";
|
|
12
11
|
import { stripCounter } from "./layout.js";
|
|
12
|
+
import { WidgetsContext } from "./packages/widgets.js";
|
|
13
13
|
import { sideOf, Token } from "./party.js";
|
|
14
14
|
import { PersonPanel, personShown } from "./person-panel.js";
|
|
15
15
|
import { SheetAtHand } from "./sheet.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
2
|
// The widgets of a value (D-273, D-284): pips, a bar, a track centred on zero, a number's progress, chips or a list of sentences; each says its value in words
|
|
3
3
|
// for a screen reader.
|
|
4
|
-
import { ActName, usePlayerActs } from "./
|
|
4
|
+
import { ActName, usePlayerActs } from "./acts/names.js";
|
|
5
5
|
import { Coins } from "./coins.js";
|
|
6
6
|
import { besideLabel, burnsLabel, effectEndLabel, effectLabel, effectName } from "./game-words.js";
|
|
7
7
|
import { itemLabel, shownText } from "./labels.js";
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-runtime";
|
|
2
|
+
// The calendar of the World section (D-276, TIM-8): today, as large as a game's date; the deadlines the character knows, the soonest first, with the time left;
|
|
3
|
+
// the month with its season along the year, its days in rows of ten (five on a phone), never weeks, which a calendar of months alone does not have; the days of
|
|
4
|
+
// the story lit, the scenes and deadlines marked, and the day chosen with what it holds, its scenes with their place leading to the Journal. Without a
|
|
5
|
+
// calendar start, the days of the story in the same rows, by their number.
|
|
6
|
+
import { useEffect, useRef, useState } from "preact/hooks";
|
|
7
|
+
import { sectionAddress } from "../address.js";
|
|
8
|
+
import { CardHead, useMedia } from "../card.js";
|
|
9
|
+
import { calendarDayLabel, calendarMonthLabel, gameDateLabel, seasonLabel } from "../game-words.js";
|
|
10
|
+
import { Icon, iconPath } from "../icons.js";
|
|
11
|
+
import { Deadline } from "../journal.js";
|
|
12
|
+
import { arrowStep, capitalized, isolated, listText, t } from "../text.js";
|
|
13
|
+
import { calendarDateOf, dayMarks, monthAt, monthOffsetOf, storyDays } from "./days.js";
|
|
14
|
+
export function CalendarTab({ calendar }) {
|
|
15
|
+
const narrow = useMedia("(max-width: 600px)");
|
|
16
|
+
const row = narrow ? 5 : 10;
|
|
17
|
+
const [offset, setOffset] = useState(0);
|
|
18
|
+
const [chosen, setChosen] = useState(calendar.today ?? 1);
|
|
19
|
+
const grid = useRef(null);
|
|
20
|
+
const keyed = useRef(false);
|
|
21
|
+
const month = monthAt(calendar, offset);
|
|
22
|
+
const days = month === undefined ? storyDays(calendar, row) : Array.from({ length: month.days }, (_, index) => month.first + index);
|
|
23
|
+
// A day chosen with the keys takes the focus, in this month or the next one the arrows went to.
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
if (keyed.current) {
|
|
26
|
+
keyed.current = false;
|
|
27
|
+
grid.current?.querySelector(`[data-day="${chosen}"]`)?.focus();
|
|
28
|
+
}
|
|
29
|
+
}, [chosen, offset]);
|
|
30
|
+
const choose = (day, byKeys = false) => {
|
|
31
|
+
keyed.current = byKeys;
|
|
32
|
+
setChosen(day);
|
|
33
|
+
if (month !== undefined && (day < month.first || day >= month.first + month.days)) {
|
|
34
|
+
setOffset(monthOffsetOf(calendar, day));
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
// The day the keys reach the grid on: the one chosen, or the month's first when it is in another month.
|
|
38
|
+
const focusable = days.includes(chosen) ? chosen : days[0];
|
|
39
|
+
const move = (event) => {
|
|
40
|
+
const across = arrowStep(event.key, true);
|
|
41
|
+
const step = across !== 0 ? across : event.key === "ArrowDown" ? row : event.key === "ArrowUp" ? -row : 0;
|
|
42
|
+
// From the day that has the focus, which may not be the one chosen, as when the chosen day is in another month.
|
|
43
|
+
const from = Number(event.target.dataset.day ?? focusable);
|
|
44
|
+
const to = event.key === "Home" ? days[0] : event.key === "End" ? days.at(-1) : step === 0 ? undefined : from + step;
|
|
45
|
+
if (to !== undefined && (month !== undefined || days.includes(to))) {
|
|
46
|
+
event.preventDefault();
|
|
47
|
+
choose(to, true);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const backToday = () => {
|
|
51
|
+
setOffset(0);
|
|
52
|
+
setChosen(calendar.today ?? 1);
|
|
53
|
+
};
|
|
54
|
+
return (_jsxs("div", { class: "calendar", children: [_jsxs("div", { class: "calendar-side", children: [_jsx(Today, { calendar: calendar }), calendar.deadlines.length > 0 && _jsx(Deadlines, { calendar: calendar })] }), _jsxs("section", { class: "card calendar-month", "aria-labelledby": "calendar-month-title", children: [_jsx(CardHead, { icon: iconPath("calendar"), title: _jsx("h3", { id: "calendar-month-title", class: "calendar-month-name", children: month === undefined ? t("The days of the story") : calendarMonthLabel(month.name, month.year) }), children: month !== undefined && (_jsxs("span", { class: "calendar-steps", children: [(offset !== 0 || chosen !== calendar.today) && _jsx("button", { type: "button", class: "button quiet", onClick: backToday, children: t("Today") }), _jsx("button", { type: "button", class: "icon-button calendar-back", "aria-label": t("Previous month"), "data-tip": t("Previous month"), onClick: () => setOffset(offset - 1), children: _jsx(Icon, { name: "fold" }) }), _jsx("button", { type: "button", class: "icon-button tip-left", "aria-label": t("Next month"), "data-tip": t("Next month"), onClick: () => setOffset(offset + 1), children: _jsx(Icon, { name: "fold" }) })] })) }), _jsxs("div", { class: "card-body", children: [month !== undefined && _jsx(Year, { calendar: calendar, month: month }), _jsx("div", { class: `calendar-days rows-${row}`, role: "group", "aria-label": t("Days"), ref: grid, onKeyDown: move, children: days.map((day) => (_jsx(DayCell, { calendar: calendar, day: day, label: month === undefined ? day : day - month.first + 1, chosen: day === chosen, focusable: day === focusable, onChoose: () => choose(day) }, day))) }), _jsxs("p", { class: "calendar-key", "aria-hidden": "true", children: [_jsx("span", { class: "calendar-key-today", children: t("Today") }), _jsx("span", { class: "calendar-key-lived", children: t("Days of the story") }), _jsx("span", { class: "calendar-key-scene", children: t("Scene") }), _jsxs("span", { class: "calendar-key-deadline", children: [_jsx(Icon, { name: "hourglass" }), t("Deadline")] })] }), _jsx(DayDetails, { calendar: calendar, day: chosen })] })] })] }));
|
|
55
|
+
}
|
|
56
|
+
/** Today, large: the day of the calendar with its season, or the game's day; the game's date and hour under it. */
|
|
57
|
+
function Today({ calendar }) {
|
|
58
|
+
const date = calendar.today === undefined ? undefined : calendarDateOf(calendar, calendar.today);
|
|
59
|
+
return (_jsxs("section", { class: "card calendar-today", "aria-labelledby": "calendar-today-title", children: [_jsx(CardHead, { icon: iconPath("clock"), title: _jsx("h3", { id: "calendar-today-title", children: t("Today") }) }), _jsx("div", { class: "card-body", children: calendar.now === undefined ? _jsx("p", { class: "browse-none", children: t("The story has no date yet: the master sets it when the play begins.") }) : (_jsxs(_Fragment, { children: [_jsx("p", { class: "calendar-date", children: date === undefined ? capitalized(gameDateLabel(`day ${calendar.today}`)) : calendarDayLabel({ day: date.day, month: date.name, ...(date.year === undefined ? {} : { year: date.year }) }) }), _jsxs("p", { class: "calendar-now", children: [date?.season !== undefined && _jsx(Season, { season: date.season }), _jsx("span", { children: date === undefined ? /\d{1,2}:\d{2}/.exec(calendar.now)?.[0] : capitalized(gameDateLabel(calendar.now)) })] })] })) })] }));
|
|
60
|
+
}
|
|
61
|
+
/** The deadlines the character knows, the soonest first: the quest, the day it falls on, the time left; each leads to the quests in the Journal. */
|
|
62
|
+
function Deadlines({ calendar }) {
|
|
63
|
+
return (_jsxs("section", { class: "card", "aria-labelledby": "calendar-deadlines-title", children: [_jsx(CardHead, { icon: iconPath("hourglass"), title: _jsx("h3", { id: "calendar-deadlines-title", children: t("Deadlines") }) }), _jsx("ul", { class: "calendar-deadlines", children: calendar.deadlines.map((deadline) => (_jsx("li", { children: _jsxs("a", { class: deadline.main ? "calendar-deadline main" : "calendar-deadline", href: sectionAddress("journal", "quests"), children: [_jsxs("span", { class: "browse-words", children: [_jsx("span", { class: "browse-name", children: deadline.quest }), _jsx("span", { class: "browse-meta", children: [deadline.main ? t("Main quest") : undefined, dayName(calendar, deadline.day)].filter((part) => part !== undefined).join(" · ") })] }), _jsx(Deadline, { deadline: deadline })] }) }, deadline.quest))) })] }));
|
|
64
|
+
}
|
|
65
|
+
/** The months of the year as a ribbon, each as long as its days and in its season's colour; the month shown raised, today's with a dot. */
|
|
66
|
+
function Year({ calendar, month }) {
|
|
67
|
+
const months = calendar.months ?? [];
|
|
68
|
+
return (_jsxs("div", { class: "calendar-year", "aria-hidden": "true", children: [months.map((one, index) => (_jsx("span", { class: ["calendar-year-month", `season-${seasonClass(one.season)}`, index === month.month ? "shown" : "", index === calendar.date?.month ? "now" : ""].filter((name) => name !== "").join(" "), style: { flexGrow: String(one.days) } }, index))), month.season !== undefined && _jsx(Season, { season: month.season })] }));
|
|
69
|
+
}
|
|
70
|
+
/** A day of the grid: its number, today ringed, the story's days lit, a dot for each scene, the hourglass of a deadline; its words for a screen reader. */
|
|
71
|
+
function DayCell({ calendar, day, label, chosen, focusable, onChoose }) {
|
|
72
|
+
const marks = dayMarks(calendar, day);
|
|
73
|
+
const classes = ["calendar-day", marks.today ? "today" : "", marks.lived ? "lived" : "", day < 1 ? "before" : "", marks.deadlines.length > 0 ? "due" : ""].filter((name) => name !== "").join(" ");
|
|
74
|
+
const words = [
|
|
75
|
+
dayName(calendar, day),
|
|
76
|
+
marks.today ? t("today") : undefined,
|
|
77
|
+
marks.scenes.length === 0 ? undefined : marks.scenes.length === 1 ? t("1 scene") : t("{count} scenes", { count: marks.scenes.length }),
|
|
78
|
+
marks.deadlines.length === 0 ? undefined : t("deadline of {quests}", { quests: listText(marks.deadlines.map((deadline) => deadline.quest)) }),
|
|
79
|
+
].filter((part) => part !== undefined);
|
|
80
|
+
return (_jsxs("button", { type: "button", class: classes, "data-day": day, "aria-pressed": chosen, "aria-label": words.join(", "), tabIndex: focusable ? 0 : -1, onClick: onChoose, children: [_jsx("span", { class: "calendar-day-number num", "aria-hidden": "true", children: label }), _jsxs("span", { class: "calendar-day-marks", "aria-hidden": "true", children: [marks.scenes.slice(0, 3).map((scene) => _jsx("span", { class: "calendar-scene-dot" }, scene.number)), marks.deadlines.length > 0 && _jsx(Icon, { name: "hourglass" })] })] }));
|
|
81
|
+
}
|
|
82
|
+
/** What the chosen day holds: its name, its deadlines and its scenes, each scene leading to its chapter in the Journal. */
|
|
83
|
+
function DayDetails({ calendar, day }) {
|
|
84
|
+
const marks = dayMarks(calendar, day);
|
|
85
|
+
const empty = marks.scenes.length === 0 && marks.deadlines.length === 0;
|
|
86
|
+
return (_jsxs("div", { class: "calendar-chosen", children: [_jsxs("h4", { class: "calendar-chosen-title", children: [capitalized(dayName(calendar, day)), marks.today && _jsx("span", { class: "eyebrow accent calendar-chosen-now", children: t("Today") })] }), empty && _jsx("p", { class: "browse-none", children: day > (calendar.today ?? 1) ? t("Nothing your character knows of is due on this day.") : t("No scene of the story on this day.") }), !empty && (_jsxs("ul", { class: "calendar-chosen-list", children: [marks.deadlines.map((deadline) => (_jsx("li", { children: _jsxs("a", { class: "calendar-line", href: sectionAddress("journal", "quests"), children: [_jsx(Icon, { name: "hourglass" }), _jsx("span", { children: t("Deadline of {quest}", { quest: isolated(deadline.quest) }) })] }) }, deadline.quest))), marks.scenes.map((scene) => (_jsx("li", { children: _jsxs("a", { class: "calendar-line", href: sectionAddress("journal", "story", String(scene.number)), children: [_jsx(Icon, { name: "journal" }), _jsxs("span", { class: "calendar-scene", children: [_jsxs("span", { children: [_jsx("span", { class: "calendar-chapter", children: t("Chapter {number}", { number: scene.number }) }), ` ${scene.title}`] }), scene.place !== undefined && _jsx("span", { class: "calendar-scene-place", children: scene.place })] })] }) }, scene.number)))] }))] }));
|
|
87
|
+
}
|
|
88
|
+
/** A season by its word, after a dot of its colour. */
|
|
89
|
+
function Season({ season }) {
|
|
90
|
+
return (_jsxs("span", { class: `calendar-season season-${seasonClass(season)}`, children: [_jsx("span", { class: "calendar-season-dot", "aria-hidden": "true" }), seasonLabel(season)] }));
|
|
91
|
+
}
|
|
92
|
+
/** A game day by its name: the day of the calendar with its game day, as 30 October 1491 · day 3, or day 3 without a calendar start. */
|
|
93
|
+
function dayName(calendar, day) {
|
|
94
|
+
const date = calendarDateOf(calendar, day);
|
|
95
|
+
const game = day >= 1 ? gameDateLabel(`day ${day}`) : undefined;
|
|
96
|
+
return date === undefined ? game ?? "" : [calendarDayLabel({ day: date.day, month: date.name, ...(date.year === undefined ? {} : { year: date.year }) }), game].filter((part) => part !== undefined).join(" · ");
|
|
97
|
+
}
|
|
98
|
+
/** The four seasons have their colours; any other season is plain. */
|
|
99
|
+
function seasonClass(season) {
|
|
100
|
+
return season !== undefined && ["winter", "spring", "summer", "autumn"].includes(season) ? season : "other";
|
|
101
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { foldedText } from "../text.js";
|
|
2
|
+
/** The groups of the lore, in the order the list shows them: people, places, factions, creatures, items, tales and events, then the rest. */
|
|
3
|
+
const loreGroups = ["people", "places", "factions", "creatures", "items", "tales", "other"];
|
|
4
|
+
/** The group a page belongs to, by its type. */
|
|
5
|
+
export function loreGroupOf(entry) {
|
|
6
|
+
const groups = { character: "people", place: "places", faction: "factions", creature: "creatures", item: "items", event: "tales", topic: "tales" };
|
|
7
|
+
return groups[entry.type] ?? "other";
|
|
8
|
+
}
|
|
9
|
+
/** The pages a search finds, every word of it in their name, their opening or the places that hold them, without minding case or accents; in a group, or all. */
|
|
10
|
+
export function foundLore(entries, search, group) {
|
|
11
|
+
const words = foldedText(search).split(/\s+/).filter((word) => word !== "");
|
|
12
|
+
return entries.filter((entry) => {
|
|
13
|
+
const text = foldedText([entry.name, entry.summary, ...(entry.within ?? [])].join(" "));
|
|
14
|
+
return (group === undefined || loreGroupOf(entry) === group) && words.every((word) => text.includes(word));
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/** Whether a player character knows a page, with more than one: all of them do unless it says who (VIEW-12). */
|
|
18
|
+
export function knownTo(entry, name) {
|
|
19
|
+
return entry.knownBy === undefined || entry.knownBy.includes(name);
|
|
20
|
+
}
|
|
21
|
+
/** The pages in their groups, in the groups' order, each group as the list gives it; the empty groups left out. */
|
|
22
|
+
export function groupedLore(entries) {
|
|
23
|
+
return loreGroups.map((group) => ({ group, entries: entries.filter((entry) => loreGroupOf(entry) === group) })).filter((part) => part.entries.length > 0);
|
|
24
|
+
}
|
|
25
|
+
/** The page a link of a text names: [[Page]], [[Page|words]], [[Page#Part]], [[folder/Page.md|words]] all name Page. */
|
|
26
|
+
export function linkedName(target) {
|
|
27
|
+
return target.split("#")[0].split("/").at(-1)?.replace(/\.md$/i, "").trim() ?? "";
|
|
28
|
+
}
|
|
29
|
+
/** The looks of documents: each kind the page draws, and the words of the document field that name it. */
|
|
30
|
+
const documentLooks = {
|
|
31
|
+
letter: ["letter", "message", "missive", "invitation", "envelope"],
|
|
32
|
+
note: ["note", "receipt", "list", "ticket"],
|
|
33
|
+
notice: ["notice", "poster", "bounty", "proclamation", "decree", "sign", "placard"],
|
|
34
|
+
page: ["page", "book", "tome", "leaf", "chapter", "prayer"],
|
|
35
|
+
diary: ["diary", "journal", "logbook", "log"],
|
|
36
|
+
map: ["map", "chart", "plan"],
|
|
37
|
+
scroll: ["scroll"],
|
|
38
|
+
inscription: ["inscription", "carving", "epitaph", "tablet", "stone"],
|
|
39
|
+
};
|
|
40
|
+
/** The look of a document by what it is, as letter or notice; plain for one the page does not know. */
|
|
41
|
+
export function documentLook(document) {
|
|
42
|
+
const word = document.trim().toLowerCase();
|
|
43
|
+
return Object.entries(documentLooks).find(([, words]) => words.includes(word))?.[0] ?? "plain";
|
|
44
|
+
}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef, useState } from "preact/hooks";
|
|
3
|
+
import { sectionAddress } from "../address.js";
|
|
4
|
+
import { pictureAddress, readView } from "../api.js";
|
|
5
|
+
import { useMedia } from "../card.js";
|
|
6
|
+
import { Icon } from "../icons.js";
|
|
7
|
+
import { placeKindLabel, placeKinds } from "../map-symbols.js";
|
|
8
|
+
import { knowersOf, Markdown, plainLine } from "../markdown.js";
|
|
9
|
+
import { Token } from "../party.js";
|
|
10
|
+
import { arrowStep, capitalized, foldedText, t } from "../text.js";
|
|
11
|
+
import { documentLook, foundLore, groupedLore, knownTo, loreGroupOf } from "./known.js";
|
|
12
|
+
// From this width the reader stands beside the list.
|
|
13
|
+
const wide = "(min-width: 900px)";
|
|
14
|
+
/**
|
|
15
|
+
* The pages the character knows: the list by kind with its search, and the one open, read again as the game changes (`version`). `onMap` is the address of a
|
|
16
|
+
* place on the world map, or of the nearest that holds it. With more than one player character (`players`), a chip for each among the kinds shows what that
|
|
17
|
+
* one knows (D-480 (7)).
|
|
18
|
+
*/
|
|
19
|
+
export function LoreTab({ world, version, open, onMap, players = [] }) {
|
|
20
|
+
const [search, setSearch] = useState("");
|
|
21
|
+
// A kind of page, or a player character's name after "@".
|
|
22
|
+
const [filter, setFilter] = useState();
|
|
23
|
+
const besides = useMedia(wide);
|
|
24
|
+
const found = foundLore(world.known, search);
|
|
25
|
+
const kept = (entry, key) => key === undefined || (key.startsWith("@") ? knownTo(entry, key.slice(1)) : loreGroupOf(entry) === key);
|
|
26
|
+
const shownFilter = filter !== undefined && found.some((entry) => kept(entry, filter)) ? filter : undefined;
|
|
27
|
+
const listed = found.filter((entry) => kept(entry, shownFilter));
|
|
28
|
+
const groups = groupedLore(listed);
|
|
29
|
+
const each = players.length > 1 ? players : [];
|
|
30
|
+
// A name the address gives that the character does not know: said so over the list.
|
|
31
|
+
const asked = world.known.find((one) => one.name === open);
|
|
32
|
+
const entry = asked ?? (besides ? groups[0]?.entries[0] : undefined);
|
|
33
|
+
const link = linksOf(world);
|
|
34
|
+
if (world.known.length === 0) {
|
|
35
|
+
return _jsx("p", { class: "browse-none", children: t("Your character knows no one and nothing yet: whom they meet and what they learn comes here, as the master writes it.") });
|
|
36
|
+
}
|
|
37
|
+
return (_jsxs(Browse, { open: entry?.name, explicit: asked !== undefined, back: sectionAddress("world", "lore"), backLabel: t("All you know"), children: [_jsxs("div", { class: "browse-list", children: [open !== undefined && asked === undefined && _jsx("p", { class: "browse-none", role: "status", children: t("Your character knows nothing called “{name}”.", { name: open }) }), _jsx("div", { class: "browse-find", children: _jsxs("span", { class: "search", children: [_jsx(Icon, { name: "search" }), _jsx("input", { type: "search", value: search, placeholder: t("Search"), "aria-label": t("Search what your character knows"), onInput: (event) => setSearch(event.currentTarget.value) })] }) }), (groupedLore(world.known).length > 1 || each.length > 0) && (_jsx(FilterChips, { label: t("Kinds"), chosen: shownFilter, onChoose: setFilter, all: found.length, options: [
|
|
38
|
+
...groupedLore(found).map((part) => ({ key: part.group, name: groupLabel(part.group), count: part.entries.length })),
|
|
39
|
+
...each.map((member) => ({ key: `@${member.name}`, name: member.name, count: found.filter((entry) => knownTo(entry, member.name)).length, member })),
|
|
40
|
+
] })), found.length === 0 && (_jsxs("p", { class: "browse-none", role: "status", children: [t("Nothing your character knows matches “{search}”.", { search }), " ", _jsx("button", { type: "button", class: "button quiet", onClick: () => setSearch(""), children: t("Clear the search") })] })), groups.map((part) => (_jsxs("section", { class: "browse-group", "aria-labelledby": `lore-${part.group}`, children: [_jsxs("h3", { class: "eyebrow", id: `lore-${part.group}`, children: [groupLabel(part.group), _jsx("span", { class: "browse-count num", children: part.entries.length })] }), _jsx("ul", { class: "browse-rows", children: part.entries.map((one, index) => (_jsx("li", { children: _jsxs("a", { class: "browse-row", href: sectionAddress("world", "lore", one.name), "aria-current": one.name === entry?.name ? "true" : undefined, "aria-describedby": `lore-${part.group}-${index}`, "data-name": one.name, children: [_jsx(LoreThumb, { entry: one }), _jsxs("span", { class: "browse-words", children: [_jsx("span", { class: "browse-name", children: one.name }), _jsx("span", { class: "browse-meta", id: `lore-${part.group}-${index}`, children: entryMeta(one) })] })] }) }, one.name))) })] }, part.group)))] }), entry !== undefined && (_jsx(LoreReader, { entry: entry, version: version, link: link, several: each.length > 0, onMap: entry.type === "place" ? onMap([entry.name, ...entry.within ?? []]) : undefined, focus: asked !== undefined }, entry.name))] }));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The documents the character has or read: those it carries, then the others; the one open on its paper, as what it is. With more than one player character
|
|
44
|
+
* (`players`), a group for each who carries some, by name (D-480 (7)).
|
|
45
|
+
*/
|
|
46
|
+
export function DocumentsTab({ world, open, players = [] }) {
|
|
47
|
+
const besides = useMedia(wide);
|
|
48
|
+
const asked = world.documents.find((one) => one.name === open);
|
|
49
|
+
const document = asked ?? (besides ? world.documents[0] : undefined);
|
|
50
|
+
const link = linksOf(world);
|
|
51
|
+
if (world.documents.length === 0) {
|
|
52
|
+
return _jsx("p", { class: "browse-none", children: t("No documents yet: the letters, notices and pages your character finds or reads come here, to read again.") });
|
|
53
|
+
}
|
|
54
|
+
const several = players.length > 1;
|
|
55
|
+
const carriers = several ? players.map((member) => member.name) : [];
|
|
56
|
+
const parts = [
|
|
57
|
+
...carriers.map((name, index) => ({ key: `carried-${index}`, name: t("With {name}", { name }), documents: world.documents.filter((one) => one.carried && one.carrier === name) })),
|
|
58
|
+
{ key: "carried", name: t("With you"), documents: world.documents.filter((one) => one.carried && (one.carrier === undefined || !carriers.includes(one.carrier))) },
|
|
59
|
+
{ key: "read", name: t("Read elsewhere"), documents: world.documents.filter((one) => !one.carried) },
|
|
60
|
+
].filter((part) => part.documents.length > 0);
|
|
61
|
+
return (_jsxs(Browse, { open: document?.name, explicit: asked !== undefined, back: sectionAddress("world", "documents"), backLabel: t("All documents"), children: [_jsxs("div", { class: "browse-list", children: [open !== undefined && asked === undefined && _jsx("p", { class: "browse-none", role: "status", children: t("Your character has no document called “{name}”.", { name: open }) }), parts.map((part) => (_jsxs("section", { class: "browse-group", "aria-labelledby": `documents-${part.key}`, children: [_jsxs("h3", { class: "eyebrow", id: `documents-${part.key}`, children: [part.name, _jsx("span", { class: "browse-count num", children: part.documents.length })] }), _jsx("ul", { class: "browse-rows", children: part.documents.map((one, index) => (_jsx("li", { children: _jsxs("a", { class: "browse-row", href: sectionAddress("world", "documents", one.name), "aria-current": one.name === document?.name ? "true" : undefined, "aria-describedby": `documents-${part.key}-${index}`, "data-name": one.name, children: [_jsx("span", { class: `browse-thumb paper-thumb look-${documentLook(one.document)}`, "aria-hidden": "true", children: _jsx(DocumentGlyph, { look: documentLook(one.document) }) }), _jsxs("span", { class: "browse-words", children: [_jsx("span", { class: "browse-name", children: one.name }), _jsx("span", { class: "browse-meta", id: `documents-${part.key}-${index}`, children: [documentLabel(one.document), plainLine(one.text)].filter((part) => part !== undefined).join(" · ") })] })] }) }, one.name))) })] }, part.key)))] }), document !== undefined && _jsx(DocumentReader, { document: document, link: link, focus: asked !== undefined, several: several }, document.name)] }));
|
|
62
|
+
}
|
|
63
|
+
/** Whether a document is carried, in words: by the player's character, or with more than one by the one named, as its group says; nothing of one read elsewhere. */
|
|
64
|
+
function carriedWords(document, several) {
|
|
65
|
+
if (!several) {
|
|
66
|
+
return document.carried ? t("You carry it") : t("You read it");
|
|
67
|
+
}
|
|
68
|
+
return document.carried && document.carrier !== undefined ? t("With {name}", { name: document.carrier }) : undefined;
|
|
69
|
+
}
|
|
70
|
+
/** A document in the page's language, by what it is: Letter; one the page does not know as its own word. */
|
|
71
|
+
function documentLabel(document) {
|
|
72
|
+
const labels = {
|
|
73
|
+
letter: t("Letter"),
|
|
74
|
+
note: t("Note"),
|
|
75
|
+
notice: t("Notice"),
|
|
76
|
+
page: t("Page"),
|
|
77
|
+
book: t("Book"),
|
|
78
|
+
diary: t("Diary"),
|
|
79
|
+
journal: t("Diary"),
|
|
80
|
+
map: t("Map"),
|
|
81
|
+
scroll: t("Scroll"),
|
|
82
|
+
inscription: t("Inscription"),
|
|
83
|
+
};
|
|
84
|
+
const word = document.trim();
|
|
85
|
+
return labels[word.toLowerCase()] ?? capitalized(word);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The list and its reader: side by side on a wide screen; under it the reader in the list's place once a page is open, with the way back at its top. Back from
|
|
89
|
+
* a page, the focus goes to its row.
|
|
90
|
+
*/
|
|
91
|
+
function Browse({ open, explicit, back, backLabel, children }) {
|
|
92
|
+
const box = useRef(null);
|
|
93
|
+
const last = useRef();
|
|
94
|
+
useEffect(() => {
|
|
95
|
+
if (explicit) {
|
|
96
|
+
last.current = open;
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const row = last.current === undefined ? undefined : [...box.current?.querySelectorAll(".browse-row") ?? []].find((one) => one.dataset.name === last.current);
|
|
100
|
+
last.current = undefined;
|
|
101
|
+
if (row !== undefined) {
|
|
102
|
+
row.focus({ preventScroll: true });
|
|
103
|
+
row.scrollIntoView({ block: "center" });
|
|
104
|
+
}
|
|
105
|
+
}, [open, explicit]);
|
|
106
|
+
return (_jsxs("div", { class: explicit ? "browse open" : "browse", ref: box, children: [explicit && (_jsxs("a", { class: "browse-back button quiet", href: back, children: [_jsx(Icon, { name: "fold" }), backLabel] })), children] }));
|
|
107
|
+
}
|
|
108
|
+
/** A page the character knows, read whole as it knows it: its picture, what it is and where, its text with its links, and where it leads on the page. */
|
|
109
|
+
function LoreReader({ entry, version, link, onMap, focus, several }) {
|
|
110
|
+
const [text, setText] = useState();
|
|
111
|
+
// Who knows each secret, when not all the player characters do: said after its title, the one place the page names them (D-480 (7)).
|
|
112
|
+
const [knowers, setKnowers] = useState([]);
|
|
113
|
+
const [problem, setProblem] = useState(false);
|
|
114
|
+
const reads = useRef(0);
|
|
115
|
+
const title = useRef(null);
|
|
116
|
+
// Its whole text, read when it opens and again as the game changes, the last reading alone; the opening the list has until then.
|
|
117
|
+
useEffect(() => {
|
|
118
|
+
const reading = ++reads.current;
|
|
119
|
+
readView(entry.name).then((page) => {
|
|
120
|
+
if (reading === reads.current) {
|
|
121
|
+
setText(page.kind === "page" ? page.text : "");
|
|
122
|
+
setKnowers(page.kind === "page" ? page.knownBy ?? [] : []);
|
|
123
|
+
setProblem(false);
|
|
124
|
+
}
|
|
125
|
+
}, () => reading === reads.current && text === undefined && setProblem(true));
|
|
126
|
+
}, [entry.name, version]);
|
|
127
|
+
useOpened(title, focus);
|
|
128
|
+
const person = entry.type === "character" || entry.type === "creature";
|
|
129
|
+
const banner = entry.picture !== undefined && !person;
|
|
130
|
+
return (_jsxs("article", { class: "browse-reader", "aria-labelledby": "reader-title", children: [banner && _jsx("img", { class: "reader-banner", src: pictureAddress(entry.picture), alt: "" }), _jsxs("header", { class: "reader-head", children: [person && _jsx(Token, { member: { name: entry.name, image: entry.picture, role: entry.companion ? "companion" : "other" }, large: true, ...(entry.companion ? { side: "ally" } : {}) }), _jsxs("div", { children: [_jsx("p", { class: "eyebrow", children: entryKind(entry) }), _jsx("h3", { id: "reader-title", tabIndex: -1, ref: title, children: entry.name }), entry.within !== undefined && (_jsxs("p", { class: "reader-where", children: [_jsx(Icon, { name: "place" }), _jsx("span", { class: "reader-path", children: entry.within.toReversed().map((place, index) => (_jsxs("span", { children: [index > 0 && _jsx("span", { class: "reader-step", "aria-hidden": "true" }), _jsx("a", { class: "md-link", href: sectionAddress("world", "lore", place), children: place })] }, place))) })] }))] })] }), (onMap !== undefined || entry.companion) && (_jsxs("p", { class: "reader-actions", children: [onMap !== undefined && (_jsxs("a", { class: "button package-button", href: onMap, children: [_jsx(Icon, { name: "world" }), t("Show on the map")] })), entry.companion && (_jsxs("a", { class: "button package-button", href: `#/party/${encodeURIComponent(entry.name)}`, children: [_jsx(Icon, { name: "party" }), t("Open the sheet")] }))] })), _jsxs("div", { class: "reader-text", children: [text === undefined && !problem && entry.summary !== "" && _jsx(Markdown, { text: entry.summary, link: link }), text !== undefined && text.trim() !== "" && _jsx(Markdown, { text: text, link: link, secretKnowers: several ? knowersOf(knowers) : undefined }), ((text !== undefined && text.trim() === "") || (text === undefined && entry.summary === "")) && !problem && (_jsx("p", { class: "browse-none", children: text === undefined ? t("Reading…") : t("Your character knows its name, and nothing more yet.") })), problem && _jsx("p", { class: "browse-none", children: t("This page could not be read now: try again in a moment.") })] })] }));
|
|
131
|
+
}
|
|
132
|
+
/** A document on its paper, as what it is: a letter, a notice, a torn page; its picture first, larger at a click, for a map above all. */
|
|
133
|
+
function DocumentReader({ document, link, focus, several }) {
|
|
134
|
+
const title = useRef(null);
|
|
135
|
+
const look = documentLook(document.document);
|
|
136
|
+
useOpened(title, focus);
|
|
137
|
+
return (_jsxs("article", { class: "browse-reader", "aria-labelledby": "reader-title", children: [_jsx("header", { class: "reader-head", children: _jsxs("div", { children: [_jsx("p", { class: "eyebrow", children: [documentLabel(document.document), carriedWords(document, several)].filter((part) => part !== undefined).join(" · ") }), _jsx("h3", { id: "reader-title", tabIndex: -1, ref: title, children: document.name })] }) }), _jsxs("div", { class: `paper look-${look}`, children: [_jsx("span", { class: "paper-mark", "aria-hidden": "true" }), document.picture !== undefined && (_jsx("a", { class: "paper-picture", href: pictureAddress(document.picture), target: "_blank", rel: "noreferrer", children: _jsx("img", { src: pictureAddress(document.picture), alt: t("{name}, as drawn", { name: document.name }) }) })), document.text.trim() !== "" && _jsx(Markdown, { text: document.text, link: link })] })] }));
|
|
138
|
+
}
|
|
139
|
+
/** A row of filter chips: All, then each option with its count; one stop of Tab, the arrows along it. */
|
|
140
|
+
function FilterChips({ label, options, chosen, all, onChoose }) {
|
|
141
|
+
const row = useRef(null);
|
|
142
|
+
const move = (event) => {
|
|
143
|
+
const buttons = [...row.current?.querySelectorAll("button") ?? []];
|
|
144
|
+
const at = buttons.indexOf(event.target);
|
|
145
|
+
const step = arrowStep(event.key, true);
|
|
146
|
+
const to = event.key === "Home" ? 0 : event.key === "End" ? buttons.length - 1 : step === 0 ? -1 : (at + step + buttons.length) % buttons.length;
|
|
147
|
+
if (to >= 0) {
|
|
148
|
+
event.preventDefault();
|
|
149
|
+
buttons[to]?.focus();
|
|
150
|
+
buttons[to]?.click();
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
const chip = (key, name, count, member) => (_jsxs("button", { type: "button", class: member === undefined ? undefined : "with-token", "aria-pressed": chosen === key, tabIndex: chosen === key ? 0 : -1, onClick: () => onChoose(key), children: [member !== undefined && _jsx(Token, { member: member }), name, _jsx("span", { class: "package-count", children: count })] }, key ?? ""));
|
|
154
|
+
return (_jsxs("div", { class: "filter-chips", role: "group", "aria-label": label, ref: row, onKeyDown: move, children: [chip(undefined, t("All"), all), options.map((option) => chip(option.key, option.name, option.count, option.member))] }));
|
|
155
|
+
}
|
|
156
|
+
/** A page's small picture in its row: a person's token, a place's picture or the mark of its kind, else the first letter of its name. */
|
|
157
|
+
function LoreThumb({ entry }) {
|
|
158
|
+
if (entry.type === "character" || entry.type === "creature") {
|
|
159
|
+
return _jsx(Token, { member: { name: entry.name, image: entry.picture, role: entry.companion ? "companion" : "other" }, ...(entry.companion ? { side: "ally" } : {}) });
|
|
160
|
+
}
|
|
161
|
+
if (entry.picture !== undefined) {
|
|
162
|
+
return (_jsx("span", { class: "browse-thumb", "aria-hidden": "true", children: _jsx("img", { src: pictureAddress(entry.picture), alt: "", loading: "lazy" }) }));
|
|
163
|
+
}
|
|
164
|
+
const kind = entry.kind === undefined ? undefined : placeKinds[entry.kind];
|
|
165
|
+
return (_jsx("span", { class: `browse-thumb mark ${loreGroupOf(entry)}`, "aria-hidden": "true", children: kind === undefined ? _jsx("span", { class: "browse-letter", children: [...entry.name][0]?.toUpperCase() }) : (_jsx("svg", { viewBox: "0 0 24 24", children: _jsx("path", { d: kind.glyph }) })) }));
|
|
166
|
+
}
|
|
167
|
+
/** A document's drawing in its row: an envelope, a nailed sheet, an open book, a map… */
|
|
168
|
+
function DocumentGlyph({ look }) {
|
|
169
|
+
const glyphs = {
|
|
170
|
+
letter: "M3.5 6.5h17v11h-17Z M3.5 6.5 12 13l8.5-6.5",
|
|
171
|
+
note: "M6 3.5h8.5L18 7v13.5H6Z M14.5 3.5V7H18 M9 11h6 M9 14.5h6 M9 18h3.5",
|
|
172
|
+
notice: "M5.5 6h13v14.5h-13Z M12 3v5 M8.5 11.5h7 M8.5 14.5h7 M8.5 17.5h4.5",
|
|
173
|
+
page: "M12 6.5C10 5 7 4.5 3.5 5v13.5C7 18 10 18.5 12 20c2-1.5 5-2 8.5-1.5V5C17 4.5 14 5 12 6.5Z M12 6.5V20",
|
|
174
|
+
diary: "M6.5 3.5h11v17h-11Z M9.5 3.5v17 M14 3.5v6l1.5-1.2 1.5 1.2v-6",
|
|
175
|
+
map: "M3.5 6.5 9 4.5l6 2 5.5-2v13l-5.5 2-6-2-5.5 2Z M9 4.5v13 M15 6.5v13",
|
|
176
|
+
scroll: "M7 4.5h10.5a2 2 0 0 1 0 4H7 M7 4.5a2 2 0 0 0 0 4v9.5a2 2 0 0 0 2 2h10 M17.5 8.5v11.5 M10 12h5 M10 15.5h5",
|
|
177
|
+
inscription: "M6 20.5V9a6 6 0 0 1 12 0v11.5Z M9 11h6 M9 14h6 M9 17h4",
|
|
178
|
+
plain: "M6 3.5h12v17H6Z M9 8h6 M9 12h6 M9 16h4",
|
|
179
|
+
};
|
|
180
|
+
return (_jsx("svg", { viewBox: "0 0 24 24", children: _jsx("path", { d: glyphs[look] ?? glyphs.plain }) }));
|
|
181
|
+
}
|
|
182
|
+
/** The opened page's title takes the focus when the player opened it, so that a screen reader reads it; on a phone the page goes back to its top. */
|
|
183
|
+
function useOpened(title, focus) {
|
|
184
|
+
useEffect(() => {
|
|
185
|
+
if (!focus) {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
title.current?.focus({ preventScroll: true });
|
|
189
|
+
if (!matchMedia(wide).matches) {
|
|
190
|
+
title.current?.closest(".browse")?.scrollIntoView({ block: "start" });
|
|
191
|
+
}
|
|
192
|
+
}, [focus]);
|
|
193
|
+
}
|
|
194
|
+
/** Where a link of a text leads: a page the character knows to its reader, a document to its paper; any other stays words. */
|
|
195
|
+
function linksOf(world) {
|
|
196
|
+
// By the name without case and accents, as a link of Obsidian finds its page.
|
|
197
|
+
const known = new Map(world.known.map((entry) => [foldedText(entry.name), entry.name]));
|
|
198
|
+
const documents = new Map(world.documents.map((document) => [foldedText(document.name), document.name]));
|
|
199
|
+
return (name) => {
|
|
200
|
+
const page = known.get(foldedText(name));
|
|
201
|
+
const document = documents.get(foldedText(name));
|
|
202
|
+
return page !== undefined ? sectionAddress("world", "lore", page) : document !== undefined ? sectionAddress("world", "documents", document) : undefined;
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
/** What a page is, in the reader's eyebrow: a companion, a person, the kind of a place, a faction… */
|
|
206
|
+
function entryKind(entry) {
|
|
207
|
+
if (entry.companion) {
|
|
208
|
+
return t("Companion");
|
|
209
|
+
}
|
|
210
|
+
const kinds = { character: t("Person"), faction: t("Faction"), creature: t("Creature"), item: t("Item"), event: t("Event"), topic: t("Topic") };
|
|
211
|
+
return entry.type === "place" ? placeKindLabel(entry.kind) ?? t("Place") : kinds[entry.type] ?? capitalized(entry.type);
|
|
212
|
+
}
|
|
213
|
+
/** A row's line under the name: what the page is, then the opening of its text, or for a place where it is. */
|
|
214
|
+
function entryMeta(entry) {
|
|
215
|
+
const opening = plainLine(entry.summary);
|
|
216
|
+
const where = entry.within?.[0];
|
|
217
|
+
return [entryKind(entry), opening ?? where].filter((part) => part !== undefined && part !== "").join(" · ");
|
|
218
|
+
}
|
|
219
|
+
/** A group of the list in the page's language. */
|
|
220
|
+
function groupLabel(group) {
|
|
221
|
+
const labels = {
|
|
222
|
+
people: t("People"),
|
|
223
|
+
places: t("Places"),
|
|
224
|
+
factions: t("Factions"),
|
|
225
|
+
creatures: t("Creatures"),
|
|
226
|
+
items: t("Items"),
|
|
227
|
+
tales: t("Tales and events"),
|
|
228
|
+
other: t("Other"),
|
|
229
|
+
};
|
|
230
|
+
return labels[group];
|
|
231
|
+
}
|