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
|
@@ -1,834 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-runtime";
|
|
2
|
-
import { useEffect, useRef, useState } from "preact/hooks";
|
|
3
|
-
import { sectionAddress } from "./address.js";
|
|
4
|
-
import { addFile, addSource, changeLibrary, changePackage, exportCampaign, readCatalog, readEngine, readLibrary, readPackages, updateEngine, } from "./api.js";
|
|
5
|
-
import { CardHead, useMedia } from "./card.js";
|
|
6
|
-
import { gameDateLabel, sinceDateLabel } from "./game-words.js";
|
|
7
|
-
import { Icon, iconPath } from "./icons.js";
|
|
8
|
-
import { phraseLabel, systemTitleLabel } from "./labels.js";
|
|
9
|
-
import { languageName } from "./languages.js";
|
|
10
|
-
import { OwnPageLinks } from "./package-page.js";
|
|
11
|
-
import { PageHead } from "./pages.js";
|
|
12
|
-
import { Confirm } from "./saves.js";
|
|
13
|
-
import { Command } from "./settings.js";
|
|
14
|
-
import { PageTabs } from "./tabs.js";
|
|
15
|
-
import { arrowStep, foldedText, isolated, pageDirection, t } from "./text.js";
|
|
16
|
-
// The engine's own name, never translated.
|
|
17
|
-
const engineName = "RPG Engine";
|
|
18
|
-
// Where the engine installed from this page is kept while the chat goes on with the one before it: in this tab, through a reload.
|
|
19
|
-
const updatedKey = "rpg-engine-updated";
|
|
20
|
-
/** The engine installed from this page in this tab, if any. */
|
|
21
|
-
function keptUpdate() {
|
|
22
|
-
try {
|
|
23
|
-
const kept = JSON.parse(sessionStorage.getItem(updatedKey) ?? "null");
|
|
24
|
-
return kept !== null && typeof kept.to === "string" && typeof kept.from === "string" ? { from: kept.from, to: kept.to, restart: kept.restart === "app" ? "app" : "chat" } : undefined;
|
|
25
|
-
}
|
|
26
|
-
catch {
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function keepUpdate(updated) {
|
|
31
|
-
try {
|
|
32
|
-
if (updated === undefined) {
|
|
33
|
-
sessionStorage.removeItem(updatedKey);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
sessionStorage.setItem(updatedKey, JSON.stringify(updated));
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
catch {
|
|
40
|
-
// A browser that keeps nothing says it until the page is drawn again.
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/** The focus to the engine's card: its Update, else its title. */
|
|
44
|
-
function focusEngine() {
|
|
45
|
-
const target = document.getElementById("engine-update") ?? document.getElementById("packages-engine");
|
|
46
|
-
target?.focus({ preventScroll: true });
|
|
47
|
-
target?.scrollIntoView({ block: "center" });
|
|
48
|
-
}
|
|
49
|
-
// The rows of the catalog shown before "Show more": fewer on a phone, where the installed come after it.
|
|
50
|
-
const shownWide = 5;
|
|
51
|
-
const shownNarrow = 3;
|
|
52
|
-
export function PackagesPage({ version, tab }) {
|
|
53
|
-
const [view, setView] = useState();
|
|
54
|
-
const [problem, setProblem] = useState();
|
|
55
|
-
const [catalog, setCatalog] = useState({ asking: true });
|
|
56
|
-
const [sending, setSending] = useState();
|
|
57
|
-
const [said, setSaid] = useState();
|
|
58
|
-
const [asking, setAsking] = useState();
|
|
59
|
-
const reads = useRef(0);
|
|
60
|
-
const catalogReads = useRef(0);
|
|
61
|
-
const before = useRef();
|
|
62
|
-
const mine = useRef(0);
|
|
63
|
-
// The rows here before the last addition: those not among them are new.
|
|
64
|
-
const known = useRef();
|
|
65
|
-
const seeing = useRef();
|
|
66
|
-
const shownTab = tab === "add" || tab === "library" ? tab : "installed";
|
|
67
|
-
const [library, setLibrary] = useState();
|
|
68
|
-
const [libraryProblem, setLibraryProblem] = useState();
|
|
69
|
-
const libraryBusy = library?.entries.some((entry) => entry.reading > 0) ?? false;
|
|
70
|
-
const [engine, setEngine] = useState({ asking: true });
|
|
71
|
-
const [updated, setUpdated] = useState(keptUpdate);
|
|
72
|
-
// Asked from a row whose package needs a newer engine: the focus goes to the engine's card once Installed shows.
|
|
73
|
-
const toEngine = useRef(false);
|
|
74
|
-
// Only the last reading counts, as after a change made here and the one the game sends.
|
|
75
|
-
const read = () => {
|
|
76
|
-
const reading = ++reads.current;
|
|
77
|
-
void readPackages().then((read) => {
|
|
78
|
-
if (reading === reads.current) {
|
|
79
|
-
setView(read);
|
|
80
|
-
setProblem(undefined);
|
|
81
|
-
}
|
|
82
|
-
}, (error) => setProblem(error instanceof Error ? error.message : String(error)));
|
|
83
|
-
};
|
|
84
|
-
// npm and GitHub, slower: what is here does not wait for them.
|
|
85
|
-
const askCatalog = (fresh) => {
|
|
86
|
-
const reading = ++catalogReads.current;
|
|
87
|
-
setCatalog((was) => ({ ...was, asking: true }));
|
|
88
|
-
void readCatalog(fresh).then((read) => reading === catalogReads.current && setCatalog({ asking: false, read }), (error) => reading === catalogReads.current && setCatalog({ asking: false, error: error instanceof Error ? error.message : String(error) }));
|
|
89
|
-
};
|
|
90
|
-
const readShelves = () => {
|
|
91
|
-
void readLibrary().then((read) => {
|
|
92
|
-
setLibrary(read);
|
|
93
|
-
setLibraryProblem(undefined);
|
|
94
|
-
}, (error) => setLibraryProblem(error instanceof Error ? error.message : String(error)));
|
|
95
|
-
};
|
|
96
|
-
// The engine and npm's latest, once: npm is asked each time. Only the game's own server has it; elsewhere its card is not shown.
|
|
97
|
-
const askEngine = () => {
|
|
98
|
-
void readEngine().then((read) => {
|
|
99
|
-
setEngine({ asking: false, ...(read === undefined ? { hidden: true } : { read }) });
|
|
100
|
-
// A new chat brought the engine installed here: the way to it is said no more.
|
|
101
|
-
if (read !== undefined && read.version === updated?.to) {
|
|
102
|
-
keepUpdate(undefined);
|
|
103
|
-
setUpdated(undefined);
|
|
104
|
-
}
|
|
105
|
-
}, () => setEngine({ asking: false, hidden: true }));
|
|
106
|
-
};
|
|
107
|
-
useEffect(read, [version]);
|
|
108
|
-
useEffect(readShelves, [version]);
|
|
109
|
-
useEffect(() => askCatalog(false), []);
|
|
110
|
-
useEffect(askEngine, []);
|
|
111
|
-
// While books are being read in their own process, their counts are read again now and then.
|
|
112
|
-
useEffect(() => {
|
|
113
|
-
if (!libraryBusy) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
const timer = window.setInterval(readShelves, libraryReading);
|
|
117
|
-
return () => window.clearInterval(timer);
|
|
118
|
-
}, [libraryBusy]);
|
|
119
|
-
// A work another page started, or this one before a reload, changes what is here: the catalog says it again once it ends.
|
|
120
|
-
useEffect(() => {
|
|
121
|
-
if (before.current !== undefined && view?.working === undefined && sending === undefined && Date.now() - mine.current > 3000) {
|
|
122
|
-
askCatalog(true);
|
|
123
|
-
}
|
|
124
|
-
before.current = view?.working;
|
|
125
|
-
}, [view?.working]);
|
|
126
|
-
const fresh = known.current === undefined || view === undefined ? [] : rowKeys(view).filter((key) => !known.current?.has(key));
|
|
127
|
-
// Seen from Add, what was added gets the focus among the installed: its new row, else its card.
|
|
128
|
-
useEffect(() => {
|
|
129
|
-
const kind = seeing.current;
|
|
130
|
-
if (shownTab === "installed" && toEngine.current) {
|
|
131
|
-
toEngine.current = false;
|
|
132
|
-
focusEngine();
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
if (shownTab !== "installed" || kind === undefined) {
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
seeing.current = undefined;
|
|
139
|
-
const row = fresh.find((key) => key.startsWith(`${kind}:`));
|
|
140
|
-
const target = (row === undefined ? null : document.querySelector(`[data-row="${CSS.escape(row)}"]`)) ?? document.getElementById(cardOf[kind]);
|
|
141
|
-
target?.focus({ preventScroll: true });
|
|
142
|
-
target?.scrollIntoView({ block: "center" });
|
|
143
|
-
}, [shownTab]);
|
|
144
|
-
const work = sending ?? (view?.working === undefined ? undefined : { ...view.working, at: workPlace(view.working, view, catalog.read) });
|
|
145
|
-
const busy = work !== undefined;
|
|
146
|
-
// The tab stays as the player chose it, the work's own included: one in the other tab is said at the top of this one.
|
|
147
|
-
const choose = (chosen) => location.replace(sectionAddress("packages", chosen === "installed" ? undefined : chosen));
|
|
148
|
-
const see = (kind) => {
|
|
149
|
-
seeing.current = kind;
|
|
150
|
-
choose("installed");
|
|
151
|
-
};
|
|
152
|
-
// From a package that needs a newer engine, to the engine's card, in Installed.
|
|
153
|
-
const goEngine = () => {
|
|
154
|
-
if (shownTab === "installed") {
|
|
155
|
-
focusEngine();
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
toEngine.current = true;
|
|
159
|
-
choose("installed");
|
|
160
|
-
};
|
|
161
|
-
const rowState = (at) => ({ ...(work?.at === at ? { work } : {}), ...(said?.at === at ? { said } : {}), busy, ...(tabOf(at) === "add" ? { onSee: see } : {}) });
|
|
162
|
-
/** One change, from where it was asked: the work shown there while it lasts, then what came of it; what is here read again, and the catalog when it changed. */
|
|
163
|
-
const run = async (at, action, name, call, done, after) => {
|
|
164
|
-
if (busy) {
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
setSaid(undefined);
|
|
168
|
-
setSending({ name, action, phase: "working", at });
|
|
169
|
-
known.current = view === undefined ? undefined : new Set(rowKeys(view));
|
|
170
|
-
const outcome = await call();
|
|
171
|
-
setSending(undefined);
|
|
172
|
-
const place = outcome.done && after !== undefined ? after : at;
|
|
173
|
-
const added = outcome.done && action === "add" && outcome.kind !== undefined ? { added: outcome.kind } : {};
|
|
174
|
-
setSaid(outcome.done ? { at: place, problem: false, text: `✓ ${done(outcome.kind)}`, ...added } : failure(at, action, name, outcome));
|
|
175
|
-
read();
|
|
176
|
-
if (outcome.done) {
|
|
177
|
-
mine.current = Date.now();
|
|
178
|
-
askCatalog(true);
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* npm's latest engine installed, as it was installed: the work said in its card while it lasts; then how a new chat, or the app opened again, takes it, kept
|
|
183
|
-
* in this tab until the engine the page is served by is that one.
|
|
184
|
-
*/
|
|
185
|
-
const updateTheEngine = async () => {
|
|
186
|
-
const from = engine.read?.version;
|
|
187
|
-
if (busy || from === undefined) {
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
setSaid(undefined);
|
|
191
|
-
setSending({ name: "rpg-engine", action: "engine", phase: "working", at: "engine" });
|
|
192
|
-
const outcome = await updateEngine();
|
|
193
|
-
setSending(undefined);
|
|
194
|
-
if (outcome.done) {
|
|
195
|
-
const done = { from, to: outcome.version, restart: outcome.restart };
|
|
196
|
-
keepUpdate(done);
|
|
197
|
-
setUpdated({ ...done, now: true });
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
setSaid({
|
|
201
|
-
at: "engine",
|
|
202
|
-
problem: true,
|
|
203
|
-
...(outcome.code === "busy"
|
|
204
|
-
? { text: t("One package at a time: wait for the one under way, then try again.") }
|
|
205
|
-
: { text: t("RPG Engine was not updated."), why: outcome.error }),
|
|
206
|
-
});
|
|
207
|
-
askEngine();
|
|
208
|
-
}
|
|
209
|
-
read();
|
|
210
|
-
};
|
|
211
|
-
const add = (at, source) => run(at, "add", source, () => addSource(source), addedText);
|
|
212
|
-
const addTheFile = (file) => run("add", "add", file.name, () => addFile(file), addedText);
|
|
213
|
-
const change = (at, action, name, label, after) => run(at, action, name, () => changePackage(action, name), () => doneText(action, label), after);
|
|
214
|
-
const addToLibrary = (path) => run("library", "library", path, () => changeLibrary("add", path), () => t("The folder is on this computer and in this campaign: its books are read now, then the master searches them."));
|
|
215
|
-
// One the computer has not leaves the list once taken out: what came of it is said under the field.
|
|
216
|
-
const useInCampaign = (path, use, away) => run(`library:${path}`, "library", path, () => changeLibrary(use ? "add" : "remove", path), () => (use ? t("In this campaign: the master searches its books.") : away ? t("{name} is out of the campaign.", { name: path }) : t("Off in this campaign: it stays on this computer.")), away && !use ? "library" : undefined);
|
|
217
|
-
const confirmed = (asked) => {
|
|
218
|
-
setAsking(undefined);
|
|
219
|
-
if (asked.kind === "adventure") {
|
|
220
|
-
void run(`adventure:${asked.title}`, "remove", asked.title, () => changePackage("remove", asked.title), () => t("{name} is out of the campaign.", { name: asked.title }), "adventures");
|
|
221
|
-
}
|
|
222
|
-
else if (asked.kind === "library") {
|
|
223
|
-
void run(`library:${asked.path}`, "library", asked.path, () => changeLibrary("forget", asked.path), () => t("Off this computer: the text RPG Engine read of its books is deleted; the books stay where they are."), "library");
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
void change(asked.at, "uninstall", asked.target, asked.name, `${asked.what}s`);
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
const systems = view?.systems ?? [];
|
|
230
|
-
const adventures = view?.adventures ?? [];
|
|
231
|
-
const languages = view?.languages ?? [];
|
|
232
|
-
// The engine npm has that this page may install: one more update on the Installed tab, and the way for a package that needs it.
|
|
233
|
-
const engineNew = engine.read?.update === true && engine.read.install === "global" && updated === undefined ? engine.read.latest : undefined;
|
|
234
|
-
const updates = (view === undefined ? 0 : updateCount(view, catalog.read)) + (engineNew === undefined ? 0 : 1);
|
|
235
|
-
const needs = (newer) => newer === undefined ? null : _jsx(NeedsEngine, { newer: newer, canUpdate: engineNew !== undefined, onGo: goEngine });
|
|
236
|
-
const missing = view?.missing.length ?? 0;
|
|
237
|
-
const away = library?.entries.filter((entry) => !entry.onComputer).length ?? 0;
|
|
238
|
-
const elsewhere = work !== undefined && tabOf(work.at) !== shownTab ? work : undefined;
|
|
239
|
-
const saidElsewhere = said !== undefined && tabOf(said.at) !== shownTab ? said : undefined;
|
|
240
|
-
return (_jsxs("section", { class: "page-stack packages", "aria-labelledby": "packages-title", children: [_jsx(PageHead, { section: "packages", id: "packages-title" }), _jsx("p", { class: "packages-lead", children: t("What is added to the game. The master hears of each change at their next move.") }), problem !== undefined && _jsx("p", { class: "saves-said problem", role: "alert", children: problem }), _jsx(PageTabs, { section: "packages", label: t("Packages"), chosen: shownTab, tabs: [
|
|
241
|
-
{ key: "installed", name: t("Installed"), label: [t("Installed"), ...marksText(updates, missing)].join(", "), marks: _jsx(TabMarks, { updates: updates, missing: missing }) },
|
|
242
|
-
{ key: "add", name: t("Add") },
|
|
243
|
-
{ key: "library", name: t("Library"), label: [t("Library"), ...marksText(0, away)].join(", "), marks: _jsx(TabMarks, { updates: 0, missing: away }) },
|
|
244
|
-
] }), view !== undefined && (_jsxs("div", { class: "package-panel", id: "packages-panel", role: "tabpanel", "aria-label": shownTab === "add" ? t("Add") : shownTab === "library" ? t("Library") : t("Installed"), children: [elsewhere !== undefined && _jsx(WorkNote, { work: elsewhere, whose: workTitle(elsewhere, catalog.read) }), saidElsewhere !== undefined && _jsx(SaidNote, { said: saidElsewhere }), shownTab === "library" && (_jsx(LibraryTab, { view: library, problem: libraryProblem, state: rowState, onAdd: (path) => void addToLibrary(path), onUse: (path, use, away) => void useInCampaign(path, use, away), onForget: (path, name) => setAsking({ kind: "library", path, name }) })), shownTab === "add" && (_jsx("section", { class: "card", "aria-label": t("Add"), children: _jsxs("div", { class: "card-body package-body", children: [_jsx(CatalogList, { catalog: catalog, view: view, state: (entry) => rowState(`catalog:${entry.source}`), needs: (entry) => needs(entry.newer), onAdd: (entry) => void add(`catalog:${entry.source}`, entry.source), onUpdate: (entry) => void change(`catalog:${entry.source}`, "update", entry.source, entryTitle(entry)), onRetry: () => askCatalog(true) }), _jsx(AddField, { state: rowState("add"), onAdd: (source) => void add("add", source), onFile: (file) => void addTheFile(file) })] }) })), shownTab === "installed" && (_jsxs(_Fragment, { children: [!engine.hidden && _jsx(EngineCard, { engine: engine.read, updated: updated, newer: engineNew, state: rowState("engine"), onUpdate: () => void updateTheEngine() }), _jsxs("section", { class: "card", "aria-labelledby": "packages-systems", children: [_jsx(CardHead, { icon: iconPath("dice"), title: _jsx("h3", { id: "packages-systems", tabIndex: -1, children: t("Game system") }) }), _jsxs("div", { class: "card-body package-body", children: [_jsx("ul", { class: "package-list", children: systems.map((system) => (_jsx(SystemRow, { system: system, newer: system.package === undefined ? undefined : newerOf(system.package, "system", catalog.read), needs: system.package === undefined ? null : needs(entryOf(system.package, "system", catalog.read)?.newer), fresh: fresh.includes(`system:${system.name}`), state: rowState(`system:${system.name}`), onUpdate: (target) => void change(`system:${system.name}`, "update", target, system.name), onUninstall: (target) => setAsking({ kind: "uninstall", what: "system", name: system.name, target, at: `system:${system.name}` }) }, system.name))) }), _jsx(CardSaid, { said: said, at: "systems" })] })] }), _jsxs("section", { class: "card", "aria-labelledby": "packages-adventures", children: [_jsx(CardHead, { icon: iconPath("world"), title: _jsx("h3", { id: "packages-adventures", tabIndex: -1, children: t("Adventures") }), ...(adventures.length === 0 ? {} : { note: String(adventures.length) }) }), _jsxs("div", { class: "card-body package-body", children: [adventures.length === 0 && _jsx("p", { class: "package-note", children: t("None yet: add one in Add, from the catalog, a .zip or a link.") }), adventures.length > 0 && (_jsx("ul", { class: "package-list", children: adventures.map((adventure) => (_jsx(AdventureRow, { adventure: adventure, fresh: fresh.includes(`adventure:${adventure.title}`), state: rowState(`adventure:${adventure.title}`), onTakeOut: () => setAsking({ kind: "adventure", title: adventure.title }) }, adventure.title))) })), _jsx(CardSaid, { said: said, at: "adventures" }), _jsx(ShareCampaign, {})] })] }), _jsxs("section", { class: "card", "aria-labelledby": "packages-extensions", children: [_jsx(CardHead, { icon: iconPath("packages"), title: _jsx("h3", { id: "packages-extensions", tabIndex: -1, children: t("Extensions") }), ...(view.installed.length + view.missing.length === 0 ? {} : { note: t("{count} in use", { count: usedCount(view) }) }) }), _jsxs("div", { class: "card-body package-body", children: [view.installed.length + view.missing.length === 0 && _jsx("p", { class: "package-note", children: t("None: an extension adds rules and tools to the game; you find them in Add, in the catalog.") }), view.installed.length + view.missing.length > 0 && (_jsxs("ul", { class: "package-list", children: [view.installed.map((extension) => (_jsx(ExtensionRow, { extension: extension, newer: newerOf(extension.package, "extension", catalog.read), needs: needs(entryOf(extension.package, "extension", catalog.read)?.newer), fresh: fresh.includes(`extension:${extension.package}`), state: rowState(`extension:${extension.package}`), onUse: (use) => void (use
|
|
245
|
-
? add(`extension:${extension.package}`, extension.package)
|
|
246
|
-
: change(`extension:${extension.package}`, "remove", extension.package, phraseLabel(extension.name))), onUpdate: () => void change(`extension:${extension.package}`, "update", extension.package, phraseLabel(extension.name)), onUninstall: () => setAsking({ kind: "uninstall", what: "extension", name: phraseLabel(extension.name), target: extension.package, at: `extension:${extension.package}` }) }, extension.package))), view.missing.map((name) => _jsx(MissingRow, { name: name, state: rowState(`extension:${name}`), onInstall: () => void add(`extension:${name}`, name) }, name))] })), _jsx(CardSaid, { said: said, at: "extensions" })] })] }), _jsxs("section", { class: "card", "aria-labelledby": "packages-languages", children: [_jsx(CardHead, { icon: iconPath("language"), title: _jsx("h3", { id: "packages-languages", tabIndex: -1, children: t("Languages") }) }), _jsxs("div", { class: "card-body package-body", children: [languages.length === 0 && _jsx("p", { class: "package-note", children: t("None. The dashboard has its own languages; a language package takes the place of one with a translation made by hand.") }), languages.length > 0 && (_jsx("ul", { class: "package-list", children: languages.map((language) => (_jsx(LanguageRow, { language: language, newer: newerOf(language.package, "language", catalog.read), needs: needs(entryOf(language.package, "language", catalog.read)?.newer), fresh: fresh.includes(`language:${language.code}`), state: rowState(`language:${language.code}`), onUpdate: () => void change(`language:${language.code}`, "update", language.package, languageTitle(language)), onUninstall: () => setAsking({ kind: "uninstall", what: "language", name: languageTitle(language), target: language.package, at: `language:${language.code}` }) }, language.package))) })), _jsx(CardSaid, { said: said, at: "languages" })] })] })] }))] })), asking?.kind === "adventure" && (_jsxs(Confirm, { title: t("Take {name} out of the campaign?", { name: asking.title }), onClose: () => setAsking(undefined), children: [_jsx("p", { children: t("Its places, people and pages leave the world. To have it again, add it once more.") }), _jsxs("div", { class: "confirm-buttons", children: [_jsx("button", { type: "button", class: "button", autoFocus: true, onClick: () => setAsking(undefined), children: t("Cancel") }), _jsx("button", { type: "button", class: "button danger final", onClick: () => confirmed(asking), children: t("Take out") })] })] })), asking?.kind === "library" && (_jsxs(Confirm, { title: t("Take {path} off this computer?", { path: asking.name }), onClose: () => setAsking(undefined), children: [_jsx("p", { children: t("No campaign searches it any more, and the text RPG Engine read of its books is deleted. The books stay where they are.") }), _jsxs("div", { class: "confirm-buttons", children: [_jsx("button", { type: "button", class: "button", autoFocus: true, onClick: () => setAsking(undefined), children: t("Cancel") }), _jsx("button", { type: "button", class: "button danger final", onClick: () => confirmed(asking), children: t("Take off") })] })] })), asking?.kind === "uninstall" && (_jsxs(Confirm, { title: t("Uninstall {name} from this computer?", { name: asking.name }), onClose: () => setAsking(undefined), children: [uninstallText(asking.what), _jsxs("div", { class: "confirm-buttons", children: [_jsx("button", { type: "button", class: "button", autoFocus: true, onClick: () => setAsking(undefined), children: t("Cancel") }), _jsx("button", { type: "button", class: "button danger final", onClick: () => confirmed(asking), children: t("Uninstall") })] })] }))] }));
|
|
247
|
-
}
|
|
248
|
-
// How often the library is read again while its books are being read, for their counts.
|
|
249
|
-
const libraryReading = 5000;
|
|
250
|
-
/**
|
|
251
|
-
* This computer's library (D-491 (13)): said first to be added once to the computer and turned on in each campaign, as packages are, with how many this one
|
|
252
|
-
* uses; its folders, each with its books read, being read and skipped, whether this campaign uses it, and the bin; then the field that adds a folder or a book.
|
|
253
|
-
*/
|
|
254
|
-
function LibraryTab({ view, problem, state, onAdd, onUse, onForget }) {
|
|
255
|
-
const entries = view?.entries ?? [];
|
|
256
|
-
const used = entries.filter((entry) => entry.used && entry.onComputer).length;
|
|
257
|
-
// A folder by its name; by its path when another has the same name.
|
|
258
|
-
const label = (entry) => (entries.filter((other) => shelfName(other.path) === shelfName(entry.path)).length > 1 ? entry.path : shelfName(entry.path));
|
|
259
|
-
return (_jsxs("section", { class: "card", "aria-labelledby": "packages-library", children: [_jsx(CardHead, { icon: iconPath("library"), title: _jsx("h3", { id: "packages-library", tabIndex: -1, children: t("Your books") }), ...(entries.length === 0 ? {} : { note: t("{count} in this campaign", { count: used }) }) }), _jsxs("div", { class: "card-body package-body", children: [_jsxs("p", { class: "library-scope", children: [_jsx(Icon, { name: "info" }), _jsxs("span", { children: [_jsx("strong", { children: t("Added once to this computer.") }), " ", t("Each campaign then turns on its own; the master searches them after the game system, citing the book and the page.")] })] }), problem !== undefined && _jsx("p", { class: "package-said problem", role: "alert", children: problem }), view !== undefined && entries.length === 0 && _jsx("p", { class: "package-note", children: t("None yet: add the folder of your manuals.") }), entries.length > 0 && (_jsx("ul", { class: "package-list", children: entries.map((entry) => (_jsx(LibraryRow, { entry: entry, label: label(entry), state: state(`library:${entry.path}`), onUse: (use) => onUse(entry.path, use, !entry.onComputer), onForget: () => onForget(entry.path, label(entry)) }, entry.path))) })), _jsx(LibraryField, { state: state("library"), onAdd: onAdd })] })] }));
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* A folder or a book of the library: its name, its path under it, what is read of it, what was skipped with the engine's words; whether this campaign uses it,
|
|
263
|
-
* as a switch, and the bin that takes it off this computer. One the campaign lists and the computer has not, in red, with Add and Take out of this campaign.
|
|
264
|
-
*/
|
|
265
|
-
function LibraryRow({ entry, label, state, onUse, onForget }) {
|
|
266
|
-
const path = (_jsx("bdi", { dir: "ltr", class: "library-path", children: breakablePath(entry.path) }));
|
|
267
|
-
const name = _jsx("bdi", { children: shelfName(entry.path) });
|
|
268
|
-
if (!entry.onComputer) {
|
|
269
|
-
return (_jsxs(PackageRow, { tile: "alert", tone: "broken", name: name, about: _jsxs(_Fragment, { children: [path, _jsx("span", { class: "package-red", children: t("Not on this computer: the master does not search it until you add it again.") })] }), row: `library:${entry.path}`, actions: _jsxs(_Fragment, { children: [_jsxs("button", { type: "button", class: "button package-button", "aria-label": t("Add {path} again", { path: label }), "aria-disabled": state.busy, onClick: () => !state.busy && onUse(true), children: [_jsx(Icon, { name: "plus" }), t("Add")] }), _jsxs("button", { type: "button", class: "button package-button", "aria-label": t("Take {name} out of this campaign", { name: label }), "aria-disabled": state.busy, onClick: () => !state.busy && onUse(false), children: [_jsx(Icon, { name: "minus" }), t("Take out of this campaign")] })] }), children: [_jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said })] }));
|
|
270
|
-
}
|
|
271
|
-
return (_jsxs(PackageRow, { tile: "folder", tone: entry.missing ? "dim" : undefined, name: name, about: path, meta: libraryMeta(entry), row: `library:${entry.path}`, actions: _jsxs(_Fragment, { children: [_jsxs("label", { class: "package-use", children: [_jsx("input", { type: "checkbox", role: "switch", checked: entry.used, "aria-label": t("{path}: in this campaign", { path: label }), "aria-disabled": state.busy, onClick: (event) => {
|
|
272
|
-
event.preventDefault();
|
|
273
|
-
if (!state.busy) {
|
|
274
|
-
onUse(!entry.used);
|
|
275
|
-
}
|
|
276
|
-
} }), t("In this campaign")] }), _jsx("button", { type: "button", class: "icon-button package-bin tip-left", "aria-label": t("Take {path} off this computer…", { path: label }), "data-tip": t("Take off this computer…"), "aria-disabled": state.busy, onClick: () => !state.busy && onForget(), children: _jsx(Icon, { name: "clear" }) })] }), children: [entry.skipped.length > 0 && (_jsx("ul", { class: "library-skipped", children: entry.skipped.map((one) => (_jsxs("li", { children: [_jsx("bdi", { children: one.name }), ": ", skippedText(one.kind)] }, one.name))) })), _jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said })] }));
|
|
277
|
-
}
|
|
278
|
-
/** Why a book was skipped, in the player's words, with what to do. */
|
|
279
|
-
function skippedText(kind) {
|
|
280
|
-
const texts = {
|
|
281
|
-
password: t("it asks for a password to open: save a copy without one."),
|
|
282
|
-
drm: t("it is locked by DRM, which RPG Engine never opens."),
|
|
283
|
-
stuck: t("it stopped the reader twice: too big or damaged, or kept busy by another program. Close that program, or save the file again."),
|
|
284
|
-
denied: t("this computer does not let it be read: check who may open it."),
|
|
285
|
-
broken: t("it does not read: the file is damaged, or is not what its name says."),
|
|
286
|
-
};
|
|
287
|
-
return texts[kind];
|
|
288
|
-
}
|
|
289
|
-
/** The name a folder or a book of the library goes by: its last part, without a book's kind; a disk's whole path. */
|
|
290
|
-
function shelfName(path) {
|
|
291
|
-
const last = path.replace(/[\\/]+$/, "").split(/[\\/]/).at(-1) ?? "";
|
|
292
|
-
return last === "" || /^[a-z]:$/i.test(last) ? path : last.replace(/\.(md|txt|pdf|docx|odt|epub|html?)$/i, "");
|
|
293
|
-
}
|
|
294
|
-
/** What is read of a folder of the library, in the page's words: its books read and being read, those skipped, or that it is not there now, or holds too many. */
|
|
295
|
-
function libraryMeta(entry) {
|
|
296
|
-
if (entry.missing) {
|
|
297
|
-
return t("Not there now, as a disk taken out: its books stay known for when it is back.");
|
|
298
|
-
}
|
|
299
|
-
return [
|
|
300
|
-
entry.books === 1 ? t("1 book read") : t("{count} books read", { count: entry.books }),
|
|
301
|
-
entry.reading === 0 ? "" : entry.reading === 1 ? t("1 being read") : t("{count} being read", { count: entry.reading }),
|
|
302
|
-
entry.skipped.length === 0 ? "" : entry.skipped.length === 1 ? t("1 skipped") : t("{count} skipped", { count: entry.skipped.length }),
|
|
303
|
-
entry.crowded ? t("more than 300 documents: only the first are read; give the folder of this game's books") : "",
|
|
304
|
-
].filter((part) => part !== "").join(" · ");
|
|
305
|
-
}
|
|
306
|
-
/** A path that goes to a new line after its separators, as words do, and is copied as it is. */
|
|
307
|
-
function breakablePath(path) {
|
|
308
|
-
return path.split(/(?<=[\\/])/).flatMap((part, index) => (index === 0 ? [part] : [_jsx("wbr", {}, index), part]));
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* The field that adds to the library: a folder or a book written by hand, as the browser gives no folder's path; what to give it, and that the computer asks the
|
|
312
|
-
* player's yes and never changes the folder. It empties once added.
|
|
313
|
-
*/
|
|
314
|
-
function LibraryField({ state, onAdd }) {
|
|
315
|
-
const [path, setPath] = useState("");
|
|
316
|
-
const [empty, setEmpty] = useState(false);
|
|
317
|
-
const sent = useRef();
|
|
318
|
-
useEffect(() => {
|
|
319
|
-
if (state.said?.problem === false && sent.current === path) {
|
|
320
|
-
setPath("");
|
|
321
|
-
}
|
|
322
|
-
}, [state.said]);
|
|
323
|
-
const submit = () => {
|
|
324
|
-
const given = path.trim().replace(/^"(.*)"$/, "$1");
|
|
325
|
-
if (state.busy) {
|
|
326
|
-
return;
|
|
327
|
-
}
|
|
328
|
-
setEmpty(given === "");
|
|
329
|
-
if (given !== "") {
|
|
330
|
-
sent.current = path;
|
|
331
|
-
onAdd(given);
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
return (_jsxs("form", { class: "package-add", noValidate: true, onSubmit: (event) => {
|
|
335
|
-
event.preventDefault();
|
|
336
|
-
submit();
|
|
337
|
-
}, children: [_jsx("label", { class: "package-label", for: "library-path", children: t("A folder or a book of this computer") }), _jsxs("div", { class: "package-add-line", children: [_jsx("input", { id: "library-path", dir: "ltr", type: "text", enterKeyHint: "go", autocomplete: "off", spellcheck: false, maxLength: 1000, value: path, readOnly: state.work !== undefined, "aria-invalid": state.said?.problem === true || empty, "aria-describedby": "library-path-about", placeholder: "D:\\Books\\RPG", onInput: (event) => setPath(event.currentTarget.value) }), _jsxs("button", { type: "submit", class: "button package-button", "aria-disabled": state.busy, children: [_jsx(Icon, { name: "plus" }), t("Add")] })] }), _jsxs("p", { class: "package-note", id: "library-path-about", children: [t("Write or paste its full path: the browser does not give a folder's. Your computer asks your yes in a window, once, and nothing in the folder is ever changed."), " ", t("Text, or PDFs whose text can be selected, read best; a scanned PDF is read from the pictures of its pages, on Windows only, in a few minutes.")] }), empty && state.work === undefined && _jsx("p", { class: "package-said problem", role: "status", children: t("Write the path of a folder or a book first.") }), _jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said })] }));
|
|
338
|
-
}
|
|
339
|
-
/** On the Installed tab, what asks for the player: the updates npm has, with their count, and a mark when the campaign lists what this computer lacks. */
|
|
340
|
-
function TabMarks({ updates, missing }) {
|
|
341
|
-
const [updatesText, missingText] = [updates > 0 ? marksText(updates, 0)[0] : "", missing > 0 ? marksText(0, missing)[0] : ""];
|
|
342
|
-
return (_jsxs(_Fragment, { children: [updates > 0 && (_jsxs("span", { class: "tab-mark", "data-tip": updatesText, "aria-hidden": "true", children: [_jsx(Icon, { name: "update" }), updates] })), missing > 0 && (_jsx("span", { class: "tab-mark missing", "data-tip": missingText, "aria-hidden": "true", children: _jsx(Icon, { name: "alert" }) }))] }));
|
|
343
|
-
}
|
|
344
|
-
/** The marks of the Installed tab in words, for its tips and its name. */
|
|
345
|
-
function marksText(updates, missing) {
|
|
346
|
-
return [
|
|
347
|
-
updates === 0 ? "" : updates === 1 ? t("1 update") : t("{count} updates", { count: updates }),
|
|
348
|
-
missing === 0 ? "" : missing === 1 ? t("1 missing on this computer") : t("{count} missing on this computer", { count: missing }),
|
|
349
|
-
].filter((one) => one !== "");
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* The one field that adds (D-485 (1)): a link, a GitHub repository's too, an npm name or a folder written by hand, as the browser gives no folder's path; or a
|
|
353
|
-
* file. The field keeps the focus and what was written while the work goes; it empties once added.
|
|
354
|
-
*/
|
|
355
|
-
function AddField({ state, onAdd, onFile }) {
|
|
356
|
-
const [source, setSource] = useState("");
|
|
357
|
-
const [empty, setEmpty] = useState(false);
|
|
358
|
-
const picker = useRef(null);
|
|
359
|
-
const sent = useRef();
|
|
360
|
-
// Added: the field is ready for the next one.
|
|
361
|
-
useEffect(() => {
|
|
362
|
-
if (state.said?.problem === false && sent.current === source) {
|
|
363
|
-
setSource("");
|
|
364
|
-
}
|
|
365
|
-
}, [state.said]);
|
|
366
|
-
const submit = () => {
|
|
367
|
-
// An address copied without its scheme, as github.com/someone/an-adventure, is taken as https.
|
|
368
|
-
const given = source.trim().replace(/^(?=[\w-]+(?:\.[\w-]+)+\/)/, "https://");
|
|
369
|
-
if (state.busy) {
|
|
370
|
-
return;
|
|
371
|
-
}
|
|
372
|
-
setEmpty(given === "");
|
|
373
|
-
if (given !== "") {
|
|
374
|
-
sent.current = source;
|
|
375
|
-
onAdd(given);
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
return (_jsxs("form", { class: "package-add", noValidate: true, onSubmit: (event) => {
|
|
379
|
-
event.preventDefault();
|
|
380
|
-
submit();
|
|
381
|
-
}, children: [_jsx("label", { class: "package-label", for: "package-source", children: t("From a link, an npm name or a folder of this computer") }), _jsxs("div", { class: "package-add-line", children: [_jsx("input", { id: "package-source", dir: "auto", type: "text", inputMode: "url", enterKeyHint: "go", autocomplete: "off", spellcheck: false, maxLength: 2000, value: source, readOnly: state.work !== undefined, "aria-invalid": state.said?.problem === true || empty, "aria-describedby": "package-source-about", placeholder: t("github.com/someone/an-adventure"), onInput: (event) => setSource(event.currentTarget.value) }), _jsxs("button", { type: "submit", class: "button package-button", "aria-disabled": state.busy, children: [_jsx(Icon, { name: "plus" }), t("Add")] }), _jsxs("button", { type: "button", class: "button package-button", "aria-disabled": state.busy, onClick: () => !state.busy && picker.current?.click(), children: [_jsx(Icon, { name: "file" }), t("From a file…")] }), _jsx("input", { ref: picker, type: "file", accept: ".zip,.tgz,.gz,application/zip,application/gzip", hidden: true, onChange: (event) => {
|
|
382
|
-
const file = event.currentTarget.files?.[0];
|
|
383
|
-
event.currentTarget.value = "";
|
|
384
|
-
if (file !== undefined) {
|
|
385
|
-
onFile(file);
|
|
386
|
-
}
|
|
387
|
-
} })] }), _jsx("p", { class: "package-note", id: "package-source-about", children: t("It tells the kind by itself: a game system, an adventure, an extension or a language. A file is a .zip or a .tgz.") }), empty && state.work === undefined && _jsx("p", { class: "package-said problem", role: "status", children: t("Write a link, an npm name or a folder first.") }), _jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said, onSee: state.onSee })] }));
|
|
388
|
-
}
|
|
389
|
-
/**
|
|
390
|
-
* The catalog (D-486), always open: a search, chips for the kinds with how many each has, wrapping on a phone; the first rows, five or three on a phone, then
|
|
391
|
-
* the others on asking. A source that does not answer is said in the page's words, with its own under them.
|
|
392
|
-
*/
|
|
393
|
-
function CatalogList({ catalog, view, state, needs, onAdd, onUpdate, onRetry }) {
|
|
394
|
-
const [kind, setKind] = useState("all");
|
|
395
|
-
const [query, setQuery] = useState("");
|
|
396
|
-
const [all, setAll] = useState(false);
|
|
397
|
-
const narrow = useMedia("(max-width: 600px)");
|
|
398
|
-
const list = useRef(null);
|
|
399
|
-
const chips = useRef(null);
|
|
400
|
-
const limit = narrow ? shownNarrow : shownWide;
|
|
401
|
-
const entries = catalog.read?.entries ?? [];
|
|
402
|
-
const found = entries.filter((entry) => matchesQuery(entry, query));
|
|
403
|
-
const kinds = kindOrder.filter((one) => entries.some((entry) => entry.kind === one));
|
|
404
|
-
const chosen = kinds.includes(kind) ? kind : "all";
|
|
405
|
-
const shown = found.filter((entry) => chosen === "all" || entry.kind === chosen);
|
|
406
|
-
// A row past the first ones stays in view while it is worked on or says what happened, as after a reload.
|
|
407
|
-
const visible = all ? shown : shown.filter((entry, index) => index < limit || state(entry).work !== undefined || state(entry).said !== undefined);
|
|
408
|
-
const failed = catalog.error === undefined ? catalog.read?.failed ?? {} : { npm: catalog.error, github: catalog.error };
|
|
409
|
-
// The rows asked for come after those shown: the focus goes to the first of them.
|
|
410
|
-
const showAll = () => {
|
|
411
|
-
setAll(true);
|
|
412
|
-
requestAnimationFrame(() => list.current?.children[limit]?.focus());
|
|
413
|
-
};
|
|
414
|
-
// The chips are one stop of Tab; the arrows go along them, as the page reads.
|
|
415
|
-
const chipKey = (event) => {
|
|
416
|
-
const buttons = [...chips.current?.querySelectorAll("button") ?? []];
|
|
417
|
-
const at = buttons.indexOf(event.target);
|
|
418
|
-
const step = arrowStep(event.key, true);
|
|
419
|
-
const to = event.key === "Home" ? 0 : event.key === "End" ? buttons.length - 1 : step === 0 ? -1 : (at + step + buttons.length) % buttons.length;
|
|
420
|
-
if (to >= 0) {
|
|
421
|
-
event.preventDefault();
|
|
422
|
-
buttons[to]?.focus();
|
|
423
|
-
buttons[to]?.click();
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
const chip = (one, count) => (_jsxs("button", { type: "button", "aria-pressed": chosen === one, tabIndex: chosen === one ? 0 : -1, onClick: () => setKind(one), children: [one === "all" ? t("All") : kindsLabel(one), _jsx("span", { class: "package-count", children: count })] }, one));
|
|
427
|
-
return (_jsxs("div", { class: "package-catalog", children: [_jsxs("div", { class: "package-catalog-head", children: [_jsx("h4", { class: "eyebrow package-sub", id: "package-catalog-title", children: t("Catalog") }), entries.length > 0 && (_jsxs("span", { class: "search", children: [_jsx(Icon, { name: "search" }), _jsx("input", { type: "search", value: query, placeholder: t("Search"), "aria-label": t("Search the catalog"), onInput: (event) => setQuery(event.currentTarget.value) })] }))] }), kinds.length > 1 && (_jsxs("div", { class: "filter-chips", role: "group", "aria-label": t("Kind"), ref: chips, onKeyDown: chipKey, children: [chip("all", found.length), kinds.map((one) => chip(one, found.filter((entry) => entry.kind === one).length))] })), (failed.npm !== undefined || failed.github !== undefined) && _jsx(CatalogAway, { failed: failed, asking: catalog.asking, onRetry: onRetry }), catalog.asking && catalog.read === undefined && catalog.error === undefined && _jsx("p", { class: "package-note", role: "status", children: t("Asking npm and GitHub…") }), !catalog.asking && entries.length === 0 && failed.npm === undefined && failed.github === undefined && _jsx("p", { class: "package-note", children: t("Nothing to add for now.") }), entries.length > 0 && shown.length === 0 && _jsx("p", { class: "package-note", children: t("Nothing matches “{query}”.", { query: query.trim() }) }), visible.length > 0 && (_jsx("ul", { class: "package-list", ref: list, "aria-labelledby": "package-catalog-title", children: visible.map((entry) => (_jsx(CatalogRow, { entry: entry, named: chosen === "all", view: view, state: state(entry), needs: needs(entry), onAdd: () => onAdd(entry), onUpdate: () => onUpdate(entry) }, `${entry.kind}:${entry.source}`))) })), shown.length > visible.length && (_jsxs("button", { type: "button", class: "package-show", onClick: showAll, children: [t("Show the other {count}", { count: shown.length - visible.length }), _jsx(Icon, { name: "more" })] }))] }));
|
|
428
|
-
}
|
|
429
|
-
/** npm or GitHub away, or both: the rest is added all the same; the engine's words under the page's, and Try again. */
|
|
430
|
-
function CatalogAway({ failed, asking, onRetry }) {
|
|
431
|
-
const both = failed.npm !== undefined && failed.github !== undefined;
|
|
432
|
-
const [headline, line] = both
|
|
433
|
-
? [t("The catalog does not answer."), t("A file, a link or a folder can be added all the same.")]
|
|
434
|
-
: failed.npm !== undefined
|
|
435
|
-
? [t("npm does not answer."), t("Game systems, extensions and languages come from npm: a file, a link or a folder can be added all the same.")]
|
|
436
|
-
: [t("GitHub does not answer."), t("The catalog's adventures come from GitHub: a .zip or a link can be added all the same.")];
|
|
437
|
-
const why = [...new Set([failed.npm, failed.github].filter((one) => one !== undefined))];
|
|
438
|
-
return (_jsxs("div", { class: "package-offline", role: "status", children: [_jsx(Icon, { name: "offline" }), _jsxs("div", { children: [_jsxs("p", { children: [_jsx("strong", { children: headline }), " ", line] }), why.map((one) => (_jsx("p", { class: "package-why", children: _jsx("bdi", { children: one }) }, one))), _jsxs("button", { type: "button", class: "button package-button", "aria-disabled": asking, onClick: () => !asking && onRetry(), children: [_jsx(Icon, { name: "update" }), t("Try again")] })] })] }));
|
|
439
|
-
}
|
|
440
|
-
/**
|
|
441
|
-
* A row of the catalog (D-486 (4)): its tile, its title with its kind in All and whose it is, a line of what it is, its facts; then what can be done: add it,
|
|
442
|
-
* with "…" when a window will ask the player's yes; update it; download a game system for a new campaign; or where it is already.
|
|
443
|
-
*/
|
|
444
|
-
function CatalogRow({ entry, named, view, state, needs, onAdd, onUpdate }) {
|
|
445
|
-
const here = hereState(entry, view);
|
|
446
|
-
const asksYes = !entry.verified && entry.code;
|
|
447
|
-
const facts = [
|
|
448
|
-
entry.author !== undefined && !entry.verified && !entry.code ? t("by {author}", { author: entry.author }) : "",
|
|
449
|
-
entry.levels === undefined ? "" : levelsText(entry.levels),
|
|
450
|
-
entry.length ?? "",
|
|
451
|
-
entry.language === undefined ? "" : languageName(entry.language, pageLanguage()) ?? entry.language,
|
|
452
|
-
entry.stars === undefined || entry.stars === 0 ? "" : `★ ${entry.stars}`,
|
|
453
|
-
asksYes ? t("has code: asks your yes") : "",
|
|
454
|
-
entry.kind === "system" && here === "none" && view.system !== null ? t("for a new campaign: this one stays in {system}", { system: view.system.name }) : "",
|
|
455
|
-
].filter((fact) => fact !== "");
|
|
456
|
-
const version = entry.update && entry.installed !== undefined && entry.version !== undefined
|
|
457
|
-
? (_jsxs("span", { class: "package-update", children: [_jsx(Icon, { name: "update" }), `${isolated(entry.installed)} ${pageDirection() === "rtl" ? "←" : "→"} ${isolated(entry.version)}`] }))
|
|
458
|
-
: entry.version;
|
|
459
|
-
const action = (word, label, icon, onClick, accent = false) => (_jsxs("button", { type: "button", class: accent ? "button package-button accent" : "button package-button", "aria-label": label, "aria-disabled": state.busy, onClick: () => !state.busy && onClick(), children: [_jsx(Icon, { name: icon }), word] }));
|
|
460
|
-
return (_jsxs(PackageRow, { tile: kindIcon[entry.kind], tone: entry.kind === "adventure" ? "cover" : undefined, name: entryTitle(entry), badges: _jsxs(_Fragment, { children: [named && _jsx("span", { class: "package-kind", children: kindLabel(entry.kind) }), _jsx(Trust, { verified: entry.verified, code: entry.code, author: entry.author })] }), about: entry.description === undefined || entry.kind === "adventure" ? entry.description : phraseLabel(entry.description), meta: (version !== undefined || facts.length > 0) && (_jsxs(_Fragment, { children: [version, version !== undefined && facts.length > 0 && " · ", facts.map(isolated).join(" · ")] })), needs: needs, focusable: true, actions: entry.update && entry.kind !== "adventure"
|
|
461
|
-
? action(t("Update"), t("Update {name} to {version}", { name: entryTitle(entry), version: entry.version ?? "" }), "update", onUpdate, true)
|
|
462
|
-
: here === "used" || (here === "here" && entry.kind !== "extension")
|
|
463
|
-
? (_jsxs("span", { class: "package-here", children: [_jsx(Icon, { name: "check" }), entry.kind === "adventure" || entry.kind === "extension" ? t("In the campaign") : t("On this computer")] }))
|
|
464
|
-
: entry.kind === "system" && here === "none"
|
|
465
|
-
? action(t("Download"), t("Download {name}", { name: entryTitle(entry) }), "download", onAdd)
|
|
466
|
-
: action(asksYes ? t("Add…") : t("Add"), t("Add {name}", { name: entryTitle(entry) }), "plus", onAdd), children: [_jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said, onSee: state.onSee })] }));
|
|
467
|
-
}
|
|
468
|
-
/**
|
|
469
|
-
* RPG Engine itself (D-515 (3)), first among the installed: its version and npm's newer one, with Update when npm installed it globally; installed another way,
|
|
470
|
-
* why the page does not update it; once updated, how a new chat, or the app opened again, brings it, as the chat and this page go on with this one.
|
|
471
|
-
*/
|
|
472
|
-
function EngineCard({ engine, updated, newer, state, onUpdate }) {
|
|
473
|
-
const folder = engine?.folder ?? "";
|
|
474
|
-
const why = engine === undefined
|
|
475
|
-
? t("Asking npm for the newest version…")
|
|
476
|
-
: engine.install === "link"
|
|
477
|
-
? t("Installed with npm link from {folder}, for its development: update it there, with git pull and npm run build.", { folder })
|
|
478
|
-
: engine.install === "other"
|
|
479
|
-
? t("Installed another way, in {folder}: update it the way you installed it.", { folder })
|
|
480
|
-
: engine.failed !== undefined
|
|
481
|
-
? t("npm does not answer: a newer version cannot be checked now.")
|
|
482
|
-
: undefined;
|
|
483
|
-
// A newer one this page does not install is still said, by its version.
|
|
484
|
-
const shownNewer = updated === undefined && engine?.update === true ? engine.latest : undefined;
|
|
485
|
-
return (_jsxs("section", { class: "card", "aria-labelledby": "packages-engine", children: [_jsx(CardHead, { icon: iconPath("engine"), title: _jsx("h3", { id: "packages-engine", tabIndex: -1, children: t("Engine") }) }), _jsx("div", { class: "card-body package-body", children: _jsx("ul", { class: "package-list", children: _jsxs(PackageRow, { tile: "engine", name: engineName, about: t("What runs the game: the master's tools and this page."), meta: engine !== undefined && _jsx(VersionMeta, { version: engine.version, newer: shownNewer }), needs: why === undefined ? undefined : _jsx("span", { class: "package-needs", children: why }), actions: newer !== undefined
|
|
486
|
-
? _jsx(UpdateButton, { id: "engine-update", name: engineName, version: newer, busy: state.busy, onClick: onUpdate })
|
|
487
|
-
: engine?.update === false && engine.install === "global" && updated === undefined && (_jsxs("span", { class: "package-here", children: [_jsx(Icon, { name: "check" }), t("Up to date")] })), children: [_jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said }), updated !== undefined && _jsx(RestartNote, { updated: updated })] }) }) })] }));
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
* The engine installed, and how the master comes to use it, in the player's words: this chat goes on with the one it started with; a new chat, or the app
|
|
491
|
-
* opened again, takes the new one, and this page is read again after it, never by itself, as the running game would serve it the new one's files.
|
|
492
|
-
*/
|
|
493
|
-
function RestartNote({ updated }) {
|
|
494
|
-
const note = useRef(null);
|
|
495
|
-
// Just updated, the focus Update had comes here; kept from before a reload, it stays where the page puts it.
|
|
496
|
-
useEffect(() => {
|
|
497
|
-
if (updated.now) {
|
|
498
|
-
note.current?.focus({ preventScroll: true });
|
|
499
|
-
note.current?.scrollIntoView({ block: "nearest" });
|
|
500
|
-
}
|
|
501
|
-
}, []);
|
|
502
|
-
const steps = updated.restart === "app"
|
|
503
|
-
? [t("Quit the app you play in completely, not just its window, then open it again."), t("Start a new chat in the campaign, as you always do."), t("Reload this page.")]
|
|
504
|
-
: [t("Close this chat."), t("Start a new chat in the campaign, as you always do."), t("Reload this page.")];
|
|
505
|
-
return (_jsxs("div", { ref: note, class: "package-said package-restart", role: "status", tabIndex: -1, children: [_jsx("p", { children: `✓ ${t("RPG Engine {version} is installed.", { version: updated.to })}` }), _jsx("p", { children: t("The master goes on with {version} in this chat. To play with {next}:", { version: updated.from, next: updated.to }) }), _jsx("ol", { children: steps.map((step) => _jsx("li", { children: step }, step)) })] }));
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
* What a package's latest needs of the engine (D-515 (2)), under its meta: which version of it, and the way to the engine's card, to update it first; the
|
|
509
|
-
* version offered meanwhile is the newest this engine reads.
|
|
510
|
-
*/
|
|
511
|
-
function NeedsEngine({ newer, canUpdate, onGo }) {
|
|
512
|
-
const { version, engine } = newer;
|
|
513
|
-
return (_jsxs("span", { class: "package-needs", children: [_jsx("span", { children: engine === undefined ? t("Version {version} needs a newer RPG Engine.", { version }) : t("Version {version} needs RPG Engine {engine}.", { version, engine }) }), _jsxs("button", { type: "button", class: "package-see", onClick: onGo, children: [canUpdate ? t("Update RPG Engine first") : t("See RPG Engine"), _jsx(Icon, { name: "fold" })] })] }));
|
|
514
|
-
}
|
|
515
|
-
/**
|
|
516
|
-
* A game system here: the campaign's, chosen in its setup and locked; another, for a new campaign, which can go off this computer when npm installed it; npm's
|
|
517
|
-
* newer version, to update it.
|
|
518
|
-
*/
|
|
519
|
-
function SystemRow({ system, newer, needs, fresh, state, onUpdate, onUninstall }) {
|
|
520
|
-
const target = system.package ?? system.name;
|
|
521
|
-
return (_jsxs(PackageRow, { tile: "dice", tone: system.used ? undefined : "dim", name: _jsx("span", { class: "system-chip", children: system.name }), badges: _jsx(Trust, { verified: system.verified, code: system.code }), about: systemTitleLabel(system.title), meta: _jsxs(_Fragment, { children: [_jsx(VersionMeta, { version: system.version, newer: newer }), _jsx(ReportLink, { issues: system.issues, name: system.name, after: system.version !== undefined || newer !== undefined }), _jsx(OwnPageLinks, { name: system.package })] }), needs: needs, row: `system:${system.name}`, fresh: fresh, actions: _jsxs(_Fragment, { children: [newer !== undefined && _jsx(UpdateButton, { name: system.name, version: newer, busy: state.busy, onClick: () => onUpdate(target) }), system.used
|
|
522
|
-
? (_jsxs("span", { class: "package-lock", children: [_jsx(Icon, { name: "lock" }), t("In use · chosen in the setup")] }))
|
|
523
|
-
: (_jsxs(_Fragment, { children: [_jsx("span", { class: "package-quiet", children: t("Not in this campaign") }), system.package !== undefined && _jsx(UninstallButton, { name: system.name, busy: state.busy, onClick: () => onUninstall(target) })] }))] }), children: [_jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said })] }));
|
|
524
|
-
}
|
|
525
|
-
/** An adventure of the campaign: the day it came in on and its version; taken out while the story has not touched it, else part of the story. */
|
|
526
|
-
function AdventureRow({ adventure, fresh, state, onTakeOut }) {
|
|
527
|
-
const since = adventure.since === undefined ? undefined : sinceDateLabel(adventure.since);
|
|
528
|
-
return (_jsxs(PackageRow, { tile: "world", tone: "cover", name: adventure.title, meta: since === undefined ? adventure.version : _jsx("span", { title: gameDateLabel(adventure.since ?? ""), children: `${since} · ${adventure.version}` }), row: `adventure:${adventure.title}`, fresh: fresh, actions: adventure.removable
|
|
529
|
-
? (_jsxs("button", { type: "button", class: "button package-button", "aria-label": t("Take {name} out of the campaign…", { name: adventure.title }), "aria-disabled": state.busy, onClick: () => !state.busy && onTakeOut(), children: [_jsx(Icon, { name: "minus" }), t("Take out…")] }))
|
|
530
|
-
: (_jsxs("span", { class: "package-lock", children: [_jsx(Icon, { name: "lock" }), t("Part of the story")] })), children: [_jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said })] }));
|
|
531
|
-
}
|
|
532
|
-
/** An extension here: whose it is, what it is, its version and npm's newer one; whether the campaign uses it, as a switch; one that does not read, in red. */
|
|
533
|
-
function ExtensionRow({ extension, newer, needs, fresh, state, onUse, onUpdate, onUninstall }) {
|
|
534
|
-
const name = phraseLabel(extension.name);
|
|
535
|
-
if ("broken" in extension) {
|
|
536
|
-
return (_jsxs(PackageRow, { tile: "alert", tone: "broken", name: name, about: _jsx("span", { class: "package-red", children: t("It does not read: install it again.") }), meta: _jsxs(_Fragment, { children: [_jsx("bdi", { class: "package-why", children: extension.broken }), _jsx(ReportLink, { issues: extension.issues, name: name, after: true })] }), actions: _jsxs(_Fragment, { children: [_jsxs("button", { type: "button", class: "button package-button", "aria-label": t("Install {name} again", { name }), "aria-disabled": state.busy, onClick: () => !state.busy && onUpdate(), children: [_jsx(Icon, { name: "update" }), t("Install it again")] }), _jsx(UninstallButton, { name: name, busy: state.busy, onClick: onUninstall })] }), children: [_jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said })] }));
|
|
537
|
-
}
|
|
538
|
-
return (_jsxs(PackageRow, { tile: "packages", name: name, badges: _jsx(Trust, { verified: extension.verified, code: false }), about: `${phraseLabel(extension.about.replace(/\.$/, ""))}.`, meta: _jsxs(_Fragment, { children: [_jsx(VersionMeta, { version: extension.version, newer: newer }), _jsx(ReportLink, { issues: extension.issues, name: name, after: true }), _jsx(OwnPageLinks, { name: extension.package })] }), needs: needs, row: `extension:${extension.package}`, fresh: fresh, actions: _jsxs(_Fragment, { children: [newer !== undefined && _jsx(UpdateButton, { name: name, version: newer, busy: state.busy, onClick: onUpdate }), _jsxs("label", { class: "package-use", children: [_jsx("input", { type: "checkbox", role: "switch", checked: extension.used, "aria-label": t("{name}: in use", { name }), "aria-disabled": state.busy, onClick: (event) => {
|
|
539
|
-
event.preventDefault();
|
|
540
|
-
if (!state.busy) {
|
|
541
|
-
onUse(!extension.used);
|
|
542
|
-
}
|
|
543
|
-
} }), t("In use")] }), _jsx(UninstallButton, { name: name, busy: state.busy, onClick: onUninstall })] }), children: [_jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said })] }));
|
|
544
|
-
}
|
|
545
|
-
/** An extension the campaign lists and this computer lacks: in red, with Install. */
|
|
546
|
-
function MissingRow({ name, state, onInstall }) {
|
|
547
|
-
const shown = phraseLabel(name.replace(/^@[^/]+\//, ""));
|
|
548
|
-
return (_jsxs(PackageRow, { tile: "alert", tone: "broken", name: shown, about: _jsx("span", { class: "package-red", children: t("Missing on this computer: the master does not use it until you install it.") }), actions: _jsxs("button", { type: "button", class: "button package-button", "aria-label": t("Install {name}", { name: shown }), "aria-disabled": state.busy, onClick: () => !state.busy && onInstall(), children: [_jsx(Icon, { name: "download" }), t("Install")] }), children: [_jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said })] }));
|
|
549
|
-
}
|
|
550
|
-
/** A language package: its name, whose it is, its version and npm's newer one, and whether this page is written in it. */
|
|
551
|
-
function LanguageRow({ language, newer, needs, fresh, state, onUpdate, onUninstall }) {
|
|
552
|
-
const page = pageLanguage().toLowerCase().split("-")[0] === language.code.toLowerCase().split("-")[0];
|
|
553
|
-
const name = languageTitle(language);
|
|
554
|
-
return (_jsxs(PackageRow, { tile: "language", name: name, badges: _jsx(Trust, { verified: language.verified, code: false }), meta: _jsxs(_Fragment, { children: [_jsx(VersionMeta, { version: language.version, newer: newer }), page && ` · ${t("the language of this page")}`, _jsx(ReportLink, { issues: language.issues, name: name, after: true })] }), needs: needs, row: `language:${language.code}`, fresh: fresh, actions: _jsxs(_Fragment, { children: [newer !== undefined && _jsx(UpdateButton, { name: name, version: newer, busy: state.busy, onClick: onUpdate }), _jsx(UninstallButton, { name: name, busy: state.busy, onClick: onUninstall })] }), children: [_jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said })] }));
|
|
555
|
-
}
|
|
556
|
-
/** A row of the page: the tile, the words, what can be done at the end; under them, the work going on and what happened. */
|
|
557
|
-
function PackageRow({ tile, tone, name, badges, about, meta, needs, actions, focusable, row, fresh, children }) {
|
|
558
|
-
return (_jsxs("li", { class: fresh ? "package-row fresh" : "package-row", ...(focusable || fresh ? { tabIndex: -1 } : {}), ...(row === undefined ? {} : { "data-row": row }), children: [_jsx("span", { class: tone === undefined ? "package-tile" : `package-tile ${tone}`, "aria-hidden": "true", children: _jsx(Icon, { name: tile }) }), _jsxs("span", { class: "package-text", children: [_jsxs("span", { class: "package-name", children: [_jsx("strong", { class: "package-title", children: name }), badges] }), about !== undefined && about !== "" && _jsx("span", { class: "package-about", children: typeof about === "string" ? _jsx("bdi", { children: about }) : about }), meta !== undefined && meta !== false && _jsx("span", { class: "package-meta", children: meta }), needs] }), actions !== undefined && _jsx("span", { class: "package-actions", children: actions }), children] }));
|
|
559
|
-
}
|
|
560
|
-
/** Whose a package is: ours, a shield with its tick; someone else's with code, in red with the shield's mark and the word, never the colour alone. */
|
|
561
|
-
function Trust({ verified, code, author }) {
|
|
562
|
-
if (verified) {
|
|
563
|
-
return (_jsxs("span", { class: "package-trust", children: [_jsx(Icon, { name: "verified" }), t("Verified")] }));
|
|
564
|
-
}
|
|
565
|
-
// Someone else's without code is only text and pictures: who wrote it is said with its facts.
|
|
566
|
-
if (!code && author !== undefined) {
|
|
567
|
-
return null;
|
|
568
|
-
}
|
|
569
|
-
return (_jsxs("span", { class: code ? "package-trust risky" : "package-trust", children: [_jsx(Icon, { name: "unverified" }), author === undefined ? t("Someone else's") : t("Someone else's · {author}", { author })] }));
|
|
570
|
-
}
|
|
571
|
-
/** A version here, and npm's newer one. */
|
|
572
|
-
function VersionMeta({ version, newer }) {
|
|
573
|
-
return (_jsxs(_Fragment, { children: [version, version !== undefined && newer !== undefined && " · ", newer !== undefined && (_jsxs("span", { class: "package-update", children: [_jsx(Icon, { name: "update" }), t("new {version}", { version: newer })] }))] }));
|
|
574
|
-
}
|
|
575
|
-
/** Where the package's problems are reported, as its package.json says: after what its meta says before it, on a line of its own on a phone; nothing when it says nowhere. */
|
|
576
|
-
export function ReportLink({ issues, name, after }) {
|
|
577
|
-
if (issues === undefined) {
|
|
578
|
-
return null;
|
|
579
|
-
}
|
|
580
|
-
return (_jsxs(_Fragment, { children: [after && _jsx("span", { class: "package-report-gap", children: " · " }), _jsx("a", { class: "package-report", href: issues, target: "_blank", rel: "noreferrer", "aria-label": t("Report a problem with {name}", { name }), children: t("Report a problem") })] }));
|
|
581
|
-
}
|
|
582
|
-
/** Update, for a row npm has a newer version of. */
|
|
583
|
-
function UpdateButton({ id, name, version, busy, onClick }) {
|
|
584
|
-
return (_jsxs("button", { type: "button", id: id, class: "button package-button accent", "aria-label": t("Update {name} to {version}", { name, version }), "aria-disabled": busy, onClick: () => !busy && onClick(), children: [_jsx(Icon, { name: "update" }), t("Update")] }));
|
|
585
|
-
}
|
|
586
|
-
/** The bin that takes a package off this computer, after asking. */
|
|
587
|
-
function UninstallButton({ name, busy, onClick }) {
|
|
588
|
-
return (_jsx("button", { type: "button", class: "icon-button package-bin tip-left", "aria-label": t("Uninstall {name} from this computer…", { name }), "data-tip": t("Uninstall from this computer…"), "aria-disabled": busy, onClick: () => !busy && onClick(), children: _jsx(Icon, { name: "clear" }) }));
|
|
589
|
-
}
|
|
590
|
-
/** The work under way here: a bar and what is done, or the window where the player's yes is asked, which may hide behind the browser (D-478). */
|
|
591
|
-
function WorkNote({ work, whose }) {
|
|
592
|
-
if (work === undefined) {
|
|
593
|
-
return null;
|
|
594
|
-
}
|
|
595
|
-
// Said in the tab other than its row's: with whose work it is.
|
|
596
|
-
const named = whose === undefined ? null : _jsx("span", { class: "package-whose", children: whose });
|
|
597
|
-
if (work.phase === "yes") {
|
|
598
|
-
return (_jsxs("div", { class: "package-window", role: "status", children: [_jsx(Icon, { name: "window" }), _jsxs("span", { children: [named, _jsx("strong", { children: t("Answer in the window of your computer.") }), " ", work.action === "library"
|
|
599
|
-
? t("It asks whether RPG Engine may read the documents of that folder. Can't see it? It is behind the browser.")
|
|
600
|
-
: t("It asks whether code that RPG Engine did not publish may run here. Can't see it? It is behind the browser.")] })] }));
|
|
601
|
-
}
|
|
602
|
-
return (_jsxs("div", { class: "package-progress", role: "status", children: [_jsx("span", { class: "package-bar", "aria-hidden": "true" }), _jsxs("span", { children: [named, _jsx("strong", { children: workingText(work.action) }), " ", t("You can go to another page: it goes on by itself.")] })] }));
|
|
603
|
-
}
|
|
604
|
-
/** What happened, where it happened: the page's words, the engine's under them, and the terminal's command when no window opens here. */
|
|
605
|
-
function SaidNote({ said, focus, onSee }) {
|
|
606
|
-
const note = useRef(null);
|
|
607
|
-
useEffect(() => {
|
|
608
|
-
if (focus && said !== undefined) {
|
|
609
|
-
note.current?.focus({ preventScroll: true });
|
|
610
|
-
note.current?.scrollIntoView({ block: "nearest" });
|
|
611
|
-
}
|
|
612
|
-
}, [said, focus]);
|
|
613
|
-
return said === undefined ? null : (_jsxs("div", { ref: note, class: said.problem ? "package-said problem" : "package-said", role: "status", ...(focus ? { tabIndex: -1 } : {}), children: [_jsx("p", { children: said.text }), said.why !== undefined && (_jsx("p", { class: "package-why", children: _jsx("bdi", { children: said.why }) })), said.command !== undefined && _jsx(Command, { text: said.command }), said.added !== undefined && onSee !== undefined && (_jsxs("button", { type: "button", class: "package-see", onClick: () => said.added !== undefined && onSee(said.added), children: [t("See it in Installed"), _jsx(Icon, { name: "fold" })] }))] }));
|
|
614
|
-
}
|
|
615
|
-
/** What happened to a row that went from its card: said at the card's foot, with the focus, which the row's button had. */
|
|
616
|
-
function CardSaid({ said, at }) {
|
|
617
|
-
return said?.at === at ? _jsx(SaidNote, { said: said, focus: true }) : null;
|
|
618
|
-
}
|
|
619
|
-
/**
|
|
620
|
-
* The campaign shared as an adventure (D-483), the last row of Adventures (D-486): Export… opens who wrote it and its licence, each optional, and whose it is
|
|
621
|
-
* to share; then the link to download it.
|
|
622
|
-
*/
|
|
623
|
-
function ShareCampaign() {
|
|
624
|
-
const [open, setOpen] = useState(false);
|
|
625
|
-
const [author, setAuthor] = useState("");
|
|
626
|
-
const [license, setLicense] = useState("");
|
|
627
|
-
const [exporting, setExporting] = useState(false);
|
|
628
|
-
const [made, setMade] = useState();
|
|
629
|
-
const ready = useRef(null);
|
|
630
|
-
const first = useRef(null);
|
|
631
|
-
useEffect(() => {
|
|
632
|
-
if (made !== undefined && "download" in made) {
|
|
633
|
-
ready.current?.focus();
|
|
634
|
-
}
|
|
635
|
-
}, [made]);
|
|
636
|
-
// The button stays where the focus is while the export goes: a second press waits for the first.
|
|
637
|
-
const share = async () => {
|
|
638
|
-
if (exporting) {
|
|
639
|
-
return;
|
|
640
|
-
}
|
|
641
|
-
setExporting(true);
|
|
642
|
-
setMade(undefined);
|
|
643
|
-
const credits = { ...(author.trim() === "" ? {} : { author: author.trim() }), ...(license.trim() === "" ? {} : { license: license.trim() }) };
|
|
644
|
-
setMade(await exportCampaign(credits));
|
|
645
|
-
setExporting(false);
|
|
646
|
-
};
|
|
647
|
-
return (_jsxs("div", { class: "package-export", children: [_jsx("span", { class: "package-tile plain", "aria-hidden": "true", children: _jsx(Icon, { name: "share" }) }), _jsxs("span", { class: "package-text", children: [_jsx("strong", { class: "package-title", id: "package-export-title", children: t("This campaign, as an adventure") }), _jsx("span", { class: "package-about", children: t("The world as it was at the start, without the player characters: a .zip to give to others.") })] }), _jsx("span", { class: "package-actions", children: _jsxs("button", { type: "button", class: "button package-button", "aria-expanded": open, "aria-controls": "package-credits", onClick: () => {
|
|
648
|
-
setOpen(!open);
|
|
649
|
-
if (!open) {
|
|
650
|
-
requestAnimationFrame(() => first.current?.focus());
|
|
651
|
-
}
|
|
652
|
-
}, children: [_jsx(Icon, { name: "share" }), t("Export…")] }) }), open && (_jsxs("form", { class: "package-credits", id: "package-credits", "aria-labelledby": "package-export-title", onSubmit: (event) => {
|
|
653
|
-
event.preventDefault();
|
|
654
|
-
void share();
|
|
655
|
-
}, children: [_jsxs("label", { children: [_jsx("span", { children: t("Author") }), _jsx("input", { ref: first, type: "text", value: author, maxLength: 200, placeholder: t("Optional"), autocomplete: "name", onInput: (event) => setAuthor(event.currentTarget.value) })] }), _jsxs("label", { children: [_jsx("span", { children: t("Licence") }), _jsx("input", { type: "text", value: license, maxLength: 200, list: "package-licences", placeholder: t("Optional"), "aria-describedby": "package-license-about", onInput: (event) => setLicense(event.currentTarget.value) })] }), _jsxs("datalist", { id: "package-licences", children: [_jsx("option", { value: "CC BY 4.0" }), _jsx("option", { value: "CC BY-SA 4.0" }), _jsx("option", { value: "CC0 1.0" })] }), _jsx("p", { class: "package-why", id: "package-license-about", children: t("Without a licence, all rights are reserved.") }), _jsxs("p", { class: "package-rights", children: [_jsx(Icon, { name: "licence" }), t("Share it only if you have the right to: a world taken from a book or from someone else's adventure is not yours to give.")] }), _jsxs("button", { type: "submit", class: "button package-button", "aria-disabled": exporting, children: [_jsx(Icon, { name: "share" }), exporting ? t("Exporting…") : t("Export")] }), made !== undefined && "download" in made && (_jsxs("p", { class: "package-said package-ready", role: "status", children: [_jsx("span", { children: `✓ ${t("{file} is ready.", { file: made.file })}` }), _jsxs("a", { ref: ready, class: "button gold package-button", href: made.download, download: made.file, children: [_jsx(Icon, { name: "download" }), t("Download")] })] })), made !== undefined && "error" in made && _jsx("p", { class: "package-said problem", role: "status", children: made.error })] }))] }));
|
|
656
|
-
}
|
|
657
|
-
// The kinds in the order of the chips, each with its tile.
|
|
658
|
-
const kindOrder = ["system", "adventure", "extension", "language"];
|
|
659
|
-
const kindIcon = { system: "dice", adventure: "world", extension: "packages", language: "language" };
|
|
660
|
-
/** A kind, for one package. */
|
|
661
|
-
function kindLabel(kind) {
|
|
662
|
-
const labels = { system: t("System"), adventure: t("Adventure"), extension: t("Extension"), language: t("Language") };
|
|
663
|
-
return labels[kind];
|
|
664
|
-
}
|
|
665
|
-
/** A kind, for its chip. */
|
|
666
|
-
function kindsLabel(kind) {
|
|
667
|
-
const labels = { system: t("Systems"), adventure: t("Adventures"), extension: t("Extensions"), language: t("Languages") };
|
|
668
|
-
return labels[kind];
|
|
669
|
-
}
|
|
670
|
-
/** Whether an entry matches what the player searched: by its title, what it is or who wrote it, case and accents aside. */
|
|
671
|
-
function matchesQuery(entry, query) {
|
|
672
|
-
const wanted = foldedText(query.trim());
|
|
673
|
-
return wanted === "" || [entry.title, entry.description ?? "", entry.author ?? ""].some((text) => foldedText(text).includes(wanted));
|
|
674
|
-
}
|
|
675
|
-
/** Where a catalog's package is here: in the campaign, only on this computer, or not here. */
|
|
676
|
-
function hereState(entry, view) {
|
|
677
|
-
if (entry.installed === undefined) {
|
|
678
|
-
return "none";
|
|
679
|
-
}
|
|
680
|
-
if (entry.kind === "adventure") {
|
|
681
|
-
return "used";
|
|
682
|
-
}
|
|
683
|
-
if (entry.kind !== "extension") {
|
|
684
|
-
return "here";
|
|
685
|
-
}
|
|
686
|
-
const extension = view.installed.find((one) => samePackage(entry, one.package));
|
|
687
|
-
return extension !== undefined && !("broken" in extension) && extension.used ? "used" : "here";
|
|
688
|
-
}
|
|
689
|
-
/** Whether a catalog's entry is this package: ours by its name alone, another's by its npm name. */
|
|
690
|
-
function samePackage(entry, name) {
|
|
691
|
-
const source = entry.source.replace(/^npm:/, "");
|
|
692
|
-
return name === source || name === `@rpgengine/${source}`;
|
|
693
|
-
}
|
|
694
|
-
/** npm's newer version of a package here, as the catalog says it. */
|
|
695
|
-
function newerOf(name, kind, catalog) {
|
|
696
|
-
const entry = entryOf(name, kind, catalog);
|
|
697
|
-
return entry?.update === true ? entry.version : undefined;
|
|
698
|
-
}
|
|
699
|
-
/** A package here as the catalog has it. */
|
|
700
|
-
function entryOf(name, kind, catalog) {
|
|
701
|
-
return catalog?.entries.find((one) => one.kind === kind && samePackage(one, name));
|
|
702
|
-
}
|
|
703
|
-
/** How many packages here npm has a newer version of: the count on the Installed tab. */
|
|
704
|
-
function updateCount(view, catalog) {
|
|
705
|
-
const systems = (view.systems ?? []).filter((one) => one.package !== undefined && newerOf(one.package, "system", catalog) !== undefined);
|
|
706
|
-
const extensions = view.installed.filter((one) => newerOf(one.package, "extension", catalog) !== undefined);
|
|
707
|
-
const languages = (view.languages ?? []).filter((one) => newerOf(one.package, "language", catalog) !== undefined);
|
|
708
|
-
return systems.length + extensions.length + languages.length;
|
|
709
|
-
}
|
|
710
|
-
/** The rows among the installed by their keys, as the page names where a change was made. */
|
|
711
|
-
function rowKeys(view) {
|
|
712
|
-
return [
|
|
713
|
-
...(view.systems ?? []).map((one) => `system:${one.name}`),
|
|
714
|
-
...(view.adventures ?? []).map((one) => `adventure:${one.title}`),
|
|
715
|
-
...view.installed.map((one) => `extension:${one.package}`),
|
|
716
|
-
...(view.languages ?? []).map((one) => `language:${one.code}`),
|
|
717
|
-
];
|
|
718
|
-
}
|
|
719
|
-
/** Whose a work is, said away from its row: a catalog's package by its title, else as it was asked. */
|
|
720
|
-
function workTitle(work, catalog) {
|
|
721
|
-
const entry = catalog?.entries.find((one) => `catalog:${one.source}` === work.at);
|
|
722
|
-
return work.action === "engine" ? engineName : entry === undefined ? work.name.replace(/^npm:/, "") : entryTitle(entry);
|
|
723
|
-
}
|
|
724
|
-
/** The tab of a place of the page: the field and the catalog are Add's, the library's field and folders the Library's, the rest Installed's. */
|
|
725
|
-
function tabOf(at) {
|
|
726
|
-
return at === "add" || at.startsWith("catalog:") ? "add" : at === "library" || at.startsWith("library:") ? "library" : "installed";
|
|
727
|
-
}
|
|
728
|
-
// The card of each kind among the installed, by its heading's id.
|
|
729
|
-
const cardOf = { system: "packages-systems", adventure: "packages-adventures", extension: "packages-extensions", language: "packages-languages" };
|
|
730
|
-
/** How many extensions the campaign uses, those this computer lacks among them. */
|
|
731
|
-
function usedCount(view) {
|
|
732
|
-
return view.installed.filter((one) => !("broken" in one) && one.used).length + view.missing.length;
|
|
733
|
-
}
|
|
734
|
-
/** Where the server's work shows when this page did not start it, as after a reload: on its row, else under the field. */
|
|
735
|
-
function workPlace(work, view, catalog) {
|
|
736
|
-
const name = work.name.toLowerCase();
|
|
737
|
-
const same = (...names) => names.some((one) => one?.toLowerCase() === name);
|
|
738
|
-
const extension = [...view.installed.map((one) => one.package), ...view.missing].find((one) => same(one, one.replace(/^@rpgengine\//, "")));
|
|
739
|
-
const adventure = view.adventures?.find((one) => same(one.title));
|
|
740
|
-
const system = view.systems?.find((one) => same(one.name, one.package));
|
|
741
|
-
const language = view.languages?.find((one) => same(one.code, one.package));
|
|
742
|
-
const entry = catalog?.entries.find((one) => same(one.source));
|
|
743
|
-
if (work.action === "library" || work.action === "engine") {
|
|
744
|
-
return work.action;
|
|
745
|
-
}
|
|
746
|
-
if (work.action === "add") {
|
|
747
|
-
return entry !== undefined ? `catalog:${entry.source}` : extension !== undefined ? `extension:${extension}` : "add";
|
|
748
|
-
}
|
|
749
|
-
return extension !== undefined
|
|
750
|
-
? `extension:${extension}`
|
|
751
|
-
: adventure !== undefined
|
|
752
|
-
? `adventure:${adventure.title}`
|
|
753
|
-
: system !== undefined
|
|
754
|
-
? `system:${system.name}`
|
|
755
|
-
: language !== undefined
|
|
756
|
-
? `language:${language.code}`
|
|
757
|
-
: entry !== undefined
|
|
758
|
-
? `catalog:${entry.source}`
|
|
759
|
-
: "add";
|
|
760
|
-
}
|
|
761
|
-
/** What went wrong, in the page's words, with the engine's under them: the no, a computer with no window for the yes, the work of another package. */
|
|
762
|
-
function failure(at, action, name, outcome) {
|
|
763
|
-
if (outcome.code === "declined") {
|
|
764
|
-
return { at, problem: true, text: t("You said no: nothing changed.") };
|
|
765
|
-
}
|
|
766
|
-
if (outcome.code === "no-window") {
|
|
767
|
-
const command = action === "library" ? `rpg config library --add "${name}"` : `rpg package install ${name}`;
|
|
768
|
-
return { at, problem: true, text: t("No window for your yes opens on this computer: add it from your terminal, in the campaign's folder."), command };
|
|
769
|
-
}
|
|
770
|
-
if (outcome.code === "busy") {
|
|
771
|
-
return { at, problem: true, text: action === "library" ? t("One change at a time: wait for the one under way, then try again.") : t("One package at a time: wait for the one under way, then try again.") };
|
|
772
|
-
}
|
|
773
|
-
return { at, problem: true, text: action === "add" ? t("Nothing was added.") : t("Nothing changed."), why: outcome.error };
|
|
774
|
-
}
|
|
775
|
-
/** What an addition did, by the kind the engine recognized. */
|
|
776
|
-
function addedText(kind) {
|
|
777
|
-
const texts = {
|
|
778
|
-
adventure: t("The adventure is in the campaign: the master brings it into the story when you want it."),
|
|
779
|
-
extension: t("The extension is in the campaign: it counts from now on."),
|
|
780
|
-
system: t("The game system is on this computer, for a new campaign."),
|
|
781
|
-
language: t("The language is on this computer, for every campaign."),
|
|
782
|
-
};
|
|
783
|
-
return kind === undefined ? t("Done.") : texts[kind];
|
|
784
|
-
}
|
|
785
|
-
/** What a change did, once done. */
|
|
786
|
-
function doneText(action, name) {
|
|
787
|
-
const texts = {
|
|
788
|
-
update: t("{name} is updated.", { name }),
|
|
789
|
-
remove: t("{name} is out of the campaign: it stays on this computer.", { name }),
|
|
790
|
-
uninstall: t("{name} is off this computer.", { name }),
|
|
791
|
-
};
|
|
792
|
-
return texts[action];
|
|
793
|
-
}
|
|
794
|
-
/** What the server is doing, in words. */
|
|
795
|
-
function workingText(action) {
|
|
796
|
-
const texts = {
|
|
797
|
-
add: t("Adding…"),
|
|
798
|
-
update: t("Updating…"),
|
|
799
|
-
remove: t("Taking it out of the campaign…"),
|
|
800
|
-
uninstall: t("Uninstalling…"),
|
|
801
|
-
library: t("Changing the library…"),
|
|
802
|
-
engine: t("Updating RPG Engine…"),
|
|
803
|
-
};
|
|
804
|
-
return texts[action];
|
|
805
|
-
}
|
|
806
|
-
/** What uninstalling does, by kind. */
|
|
807
|
-
function uninstallText(what) {
|
|
808
|
-
if (what === "system") {
|
|
809
|
-
return _jsx("p", { children: t("It goes off this computer: a new campaign can no longer choose it. This campaign does not change.") });
|
|
810
|
-
}
|
|
811
|
-
if (what === "language") {
|
|
812
|
-
return _jsx("p", { children: t("It goes off this computer: the dashboard goes back to its own words in this language.") });
|
|
813
|
-
}
|
|
814
|
-
return (_jsxs(_Fragment, { children: [_jsx("p", { children: t("It goes off this computer, and out of this campaign. Another campaign that uses it asks to install it again.") }), _jsx("p", { class: "confirm-note", children: t("What it wrote in the campaign stays, and comes back if you install it again.") })] }));
|
|
815
|
-
}
|
|
816
|
-
/** An adventure's levels: one, or from one to another. */
|
|
817
|
-
function levelsText(levels) {
|
|
818
|
-
return levels.includes("-") ? t("levels {levels}", { levels: levels.replace("-", "–") }) : t("level {level}", { level: levels });
|
|
819
|
-
}
|
|
820
|
-
/** A language package's name in the page's language, else its own. */
|
|
821
|
-
function languageTitle(language) {
|
|
822
|
-
return phraseLabel(languageName(language.code, pageLanguage()) ?? language.name);
|
|
823
|
-
}
|
|
824
|
-
/** A catalog's title: an adventure's as its author wrote it; an npm package's name with its first letter a capital, as the rows of what is here. */
|
|
825
|
-
function entryTitle(entry) {
|
|
826
|
-
// A language by its code, as lang-de: named in the page's language.
|
|
827
|
-
const code = entry.kind === "language" ? /^(?:lang-)?([a-z]{2,3}(?:-[a-z0-9]+)?)$/i.exec(entry.title)?.[1] : undefined;
|
|
828
|
-
const language = code === undefined ? undefined : languageName(code, pageLanguage());
|
|
829
|
-
return entry.kind === "adventure" ? entry.title : phraseLabel(language ?? entry.title);
|
|
830
|
-
}
|
|
831
|
-
/** The language this page is written in. */
|
|
832
|
-
function pageLanguage() {
|
|
833
|
-
return document.documentElement.lang || "en";
|
|
834
|
-
}
|