rpg-engine 0.14.1 → 0.16.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.
Files changed (493) hide show
  1. package/dist/campaign/index.d.ts +1 -1
  2. package/dist/campaign/index.js +1 -1
  3. package/dist/campaign/last-choices.js +1 -1
  4. package/dist/campaign/settings.d.ts +25 -5
  5. package/dist/campaign/settings.js +38 -9
  6. package/dist/cli/cli.js +1 -1
  7. package/dist/cli/command-line.js +1 -1
  8. package/dist/commands/advance.d.ts +1 -1
  9. package/dist/commands/advance.js +6 -6
  10. package/dist/commands/ask.js +7 -7
  11. package/dist/commands/change/amounts.d.ts +32 -0
  12. package/dist/commands/change/amounts.js +150 -0
  13. package/dist/commands/change/change.d.ts +4 -54
  14. package/dist/commands/change/change.js +19 -749
  15. package/dist/commands/change/damage.d.ts +30 -0
  16. package/dist/commands/change/damage.js +73 -2
  17. package/dist/commands/change/dice.d.ts +34 -0
  18. package/dist/commands/change/dice.js +59 -0
  19. package/dist/commands/change/fields.d.ts +37 -0
  20. package/dist/commands/change/fields.js +156 -0
  21. package/dist/commands/change/holder.d.ts +48 -0
  22. package/dist/commands/change/holder.js +162 -0
  23. package/dist/commands/change/recipe-pace.js +1 -1
  24. package/dist/commands/change/recipe.d.ts +58 -0
  25. package/dist/commands/change/recipe.js +179 -0
  26. package/dist/commands/choices.js +3 -3
  27. package/dist/commands/config/config.d.ts +15 -0
  28. package/dist/commands/config/config.js +355 -0
  29. package/dist/commands/config/custom-levels.d.ts +7 -0
  30. package/dist/commands/config/custom-levels.js +32 -0
  31. package/dist/commands/{config.d.ts → config/dashboard.d.ts} +4 -26
  32. package/dist/commands/config/dashboard.js +171 -0
  33. package/dist/commands/config/entries.d.ts +17 -0
  34. package/dist/commands/config/entries.js +76 -0
  35. package/dist/commands/config/news.d.ts +7 -0
  36. package/dist/commands/config/news.js +88 -0
  37. package/dist/commands/config/shown.d.ts +9 -0
  38. package/dist/commands/config/shown.js +80 -0
  39. package/dist/commands/config/words.d.ts +27 -0
  40. package/dist/commands/config/words.js +204 -0
  41. package/dist/commands/effect.js +9 -9
  42. package/dist/commands/find.d.ts +4 -4
  43. package/dist/commands/find.js +1 -1
  44. package/dist/commands/image.js +6 -6
  45. package/dist/commands/import/import.d.ts +0 -2
  46. package/dist/commands/import/import.js +45 -44
  47. package/dist/commands/import/run.js +1 -1
  48. package/dist/commands/index.js +3 -3
  49. package/dist/commands/init.js +2 -2
  50. package/dist/commands/install.js +1 -1
  51. package/dist/commands/instructions.js +17 -6
  52. package/dist/commands/mode.d.ts +2 -2
  53. package/dist/commands/mode.js +17 -9
  54. package/dist/commands/mood.js +4 -4
  55. package/dist/commands/move.js +10 -10
  56. package/dist/commands/package/consent.d.ts +11 -0
  57. package/dist/commands/package/consent.js +52 -0
  58. package/dist/commands/package/here.d.ts +51 -0
  59. package/dist/commands/package/here.js +128 -0
  60. package/dist/commands/package/install.d.ts +10 -0
  61. package/dist/commands/package/install.js +337 -0
  62. package/dist/commands/package/package.d.ts +18 -0
  63. package/dist/commands/package/package.js +236 -0
  64. package/dist/commands/package/result.d.ts +90 -0
  65. package/dist/commands/package/result.js +1 -0
  66. package/dist/commands/package/uninstall.d.ts +6 -0
  67. package/dist/commands/package/uninstall.js +70 -0
  68. package/dist/commands/rename.js +3 -3
  69. package/dist/commands/reveal.js +5 -5
  70. package/dist/commands/roll/roll.js +11 -9
  71. package/dist/commands/roll/tables.js +1 -1
  72. package/dist/commands/rules.d.ts +2 -2
  73. package/dist/commands/rules.js +3 -3
  74. package/dist/commands/save.d.ts +1 -1
  75. package/dist/commands/save.js +2 -2
  76. package/dist/commands/scene/close.d.ts +18 -0
  77. package/dist/commands/scene/close.js +179 -0
  78. package/dist/commands/scene/members.d.ts +14 -0
  79. package/dist/commands/scene/members.js +32 -0
  80. package/dist/commands/scene/open.d.ts +6 -0
  81. package/dist/commands/scene/open.js +298 -0
  82. package/dist/commands/scene/result.d.ts +98 -0
  83. package/dist/commands/scene/result.js +2 -0
  84. package/dist/commands/{scene.d.ts → scene/scene.d.ts} +10 -36
  85. package/dist/commands/scene/scene.js +210 -0
  86. package/dist/commands/scene/turns.d.ts +18 -0
  87. package/dist/commands/scene/turns.js +229 -0
  88. package/dist/commands/shared/{adventures.d.ts → books/adventures.d.ts} +5 -3
  89. package/dist/commands/shared/{adventures.js → books/adventures.js} +23 -19
  90. package/dist/commands/shared/{library-reader.js → books/library-reader.js} +3 -3
  91. package/dist/commands/shared/{library.d.ts → books/library.d.ts} +2 -2
  92. package/dist/commands/shared/{library.js → books/library.js} +9 -9
  93. package/dist/commands/shared/{rules.d.ts → books/rules.d.ts} +2 -2
  94. package/dist/commands/shared/{rules.js → books/rules.js} +5 -5
  95. package/dist/commands/shared/{system-texts.d.ts → books/system-texts.d.ts} +2 -2
  96. package/dist/commands/shared/{system-texts.js → books/system-texts.js} +9 -8
  97. package/dist/commands/shared/{page-words.d.ts → books/words.d.ts} +2 -2
  98. package/dist/commands/shared/{page-words.js → books/words.js} +4 -4
  99. package/dist/commands/shared/{checks.d.ts → campaign/checks.d.ts} +3 -3
  100. package/dist/commands/shared/{checks.js → campaign/checks.js} +7 -7
  101. package/dist/commands/shared/{images.d.ts → campaign/images.d.ts} +3 -3
  102. package/dist/commands/shared/{images.js → campaign/images.js} +5 -5
  103. package/dist/commands/shared/{mode.d.ts → campaign/mode.d.ts} +4 -4
  104. package/dist/commands/shared/{mode.js → campaign/mode.js} +28 -13
  105. package/dist/commands/shared/{money.d.ts → campaign/money.d.ts} +3 -3
  106. package/dist/commands/shared/{money.js → campaign/money.js} +2 -2
  107. package/dist/commands/shared/{offers.d.ts → campaign/offers.d.ts} +3 -3
  108. package/dist/commands/shared/{offers.js → campaign/offers.js} +3 -3
  109. package/dist/commands/shared/{outside.d.ts → campaign/outside.d.ts} +3 -3
  110. package/dist/commands/shared/{outside.js → campaign/outside.js} +7 -7
  111. package/dist/commands/shared/{parts.d.ts → campaign/parts.d.ts} +10 -3
  112. package/dist/commands/shared/{parts.js → campaign/parts.js} +26 -3
  113. package/dist/commands/shared/{problems.d.ts → campaign/problems.d.ts} +3 -3
  114. package/dist/commands/shared/{problems.js → campaign/problems.js} +17 -17
  115. package/dist/commands/shared/{quests.d.ts → campaign/quests.d.ts} +4 -4
  116. package/dist/commands/shared/{quests.js → campaign/quests.js} +6 -6
  117. package/dist/commands/shared/{saves.d.ts → campaign/saves.d.ts} +4 -4
  118. package/dist/commands/shared/{saves.js → campaign/saves.js} +10 -10
  119. package/dist/commands/shared/{theme.d.ts → campaign/theme.d.ts} +3 -3
  120. package/dist/commands/shared/{theme.js → campaign/theme.js} +1 -1
  121. package/dist/commands/shared/{world.d.ts → campaign/world.d.ts} +5 -5
  122. package/dist/commands/shared/{world.js → campaign/world.js} +17 -14
  123. package/dist/commands/shared/{knowledge.d.ts → characters/knowledge.d.ts} +3 -3
  124. package/dist/commands/shared/{knowledge.js → characters/knowledge.js} +4 -4
  125. package/dist/commands/shared/{moods.d.ts → characters/moods.d.ts} +3 -3
  126. package/dist/commands/shared/{moods.js → characters/moods.js} +3 -3
  127. package/dist/commands/shared/characters/orders.d.ts +4 -0
  128. package/dist/commands/shared/characters/orders.js +10 -0
  129. package/dist/commands/shared/{thoughts.d.ts → characters/thoughts.d.ts} +2 -2
  130. package/dist/commands/shared/{thoughts.js → characters/thoughts.js} +3 -3
  131. package/dist/commands/shared/{voices.d.ts → characters/voices.d.ts} +1 -1
  132. package/dist/commands/shared/{voices.js → characters/voices.js} +2 -2
  133. package/dist/commands/shared/examples.js +2 -2
  134. package/dist/commands/shared/packages/catalog.js +2 -2
  135. package/dist/commands/shared/packages/code.d.ts +1 -1
  136. package/dist/commands/shared/packages/code.js +8 -8
  137. package/dist/commands/shared/packages/extensions.d.ts +1 -1
  138. package/dist/commands/shared/packages/extensions.js +1 -1
  139. package/dist/commands/shared/packages/hooks.d.ts +1 -1
  140. package/dist/commands/shared/packages/hooks.js +1 -1
  141. package/dist/commands/shared/packages/widgets.d.ts +3 -3
  142. package/dist/commands/shared/packages/widgets.js +3 -3
  143. package/dist/commands/shared/{environment.d.ts → places/environment.d.ts} +1 -1
  144. package/dist/commands/shared/{environment.js → places/environment.js} +4 -4
  145. package/dist/commands/shared/{grid-moves.d.ts → places/grid-moves.d.ts} +4 -4
  146. package/dist/commands/shared/{grid-moves.js → places/grid-moves.js} +8 -7
  147. package/dist/commands/shared/{grids.d.ts → places/grids.d.ts} +4 -4
  148. package/dist/commands/shared/{grids.js → places/grids.js} +6 -6
  149. package/dist/commands/shared/{journey.d.ts → places/journey.d.ts} +3 -3
  150. package/dist/commands/shared/{journey.js → places/journey.js} +6 -6
  151. package/dist/commands/shared/{moves.d.ts → places/moves.d.ts} +2 -2
  152. package/dist/commands/shared/{moves.js → places/moves.js} +4 -4
  153. package/dist/commands/shared/{positions.d.ts → places/positions.d.ts} +2 -2
  154. package/dist/commands/shared/{positions.js → places/positions.js} +4 -4
  155. package/dist/commands/shared/{roads.d.ts → places/roads.d.ts} +5 -5
  156. package/dist/commands/shared/{roads.js → places/roads.js} +6 -6
  157. package/dist/commands/shared/{effects.d.ts → scene/effects.d.ts} +7 -7
  158. package/dist/commands/shared/{effects.js → scene/effects.js} +10 -10
  159. package/dist/commands/shared/{loot.d.ts → scene/loot.d.ts} +2 -2
  160. package/dist/commands/shared/{loot.js → scene/loot.js} +3 -3
  161. package/dist/commands/shared/{master-rolls.d.ts → scene/master-rolls.d.ts} +2 -2
  162. package/dist/commands/shared/{master-rolls.js → scene/master-rolls.js} +5 -5
  163. package/dist/commands/shared/{reminders.d.ts → scene/reminders.d.ts} +4 -4
  164. package/dist/commands/shared/{reminders.js → scene/reminders.js} +4 -4
  165. package/dist/commands/shared/{scene.d.ts → scene/scene.d.ts} +3 -3
  166. package/dist/commands/shared/{scene.js → scene/scene.js} +7 -7
  167. package/dist/commands/shared/{bonds.d.ts → sheet/bonds.d.ts} +3 -3
  168. package/dist/commands/shared/{bonds.js → sheet/bonds.js} +2 -2
  169. package/dist/commands/shared/{page-counters.d.ts → sheet/counters.d.ts} +3 -3
  170. package/dist/commands/shared/{page-counters.js → sheet/counters.js} +5 -5
  171. package/dist/commands/shared/{effect-layer.d.ts → sheet/effect-layer.d.ts} +2 -2
  172. package/dist/commands/shared/{effect-layer.js → sheet/effect-layer.js} +9 -6
  173. package/dist/commands/shared/sheet/effect-values.d.ts +9 -0
  174. package/dist/commands/shared/sheet/effect-values.js +69 -0
  175. package/dist/commands/shared/{experience.d.ts → sheet/experience.d.ts} +3 -3
  176. package/dist/commands/shared/{experience.js → sheet/experience.js} +5 -5
  177. package/dist/commands/shared/sheet/formula-problems.d.ts +8 -0
  178. package/dist/commands/shared/sheet/formula-problems.js +140 -0
  179. package/dist/commands/shared/sheet/formula-scope.d.ts +32 -0
  180. package/dist/commands/shared/sheet/formula-scope.js +235 -0
  181. package/dist/commands/shared/{limits.d.ts → sheet/limits.d.ts} +3 -3
  182. package/dist/commands/shared/{limits.js → sheet/limits.js} +5 -4
  183. package/dist/commands/shared/{progression.d.ts → sheet/progression.d.ts} +2 -2
  184. package/dist/commands/shared/{progression.js → sheet/progression.js} +4 -4
  185. package/dist/commands/shared/{sheet.d.ts → sheet/sheet.d.ts} +5 -5
  186. package/dist/commands/shared/{sheet.js → sheet/sheet.js} +11 -7
  187. package/dist/commands/shared/{stacks.d.ts → sheet/stacks.d.ts} +2 -2
  188. package/dist/commands/shared/{stacks.js → sheet/stacks.js} +4 -4
  189. package/dist/commands/shared/sheet/system-fields.d.ts +21 -0
  190. package/dist/commands/shared/sheet/system-fields.js +45 -0
  191. package/dist/commands/shared/{thresholds.d.ts → sheet/thresholds.d.ts} +1 -1
  192. package/dist/commands/shared/{thresholds.js → sheet/thresholds.js} +4 -4
  193. package/dist/commands/shared/{turn-uses.d.ts → sheet/turn-uses.d.ts} +3 -3
  194. package/dist/commands/shared/{turn-uses.js → sheet/turn-uses.js} +4 -3
  195. package/dist/commands/shared/{worked-out.d.ts → sheet/worked-out.d.ts} +11 -46
  196. package/dist/commands/shared/sheet/worked-out.js +291 -0
  197. package/dist/commands/shared/sheet/worked-text.d.ts +14 -0
  198. package/dist/commands/shared/sheet/worked-text.js +55 -0
  199. package/dist/commands/shared/{advance.d.ts → time/advance.d.ts} +3 -3
  200. package/dist/commands/shared/{advance.js → time/advance.js} +11 -11
  201. package/dist/commands/shared/{dice-pool.d.ts → time/dice-pool.d.ts} +3 -3
  202. package/dist/commands/shared/{dice-pool.js → time/dice-pool.js} +11 -11
  203. package/dist/commands/shared/{events.d.ts → time/events.d.ts} +5 -5
  204. package/dist/commands/shared/{events.js → time/events.js} +10 -13
  205. package/dist/commands/shared/{recipes.d.ts → time/recipes.d.ts} +3 -3
  206. package/dist/commands/shared/{recipes.js → time/recipes.js} +6 -5
  207. package/dist/commands/shared/{time.d.ts → time/time.d.ts} +4 -4
  208. package/dist/commands/shared/{time.js → time/time.js} +6 -6
  209. package/dist/commands/shared/{upkeep.d.ts → time/upkeep.d.ts} +3 -3
  210. package/dist/commands/shared/{upkeep.js → time/upkeep.js} +14 -13
  211. package/dist/commands/show.d.ts +4 -1
  212. package/dist/commands/show.js +28 -9
  213. package/dist/commands/status.d.ts +2 -1
  214. package/dist/commands/status.js +34 -23
  215. package/dist/commands/thoughts.js +3 -3
  216. package/dist/commands/trade.js +8 -8
  217. package/dist/commands/translate.d.ts +1 -1
  218. package/dist/commands/translate.js +3 -3
  219. package/dist/commands/travel/open.d.ts +1 -1
  220. package/dist/commands/travel/open.js +2 -2
  221. package/dist/commands/travel/route.js +7 -6
  222. package/dist/commands/travel/travel.d.ts +1 -1
  223. package/dist/commands/travel/travel.js +8 -8
  224. package/dist/commands/validate.js +3 -3
  225. package/dist/commands/view/journal.d.ts +2 -2
  226. package/dist/commands/view/journal.js +2 -2
  227. package/dist/commands/view/map.d.ts +1 -1
  228. package/dist/commands/view/map.js +6 -6
  229. package/dist/commands/view/memory.d.ts +16 -0
  230. package/dist/commands/view/memory.js +90 -0
  231. package/dist/commands/view/page.d.ts +32 -0
  232. package/dist/commands/view/page.js +163 -0
  233. package/dist/commands/view/place.d.ts +7 -2
  234. package/dist/commands/view/place.js +30 -12
  235. package/dist/commands/view/result.d.ts +245 -0
  236. package/dist/commands/view/result.js +1 -0
  237. package/dist/commands/view/saves.d.ts +6 -0
  238. package/dist/commands/view/saves.js +53 -0
  239. package/dist/commands/view/story.d.ts +32 -0
  240. package/dist/commands/view/story.js +227 -0
  241. package/dist/commands/view/view.d.ts +26 -292
  242. package/dist/commands/view/view.js +26 -534
  243. package/dist/commands/view/world.d.ts +1 -1
  244. package/dist/commands/view/world.js +3 -3
  245. package/dist/commands/write/checks.d.ts +42 -0
  246. package/dist/commands/write/checks.js +291 -0
  247. package/dist/commands/write/here.d.ts +1 -1
  248. package/dist/commands/write/here.js +5 -5
  249. package/dist/commands/write/inheritance.d.ts +40 -0
  250. package/dist/commands/write/inheritance.js +189 -0
  251. package/dist/commands/write/input.d.ts +29 -0
  252. package/dist/commands/write/input.js +124 -0
  253. package/dist/commands/write/layer.d.ts +36 -0
  254. package/dist/commands/write/layer.js +48 -0
  255. package/dist/commands/write/notes.d.ts +22 -0
  256. package/dist/commands/write/notes.js +76 -0
  257. package/dist/commands/write/progression.d.ts +27 -0
  258. package/dist/commands/write/progression.js +175 -0
  259. package/dist/commands/write/write.d.ts +2 -1
  260. package/dist/commands/write/write.js +33 -817
  261. package/dist/core/files.d.ts +2 -0
  262. package/dist/core/files.js +7 -0
  263. package/dist/core/{package-declarations.d.ts → packages/declarations.d.ts} +1 -1
  264. package/dist/core/{package-declarations.js → packages/declarations.js} +1 -1
  265. package/dist/core/session-store.js +3 -3
  266. package/dist/core/store.d.ts +2 -2
  267. package/dist/core/store.js +18 -4
  268. package/dist/dashboard/acts/acts.js +1 -1
  269. package/dist/dashboard/acts/sending.js +110 -0
  270. package/dist/dashboard/acts/sheet.js +2 -2
  271. package/dist/dashboard/acts/strip.js +1 -1
  272. package/dist/dashboard/address.js +6 -0
  273. package/dist/dashboard/api.js +1 -1
  274. package/dist/dashboard/app.js +47 -171
  275. package/dist/dashboard/dice/roller.js +1 -1
  276. package/dist/dashboard/dice/sets.js +2 -2
  277. package/dist/dashboard/dice/stage.js +1 -1
  278. package/dist/dashboard/dice/tray.js +6 -6
  279. package/dist/dashboard/guide/ar.md +9 -4
  280. package/dist/dashboard/guide/cs.md +10 -5
  281. package/dist/dashboard/guide/da.md +9 -4
  282. package/dist/dashboard/guide/de.md +9 -4
  283. package/dist/dashboard/guide/el.md +10 -5
  284. package/dist/dashboard/guide/en.md +7 -2
  285. package/dist/dashboard/guide/es.md +9 -4
  286. package/dist/dashboard/guide/fi.md +9 -4
  287. package/dist/dashboard/guide/fr.md +9 -4
  288. package/dist/dashboard/guide/he.md +9 -4
  289. package/dist/dashboard/guide/hi.md +10 -5
  290. package/dist/dashboard/guide/hu.md +10 -5
  291. package/dist/dashboard/guide/is.md +9 -4
  292. package/dist/dashboard/guide/it.md +9 -4
  293. package/dist/dashboard/guide/ja.md +12 -7
  294. package/dist/dashboard/guide/ko.md +11 -6
  295. package/dist/dashboard/guide/nb.md +9 -4
  296. package/dist/dashboard/guide/nl.md +10 -5
  297. package/dist/dashboard/guide/pl.md +9 -4
  298. package/dist/dashboard/guide/pt.md +9 -4
  299. package/dist/dashboard/guide/ro.md +9 -4
  300. package/dist/dashboard/guide/ru.md +9 -4
  301. package/dist/dashboard/guide/sv.md +9 -4
  302. package/dist/dashboard/guide/tr.md +11 -6
  303. package/dist/dashboard/guide/uk.md +9 -4
  304. package/dist/dashboard/guide/zh.md +9 -4
  305. package/dist/dashboard/help/help.js +3 -3
  306. package/dist/dashboard/i18n/ar.json +20 -0
  307. package/dist/dashboard/i18n/cs.json +20 -0
  308. package/dist/dashboard/i18n/da.json +20 -0
  309. package/dist/dashboard/i18n/de.json +20 -0
  310. package/dist/dashboard/i18n/el.json +20 -0
  311. package/dist/dashboard/i18n/es.json +20 -0
  312. package/dist/dashboard/i18n/fi.json +20 -0
  313. package/dist/dashboard/i18n/fr.json +20 -0
  314. package/dist/dashboard/i18n/he.json +20 -0
  315. package/dist/dashboard/i18n/hi.json +20 -0
  316. package/dist/dashboard/i18n/hu.json +20 -0
  317. package/dist/dashboard/i18n/is.json +20 -0
  318. package/dist/dashboard/i18n/it.json +20 -0
  319. package/dist/dashboard/i18n/ja.json +21 -1
  320. package/dist/dashboard/i18n/ko.json +20 -0
  321. package/dist/dashboard/i18n/nb.json +20 -0
  322. package/dist/dashboard/i18n/nl.json +20 -0
  323. package/dist/dashboard/i18n/pl.json +20 -0
  324. package/dist/dashboard/i18n/pt.json +20 -0
  325. package/dist/dashboard/i18n/ro.json +20 -0
  326. package/dist/dashboard/i18n/ru.json +20 -0
  327. package/dist/dashboard/i18n/sv.json +20 -0
  328. package/dist/dashboard/i18n/tr.json +20 -0
  329. package/dist/dashboard/i18n/uk.json +20 -0
  330. package/dist/dashboard/i18n/zh.json +20 -0
  331. package/dist/dashboard/{journal.js → journal/journal.js} +16 -16
  332. package/dist/dashboard/{notes.js → journal/notes.js} +4 -4
  333. package/dist/dashboard/kit.js +3 -3
  334. package/dist/dashboard/packages/ask-card.js +3 -3
  335. package/dist/dashboard/packages/catalog.js +196 -0
  336. package/dist/dashboard/packages/engine.js +87 -0
  337. package/dist/dashboard/packages/installed.js +53 -0
  338. package/dist/dashboard/packages/library.js +97 -0
  339. package/dist/dashboard/packages/outcomes.js +45 -0
  340. package/dist/dashboard/packages/packages.js +20 -576
  341. package/dist/dashboard/packages/page-code.js +15 -2
  342. package/dist/dashboard/packages/{package-page.js → page.js} +12 -5
  343. package/dist/dashboard/packages/rows.js +84 -0
  344. package/dist/dashboard/packages/share.js +44 -0
  345. package/dist/dashboard/packages/widgets.js +3 -3
  346. package/dist/dashboard/{card.js → parts/card.js} +1 -1
  347. package/dist/dashboard/{faces.js → parts/faces.js} +5 -5
  348. package/dist/dashboard/{game-words.js → parts/game-words.js} +1 -1
  349. package/dist/dashboard/{icons.js → parts/icons.js} +1 -1
  350. package/dist/dashboard/{labels.js → parts/labels.js} +8 -1
  351. package/dist/dashboard/{map-symbols.js → parts/map-symbols.js} +1 -1
  352. package/dist/dashboard/{markdown.js → parts/markdown.js} +2 -2
  353. package/dist/dashboard/{mood.js → parts/mood.js} +1 -1
  354. package/dist/dashboard/{refusals.js → parts/refusals.js} +1 -1
  355. package/dist/dashboard/{status.js → parts/status.js} +4 -4
  356. package/dist/dashboard/{widgets.js → parts/widgets.js} +2 -2
  357. package/dist/dashboard/place/key.js +24 -0
  358. package/dist/dashboard/place/paper.js +67 -0
  359. package/dist/dashboard/place/{map-sheet.js → sheet.js} +2 -2
  360. package/dist/dashboard/place/things.js +129 -0
  361. package/dist/dashboard/place/tokens.js +93 -0
  362. package/dist/dashboard/place/view.js +124 -0
  363. package/dist/dashboard/{asked-dice.js → play/asked-dice.js} +3 -3
  364. package/dist/dashboard/{asked.js → play/asked.js} +10 -10
  365. package/dist/dashboard/{choices.js → play/choices.js} +9 -9
  366. package/dist/dashboard/{requested.js → play/requested.js} +1 -1
  367. package/dist/dashboard/{rolls.js → play/rolls.js} +9 -9
  368. package/dist/dashboard/{scene.js → play/scene.js} +14 -14
  369. package/dist/dashboard/{turns.js → play/turns.js} +12 -12
  370. package/dist/dashboard/{language-choice.js → settings/language-choice.js} +1 -1
  371. package/dist/dashboard/{languages.js → settings/languages.js} +1 -1
  372. package/dist/dashboard/{saves.js → settings/saves.js} +8 -8
  373. package/dist/dashboard/{settings.js → settings/settings.js} +17 -15
  374. package/dist/dashboard/{setup.js → settings/setup.js} +6 -6
  375. package/dist/dashboard/{party.js → sheet/party.js} +8 -8
  376. package/dist/dashboard/{person-panel.js → sheet/person-panel.js} +4 -4
  377. package/dist/dashboard/{sheet.js → sheet/sheet.js} +17 -17
  378. package/dist/dashboard/{story.js → sheet/story.js} +3 -3
  379. package/dist/dashboard/{columns.js → shell/columns.js} +1 -1
  380. package/dist/dashboard/{footer.js → shell/footer.js} +3 -3
  381. package/dist/dashboard/{master.js → shell/master.js} +2 -2
  382. package/dist/dashboard/{notices.js → shell/notices.js} +3 -3
  383. package/dist/dashboard/{pages.js → shell/pages.js} +5 -5
  384. package/dist/dashboard/shell/shown.js +37 -0
  385. package/dist/dashboard/{table.js → shell/table.js} +2 -2
  386. package/dist/dashboard/{tabs.js → shell/tabs.js} +2 -2
  387. package/dist/dashboard/{top.js → shell/top.js} +7 -7
  388. package/dist/dashboard/style.css +90 -9
  389. package/dist/dashboard/world/calendar.js +4 -4
  390. package/dist/dashboard/world/drawing.js +92 -0
  391. package/dist/dashboard/world/key.js +21 -0
  392. package/dist/dashboard/world/lore.js +5 -5
  393. package/dist/dashboard/world/map-card.js +186 -0
  394. package/dist/dashboard/world/place-card.js +39 -0
  395. package/dist/dashboard/world/places.js +29 -0
  396. package/dist/dashboard/world/world.js +9 -341
  397. package/dist/extensions/extension.d.ts +1 -1
  398. package/dist/extensions/extension.js +1 -1
  399. package/dist/images/images.js +12 -9
  400. package/dist/index.d.ts +1 -1
  401. package/dist/languages/index.d.ts +1 -1
  402. package/dist/languages/index.js +1 -1
  403. package/dist/library/books.js +2 -0
  404. package/dist/packages/npm.js +1 -1
  405. package/dist/page.d.ts +2 -2
  406. package/dist/page.js +1 -1
  407. package/dist/pages/check.js +23 -1
  408. package/dist/pages/containers.d.ts +1 -1
  409. package/dist/pages/containers.js +1 -1
  410. package/dist/pages/index.d.ts +4 -2
  411. package/dist/pages/index.js +4 -2
  412. package/dist/pages/inheritance.d.ts +2 -2
  413. package/dist/pages/layers.d.ts +50 -0
  414. package/dist/pages/layers.js +97 -0
  415. package/dist/pages/rename-page.js +1 -1
  416. package/dist/pages/stacks/writes.js +48 -22
  417. package/dist/pages/standard-fields.d.ts +1 -1
  418. package/dist/pages/system-pages.d.ts +5 -3
  419. package/dist/pages/system-pages.js +16 -7
  420. package/dist/pages/world.d.ts +8 -1
  421. package/dist/pages/world.js +16 -4
  422. package/dist/pages/write-layer.d.ts +18 -0
  423. package/dist/pages/write-layer.js +108 -0
  424. package/dist/pages/write-page.d.ts +2 -2
  425. package/dist/pages/write-page.js +2 -2
  426. package/dist/rules/index.d.ts +1 -1
  427. package/dist/rules/index.js +1 -1
  428. package/dist/rules/search.d.ts +1 -1
  429. package/dist/rules/shown.d.ts +1 -1
  430. package/dist/server/dashboard/choices.js +3 -3
  431. package/dist/server/dashboard/files.js +5 -5
  432. package/dist/server/dashboard/index.d.ts +2 -2
  433. package/dist/server/dashboard/index.js +2 -2
  434. package/dist/server/dashboard/news.js +4 -3
  435. package/dist/server/dashboard/player.js +1 -1
  436. package/dist/server/dashboard/writes.js +10 -8
  437. package/dist/server/mcp.js +28 -13
  438. package/dist/systems/campaign-data.d.ts +15 -0
  439. package/dist/systems/campaign-data.js +85 -0
  440. package/dist/systems/{system-code.d.ts → code.d.ts} +1 -1
  441. package/dist/systems/{system-code.js → code.js} +2 -2
  442. package/dist/systems/game-system.d.ts +7 -61
  443. package/dist/systems/game-system.js +1 -984
  444. package/dist/systems/index.d.ts +6 -3
  445. package/dist/systems/index.js +6 -3
  446. package/dist/systems/installed.d.ts +31 -0
  447. package/dist/systems/installed.js +89 -0
  448. package/dist/systems/maps.d.ts +3 -0
  449. package/dist/systems/maps.js +9 -0
  450. package/dist/systems/read.d.ts +3 -0
  451. package/dist/systems/read.js +471 -0
  452. package/dist/systems/schema.d.ts +289 -0
  453. package/dist/systems/schema.js +243 -0
  454. package/dist/systems/settings.d.ts +19 -0
  455. package/dist/systems/settings.js +78 -0
  456. package/dist/systems/versions.d.ts +12 -0
  457. package/dist/systems/versions.js +52 -0
  458. package/dist/testing/index.js +1 -1
  459. package/instructions/import.md +1 -1
  460. package/instructions/length-a-few-sessions.md +1 -0
  461. package/instructions/length-one-evening.md +1 -0
  462. package/instructions/play.md +1 -1
  463. package/instructions/session-zero.md +1 -1
  464. package/instructions/setup.md +1 -1
  465. package/package.json +1 -1
  466. package/dist/commands/config.js +0 -917
  467. package/dist/commands/package.d.ts +0 -143
  468. package/dist/commands/package.js +0 -785
  469. package/dist/commands/scene.js +0 -894
  470. package/dist/commands/shared/worked-out.js +0 -805
  471. package/dist/dashboard/place/map-view.js +0 -417
  472. /package/dist/commands/shared/{library-reader.d.ts → books/library-reader.d.ts} +0 -0
  473. /package/dist/core/{package-api.d.ts → packages/api.d.ts} +0 -0
  474. /package/dist/core/{package-api.js → packages/api.js} +0 -0
  475. /package/dist/dashboard/{coins.js → parts/coins.js} +0 -0
  476. /package/dist/dashboard/{glass.js → parts/glass.js} +0 -0
  477. /package/dist/dashboard/{layout.js → parts/layout.js} +0 -0
  478. /package/dist/dashboard/{mood-faces.js → parts/mood-faces.js} +0 -0
  479. /package/dist/dashboard/{free-rolls.js → play/free-rolls.js} +0 -0
  480. /package/dist/dashboard/{reactions.js → play/reactions.js} +0 -0
  481. /package/dist/dashboard/{prefs.js → shell/prefs.js} +0 -0
  482. /package/dist/dashboard/{system-style.js → shell/system-style.js} +0 -0
  483. /package/dist/dashboard/{theme.js → shell/theme.js} +0 -0
  484. /package/dist/languages/{language-pack.d.ts → pack.d.ts} +0 -0
  485. /package/dist/languages/{language-pack.js → pack.js} +0 -0
  486. /package/dist/pages/{page-file.d.ts → file.d.ts} +0 -0
  487. /package/dist/pages/{page-file.js → file.js} +0 -0
  488. /package/dist/pages/{page-types.d.ts → types.d.ts} +0 -0
  489. /package/dist/pages/{page-types.js → types.js} +0 -0
  490. /package/dist/rules/{rule-book.d.ts → book.d.ts} +0 -0
  491. /package/dist/rules/{rule-book.js → book.js} +0 -0
  492. /package/dist/systems/{system-folders.d.ts → folders.d.ts} +0 -0
  493. /package/dist/systems/{system-folders.js → folders.js} +0 -0
@@ -9,6 +9,7 @@ export declare const show: import("../core/registry.ts").Command<z.ZodObject<{
9
9
  path?: undefined;
10
10
  system?: undefined;
11
11
  title?: undefined;
12
+ layer?: undefined;
12
13
  hides?: undefined;
13
14
  namesakes?: undefined;
14
15
  section?: undefined;
@@ -43,6 +44,7 @@ export declare const show: import("../core/registry.ts").Command<z.ZodObject<{
43
44
  path?: undefined;
44
45
  system?: undefined;
45
46
  title?: undefined;
47
+ layer?: undefined;
46
48
  hides?: undefined;
47
49
  namesakes?: undefined;
48
50
  section?: undefined;
@@ -71,10 +73,11 @@ export declare const show: import("../core/registry.ts").Command<z.ZodObject<{
71
73
  knows?: undefined;
72
74
  } | {
73
75
  page: string;
74
- type: "place" | "quest" | "creature" | "item" | "character" | "faction" | "event" | "topic" | undefined;
76
+ type: "character" | "place" | "quest" | "creature" | "item" | "faction" | "event" | "topic" | undefined;
75
77
  path: string;
76
78
  system: string | undefined;
77
79
  title: string | undefined;
80
+ layer: string | undefined;
78
81
  hides: string | undefined;
79
82
  namesakes: string[];
80
83
  section: string | undefined;
@@ -4,16 +4,17 @@ import { defineCommand } from "../core/registry.js";
4
4
  import { comparableText, sameName, valueNamed, withArticle } from "../core/text.js";
5
5
  import { backlinks, baseChain, findPage, formatFields, inheritedByBase, inheritedFields, isPartyMember, locate, namesakes, pageNamed, parsePageReference, playerCharacters, readSection, secretNames, sectionTitles, systemLabel, systemPageNamed, textParts, } from "../pages/index.js";
6
6
  import { featureParts } from "../progression/index.js";
7
- import { effectiveFields, effectsOf } from "./shared/effect-layer.js";
8
- import { surroundings, surroundingsText } from "./shared/environment.js";
9
- import { holdsItems, isFallen, lootAdvice } from "./shared/loot.js";
7
+ import { firstInChat } from "./shared/campaign/parts.js";
8
+ import { campaignSystem, campaignWorld, missingSystemHint } from "./shared/campaign/world.js";
10
9
  import { skippedPagesNote } from "./shared/notes.js";
11
- import { firstInChat } from "./shared/parts.js";
12
- import { featureSource, progressionOf } from "./shared/progression.js";
13
- import { closedScenes, copyLink, copyPage, lastClosedCopies, openSceneLog, readOpenScene, scenePlace } from "./shared/scene.js";
14
- import { sheetFieldNames, sheetGroup, sheetGroupNames, sheetLines } from "./shared/sheet.js";
15
- import { signedText, workedFields, workedLine, workedParts } from "./shared/worked-out.js";
16
- import { campaignSystem, campaignWorld, missingSystemHint } from "./shared/world.js";
10
+ import { surroundings, surroundingsText } from "./shared/places/environment.js";
11
+ import { holdsItems, isFallen, lootAdvice } from "./shared/scene/loot.js";
12
+ import { closedScenes, copyLink, copyPage, lastClosedCopies, openSceneLog, readOpenScene, scenePlace } from "./shared/scene/scene.js";
13
+ import { effectiveFields, effectsOf } from "./shared/sheet/effect-layer.js";
14
+ import { featureSource, progressionOf } from "./shared/sheet/progression.js";
15
+ import { sheetFieldNames, sheetGroup, sheetGroupNames, sheetLines } from "./shared/sheet/sheet.js";
16
+ import { workedFields } from "./shared/sheet/worked-out.js";
17
+ import { signedText, workedLine, workedParts } from "./shared/sheet/worked-text.js";
17
18
  // A list longer than this shows its first items only (D-468).
18
19
  const listedItems = 8;
19
20
  export const show = defineCommand({
@@ -78,6 +79,8 @@ export const show = defineCommand({
78
79
  path: page.path,
79
80
  system: page.system,
80
81
  title: page.title,
82
+ // What the campaign changed of a page of its system (SYS-11).
83
+ layer: page.layer === undefined ? undefined : layerLine(page),
81
84
  hides: page.system === undefined && !isCopy && systemPageNamed(world, page.name) !== undefined ? world.system?.name : undefined,
82
85
  // Acolyte (background) beside the creature Acolyte: the name alone leads here (SYS-2).
83
86
  namesakes: isCopy || reference.section !== undefined ? [] : namesakes(world, page).map((other) => `${other.name}, ${other.system === undefined ? withArticle(other.type ?? "page") : systemLabel(other)}`),
@@ -138,6 +141,7 @@ export const show = defineCommand({
138
141
  const header = [
139
142
  title,
140
143
  result.title === undefined ? "" : `Named in the campaign's language: ${result.title}.`,
144
+ result.layer ?? "",
141
145
  result.hides === undefined ? "" : `This page hides the system ${result.hides}'s ${result.page}: links to that name lead here.`,
142
146
  result.namesakes.length === 0 ? "" : `There is also ${result.namesakes.join("; ")}: show it by that name.`,
143
147
  result.alsoCopy ? `${result.page} is also a copy in the open scene: change and write refuse both until the scene closes, which removes the copy, or the page is renamed.` : "",
@@ -172,6 +176,21 @@ export const show = defineCommand({
172
176
  return [header, sheet, fields, worked, ...inheritedFields, result.text, ...inheritedText, links, skippedPagesNote(result.problems), notes].filter((block) => block !== "").join("\n\n");
173
177
  },
174
178
  });
179
+ /** "The campaign changes it with its layer layers/5e/…: hp; the section Bite.": what a layer changed on a page of the game system (SYS-11). */
180
+ function layerLine(page) {
181
+ const layer = page.layer;
182
+ if (layer === undefined) {
183
+ return "";
184
+ }
185
+ const changed = [
186
+ layer.fields.join(", "),
187
+ layer.introduction ? "the introduction" : "",
188
+ layer.sections.length === 0 ? "" : `${layer.sections.length === 1 ? "the section" : "the sections"} ${layer.sections.join(", ")}`,
189
+ ].filter((part) => part !== "");
190
+ const ignored = layer.ignored.length === 0 ? "" : ` It also writes ${layer.ignored.join(", ")}, which a layer cannot change: validate says why.`;
191
+ const what = changed.length === 0 ? "nothing yet" : changed.join("; ");
192
+ return `The campaign changes it with its layer ${layer.path}: ${what}. write ${page.name} with layer and unset, or with empty text, gives back the system's.${ignored}`;
193
+ }
175
194
  /** What show says once in a chat, as play's rule on what the character knows left the instructions for it (D-530). */
176
195
  const knowsNote = "When the player asks what their character knows, remembers or has seen, answer from view, never from show, which holds what they have not found out.";
177
196
  /**
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { type SheetSummary } from "./shared/sheet.ts";
2
+ import { type SheetSummary } from "./shared/sheet/sheet.ts";
3
3
  /** A member of the player's party as the status shows them. */
4
4
  interface Member {
5
5
  name: string;
@@ -28,6 +28,7 @@ export declare const status: import("../core/registry.ts").Command<z.ZodObject<{
28
28
  houseRules: string[];
29
29
  players: Member[];
30
30
  companions: Member[];
31
+ orders: string[];
31
32
  dashboard: string | undefined;
32
33
  offerDashboard: boolean;
33
34
  pictures: string | undefined;
@@ -8,31 +8,32 @@ import { sceneTypes } from "../scene/index.js";
8
8
  import { rulesetSetting } from "../systems/index.js";
9
9
  import { choicesNotes } from "./choices.js";
10
10
  import { importLine } from "./import/import.js";
11
- import { allStateChecks, markStateChecksTold } from "./shared/checks.js";
12
- import { effectiveFields, effectsOf } from "./shared/effect-layer.js";
13
- import { effectShown, keptEffects } from "./shared/effects.js";
14
- import { surroundings, surroundingsText } from "./shared/environment.js";
15
- import { clocksToMove, dueAdvice, dueText, isDated, isDue, plannedEvents, plannedText, worldFacts } from "./shared/events.js";
16
- import { experienceOf, levelDueNote, levelWay } from "./shared/experience.js";
17
- import { picturesNote } from "./shared/images.js";
18
- import { journeyText, readJourney } from "./shared/journey.js";
19
- import { campaignMode, campaignNote } from "./shared/mode.js";
20
- import { campaignCoins } from "./shared/money.js";
21
- import { livingMood, masterMood } from "./shared/moods.js";
22
- import { heldSystemSettings, isFixedSetting, playedEngineSetting, playedRigor } from "./shared/offers.js";
11
+ import { allStateChecks, markStateChecksTold } from "./shared/campaign/checks.js";
12
+ import { picturesNote } from "./shared/campaign/images.js";
13
+ import { campaignMode, campaignNote } from "./shared/campaign/mode.js";
14
+ import { campaignCoins } from "./shared/campaign/money.js";
15
+ import { heldSystemSettings, isFixedSetting, playedEngineSetting, playedRigor } from "./shared/campaign/offers.js";
16
+ import { adventurePart, firstInChat, situationPart } from "./shared/campaign/parts.js";
17
+ import { campaignProblems } from "./shared/campaign/problems.js";
18
+ import { adventureUnderWay, isTickedOpenQuest, openQuestText } from "./shared/campaign/quests.js";
19
+ import { interruptedLoad } from "./shared/campaign/saves.js";
20
+ import { campaignSystem, campaignWorld, countedByGame, playedSettingValue, systemInStatus } from "./shared/campaign/world.js";
21
+ import { livingMood, masterMood } from "./shared/characters/moods.js";
22
+ import { quotedOrders } from "./shared/characters/orders.js";
23
23
  import { installableSystems } from "./shared/packages/catalog.js";
24
24
  import { packageCodeProblems } from "./shared/packages/code.js";
25
25
  import { extensionsLine } from "./shared/packages/extensions.js";
26
- import { countersText, pageCounters, partyCounters } from "./shared/page-counters.js";
27
- import { adventurePart, firstInChat, situationPart } from "./shared/parts.js";
28
- import { campaignProblems } from "./shared/problems.js";
29
- import { adventureUnderWay, isTickedOpenQuest, openQuestText } from "./shared/quests.js";
30
- import { measuresOf, roadsOf } from "./shared/roads.js";
31
- import { interruptedLoad } from "./shared/saves.js";
32
- import { closedScenes, copyCounters, copyPage, partyAwayText, readOpenScene } from "./shared/scene.js";
33
- import { missingSheetFields, overLoad, sheetSummary } from "./shared/sheet.js";
34
- import { datedText, problemText, readPresent, timeBetweenSessions } from "./shared/time.js";
35
- import { campaignSystem, campaignWorld, countedByGame, playedSettingValue, systemInStatus } from "./shared/world.js";
26
+ import { surroundings, surroundingsText } from "./shared/places/environment.js";
27
+ import { journeyText, readJourney } from "./shared/places/journey.js";
28
+ import { measuresOf, roadsOf } from "./shared/places/roads.js";
29
+ import { effectShown, keptEffects } from "./shared/scene/effects.js";
30
+ import { closedScenes, copyCounters, copyPage, partyAwayText, readOpenScene } from "./shared/scene/scene.js";
31
+ import { countersText, pageCounters, partyCounters } from "./shared/sheet/counters.js";
32
+ import { effectiveFields, effectsOf } from "./shared/sheet/effect-layer.js";
33
+ import { experienceOf, levelDueNote, levelWay } from "./shared/sheet/experience.js";
34
+ import { missingSheetFields, overLoad, sheetSummary } from "./shared/sheet/sheet.js";
35
+ import { clocksToMove, dueAdvice, dueText, isDated, isDue, plannedEvents, plannedText, worldFacts } from "./shared/time/events.js";
36
+ import { datedText, problemText, readPresent, timeBetweenSessions } from "./shared/time/time.js";
36
37
  import { translationOffer } from "./translate.js";
37
38
  // Lists in the status show this many names, then say how many more there are and how to find them.
38
39
  const shownNames = 3;
@@ -135,7 +136,7 @@ export const status = defineCommand({
135
136
  ? undefined
136
137
  : `Game systems to install, if the player wants one: ${installable.map((one) => `${one.name} (${one.title}${one.verified ? "" : ", not verified"})`).join(", ")}. `
137
138
  + "Install the one chosen with package install and its name, then set it with config system: the campaign keeps it once it has a player character.",
138
- premise: settings.premise === undefined ? undefined : `${settings.premise}${settings.preparation === undefined ? "" : ` (preparation ${settings.preparation})`}`,
139
+ premise: settings.premise === undefined ? undefined : `${settings.premise}${premiseWays(settings.preparation, settings.length)}`,
139
140
  // How the master writes, as the player chose it, under the eyes at every start (D-395).
140
141
  writing: [
141
142
  named("prose", settings.author === undefined ? settings.prose : undefined),
@@ -152,6 +153,8 @@ export const status = defineCommand({
152
153
  houseRules: bookTitles(readRuleBook(join(root, houseRulesFolderName), "house rules")),
153
154
  players: players.map(member),
154
155
  companions: characters.filter((page) => page.fields.role === "companion").map(member),
156
+ // The player's standing orders to the companions, in play, for those who come later too (D-563).
157
+ orders: mode === "play" ? settings.orders ?? [] : [],
155
158
  dashboard: context.dashboard,
156
159
  // The chat's first status opens with the dashboard, for the master to offer it in their first answer (D-353).
157
160
  offerDashboard: offerDashboard(context),
@@ -220,6 +223,9 @@ export const status = defineCommand({
220
223
  ...(result.players.length === 0 ? [`No player character yet.${sheetNote(result.sheet)}`] : result.players.map((member) => `PC: ${member.name}${whereabouts(member)}${memberCounters(member)}`)),
221
224
  ...result.around.map((one) => `Around ${one.who.join(" and ")}: ${one.text}`),
222
225
  namesLine("Companions", result.companions.map(companion), "find text companion, type character", "; "),
226
+ result.orders.length === 0
227
+ ? ""
228
+ : `Standing orders, the player's to the companions (they follow them as their pages allow, and break one only in the open): ${quotedOrders(result.orders)}.`,
223
229
  result.dashboard === undefined || result.offerDashboard ? "" : `Dashboard: ${result.dashboard}.`,
224
230
  result.pictures ?? "",
225
231
  result.importing,
@@ -262,6 +268,11 @@ function sessionParts(context, system, world, preparation) {
262
268
  : undefined;
263
269
  return [situationPart("session", context, system), lead === undefined ? "" : adventurePart(lead, context, system)].filter((part) => part !== "");
264
270
  }
271
+ /** How a premise's world is made and how long it plays, as " (preparation on the fly, length one evening)"; nothing when neither is chosen. */
272
+ function premiseWays(preparation, length) {
273
+ const ways = [named("preparation", preparation), named("length", length)].filter((way) => way !== undefined);
274
+ return ways.length === 0 ? "" : ` (${ways.join(", ")})`;
275
+ }
265
276
  /** The lines of the contradictions, marked told in the chat. */
266
277
  function toldContradictions(context, found) {
267
278
  markStateChecksTold(context, found);
@@ -3,9 +3,9 @@ import { requireCampaign } from "../campaign/index.js";
3
3
  import { appendLogEntry } from "../core/log.js";
4
4
  import { defineCommand } from "../core/registry.js";
5
5
  import { isInParty, pageNamed } from "../pages/index.js";
6
- import { thoughtsLength, thoughtsType } from "./shared/thoughts.js";
7
- import { newDatedLogEntry } from "./shared/time.js";
8
- import { campaignWorld } from "./shared/world.js";
6
+ import { campaignWorld } from "./shared/campaign/world.js";
7
+ import { thoughtsLength, thoughtsType } from "./shared/characters/thoughts.js";
8
+ import { newDatedLogEntry } from "./shared/time/time.js";
9
9
  export const thoughts = defineCommand({
10
10
  name: "thoughts",
11
11
  description: "Write a few lines in a companion's diary, when an output says it is due or after a moment that changed them, in their voice: "
@@ -5,15 +5,15 @@ import { defineCommand } from "../core/registry.js";
5
5
  import { comparableText } from "../core/text.js";
6
6
  import { addCoins, changeFrom, formatAmount, isSafePurse, payCoins, readAmount, takeCoins, totalOf } from "../money/index.js";
7
7
  import { applyMove, canHold, concernsPlayer, countedText, declaredKind, inheritedFields, isPartyMember, kindNamed, locate, MoveStopped, ownField, pageNamed, parsePageReference, readEntry, stackName, } from "../pages/index.js";
8
+ import { campaignCoins } from "./shared/campaign/money.js";
9
+ import { campaignWorld, missingSystemHint } from "./shared/campaign/world.js";
8
10
  import { coinExamples } from "./shared/examples.js";
9
- import { textList } from "./shared/inputs.js";
10
- import { campaignCoins } from "./shared/money.js";
11
- import { afterMoves, pagesPlan } from "./shared/moves.js";
11
+ import { textList, textsOf } from "./shared/inputs.js";
12
12
  import { skippedPagesNote } from "./shared/notes.js";
13
- import { copyName, readOpenScene } from "./shared/scene.js";
14
- import { heldStack, logStackSteps, stackEdits, stackMoveSteps, stackStepText, unequipKinds } from "./shared/stacks.js";
15
- import { newDatedLogEntry } from "./shared/time.js";
16
- import { campaignWorld, missingSystemHint } from "./shared/world.js";
13
+ import { afterMoves, pagesPlan } from "./shared/places/moves.js";
14
+ import { copyName, readOpenScene } from "./shared/scene/scene.js";
15
+ import { heldStack, logStackSteps, stackEdits, stackMoveSteps, stackStepText, unequipKinds } from "./shared/sheet/stacks.js";
16
+ import { newDatedLogEntry } from "./shared/time/time.js";
17
17
  export const trade = defineCommand({
18
18
  name: "trade",
19
19
  description: "Buy, sell or barter in one go: what page gives and what it gets, items and money both ways, with the change in coins. "
@@ -92,7 +92,7 @@ function sideNamed(world, copy, name) {
92
92
  }
93
93
  /** The entries given, as a list or one text, each without quotes around it, as a model may send "\"2 gp\"". */
94
94
  function listOf(value) {
95
- return (value === undefined ? [] : typeof value === "string" ? [value] : value).map((entry) => entry.trim().replace(/^"(.*)"$/s, "$1").trim()).filter((entry) => entry !== "");
95
+ return textsOf(value).map((entry) => entry.trim().replace(/^"(.*)"$/s, "$1").trim()).filter((entry) => entry !== "");
96
96
  }
97
97
  /**
98
98
  * What a side hands over, read entry by entry (STK-7): money in the campaign's coins, a kind with how many, taken from the side's stack (STK-4), or an item with a story
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import type { Context } from "../core/context.ts";
3
- import { type ChatBatch } from "./shared/page-words.ts";
3
+ import { type ChatBatch } from "./shared/books/words.ts";
4
4
  export declare const translate: import("../core/registry.ts").Command<z.ZodObject<{
5
5
  phrases: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodString]>>;
6
6
  }, z.core.$strip>, {
@@ -2,9 +2,9 @@ import { z } from "zod";
2
2
  import { readSettings, requireCampaign } from "../campaign/index.js";
3
3
  import { appendLogEntry } from "../core/log.js";
4
4
  import { defineCommand } from "../core/registry.js";
5
- import { chatBatch, keepChatAnswer, languageName, shipsLanguage } from "./shared/page-words.js";
6
- import { newDatedLogEntry } from "./shared/time.js";
7
- import { campaignSystem } from "./shared/world.js";
5
+ import { chatBatch, keepChatAnswer, languageName, shipsLanguage } from "./shared/books/words.js";
6
+ import { campaignSystem } from "./shared/campaign/world.js";
7
+ import { newDatedLogEntry } from "./shared/time/time.js";
8
8
  export const translate = defineCommand({
9
9
  name: "translate",
10
10
  description: "Translate the player's dashboard into the campaign's language yourself, in the chat. "
@@ -1,6 +1,6 @@
1
1
  import { type Page, type Position, type World } from "../../pages/index.ts";
2
2
  import type { GameSystem } from "../../systems/index.ts";
3
- import { type Measures, type Roads } from "../shared/roads.ts";
3
+ import { type Measures, type Roads } from "../shared/places/roads.ts";
4
4
  /** A leg of a straight line across country: the region it runs in, none in the open, its length in metres and the metres a minute at the pace there. */
5
5
  export interface OpenLeg {
6
6
  region?: Page;
@@ -1,8 +1,8 @@
1
1
  // Travel off the roads (D-259, TRV-12, TRV-13): a straight line across the regions of the map, each with its terrain, and the roads it crosses.
2
2
  import { crossingAlong, distanceBetween, pointAlong } from "../../map/index.js";
3
3
  import { mapKey, pagesWithName } from "../../pages/index.js";
4
- import { placedPosition, positionOf, regionAt, relationText } from "../shared/positions.js";
5
- import { lengthText, terrainFactor } from "../shared/roads.js";
4
+ import { placedPosition, positionOf, regionAt, relationText } from "../shared/places/positions.js";
5
+ import { lengthText, terrainFactor } from "../shared/places/roads.js";
6
6
  // The line is judged every this many metres: a region smaller than this may be missed, which the master can always say.
7
7
  const sampleMetres = 250;
8
8
  /**
@@ -3,10 +3,10 @@ import { requireCampaign } from "../../campaign/index.js";
3
3
  import { defineCommand } from "../../core/registry.js";
4
4
  import { distanceBetween } from "../../map/index.js";
5
5
  import { locate, mapKey, pageNamed, parsePageReference } from "../../pages/index.js";
6
- import { journeyStart, moversPosition, readJourney } from "../shared/journey.js";
7
- import { pointText, positionOf } from "../shared/positions.js";
8
- import { dayHours, durationText, goingText, lengthText, measuresOf, moversOf, noWayText, paceOf, partyLead, roadsOf, sameSpot, stopOf, travellingParty, unknownOnRoad, wayFor, wayText } from "../shared/roads.js";
9
- import { campaignSystem, campaignWorld, missingSystemHint } from "../shared/world.js";
6
+ import { campaignSystem, campaignWorld, missingSystemHint } from "../shared/campaign/world.js";
7
+ import { journeyStart, moversPosition, readJourney } from "../shared/places/journey.js";
8
+ import { pointText, positionOf } from "../shared/places/positions.js";
9
+ import { dayHours, durationText, goingText, lengthText, measuresOf, moversOf, noWayText, paceOf, partyLead, roadsOf, sameSpot, stopOf, travellingParty, unknownOnRoad, wayFor, wayText, } from "../shared/places/roads.js";
10
10
  import { acrossHint, openLegs } from "./open.js";
11
11
  export const route = defineCommand({
12
12
  name: "route",
@@ -29,13 +29,14 @@ export const route = defineCommand({
29
29
  const roads = roadsOf(world);
30
30
  const measures = measuresOf(root, system);
31
31
  const destination = placeNamed(world, input.to, "where to");
32
- const travellers = input.from === undefined ? travellingParty(world, partyLead(world, readJourney(root)?.movers ?? [], "Give from, the place to start from."), readJourney(root)?.movers ?? []) : [];
32
+ // From where the party is, the journey under way counts; from a place given, none does.
33
+ const journey = input.from === undefined ? readJourney(root) : undefined;
34
+ const travellers = input.from === undefined ? travellingParty(world, partyLead(world, journey?.movers ?? [], "Give from, the place to start from."), journey?.movers ?? []) : [];
33
35
  const origin = input.from === undefined ? travellers[0] : placeNamed(world, input.from, "where from", true);
34
36
  if (origin === undefined) {
35
37
  throw new Error("There is no player character to start from: give from, a place.");
36
38
  }
37
39
  const { movers, vehicle } = travellers.length === 0 ? { movers: [origin], vehicle: undefined } : moversOf(world, system, travellers);
38
- const journey = input.from === undefined ? readJourney(root) : undefined;
39
40
  const onRoad = journey === undefined ? undefined : journeyStart(world, roads, journey, movers);
40
41
  const departure = stopOf(world, roads, origin);
41
42
  const arrival = stopOf(world, roads, destination);
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { type TimePassed } from "../shared/advance.ts";
2
+ import { type TimePassed } from "../shared/time/advance.ts";
3
3
  /** How a travel ended (TRV-7, TRV-12): at a place, at the end of a distance in the open, at an event, at the end of the day's travel, or before it began. */
4
4
  type Ending = {
5
5
  kind: "arrived";
@@ -5,16 +5,16 @@ import { defineCommand } from "../../core/registry.js";
5
5
  import { directionHelp, directionName, distanceBetween, pointAlong, pointFrom, readDirection } from "../../map/index.js";
6
6
  import { environmentAt, locate, mapKey, mapOf, pageNamed, parsePageReference, playerCharacters } from "../../pages/index.js";
7
7
  import { addDuration, formatGameDate, minutesBetween } from "../../time/index.js";
8
- import { aroundLead, passedLines, passTime } from "../shared/advance.js";
8
+ import { campaignSystem, campaignWorld, missingSystemHint } from "../shared/campaign/world.js";
9
9
  import { textList, textsOf } from "../shared/inputs.js";
10
- import { journeyPoint, journeyStart, moversMap, moversNamed, moversPosition, readJourney, ridersOf, sameMovers, saveJourney, travelledSinceRest } from "../shared/journey.js";
11
- import { movePages } from "../shared/moves.js";
12
10
  import { timePassedLines } from "../shared/packages/code.js";
13
- import { nearPlaces, pointText, positionOf, regionAt } from "../shared/positions.js";
14
- import { dayHours, durationText, goingText, hoursText, isVehicleOnly, kindOf, lengthText, measuresOf, moversOf, noWayText, paceOf, partyLead, roadsOf, sameSpot, speedOf, stepEnd, stopOf, travellingParty, unknownOnRoad, wayFor, wayText, } from "../shared/roads.js";
15
- import { readOpenScene } from "../shared/scene.js";
16
- import { presentDate } from "../shared/time.js";
17
- import { campaignSystem, campaignWorld, missingSystemHint } from "../shared/world.js";
11
+ import { journeyPoint, journeyStart, moversMap, moversNamed, moversPosition, readJourney, ridersOf, sameMovers, saveJourney, travelledSinceRest } from "../shared/places/journey.js";
12
+ import { movePages } from "../shared/places/moves.js";
13
+ import { nearPlaces, pointText, positionOf, regionAt } from "../shared/places/positions.js";
14
+ import { dayHours, durationText, goingText, hoursText, isVehicleOnly, kindOf, lengthText, measuresOf, moversOf, noWayText, paceOf, partyLead, roadsOf, sameSpot, speedOf, stepEnd, stopOf, travellingParty, unknownOnRoad, wayFor, wayText, } from "../shared/places/roads.js";
15
+ import { readOpenScene } from "../shared/scene/scene.js";
16
+ import { aroundLead, passedLines, passTime } from "../shared/time/advance.js";
17
+ import { presentDate } from "../shared/time/time.js";
18
18
  import { acrossHint, crossedRoads, openLegs } from "./open.js";
19
19
  export const travel = defineCommand({
20
20
  name: "travel",
@@ -1,10 +1,10 @@
1
1
  import { z } from "zod";
2
2
  import { requireCampaign } from "../campaign/index.js";
3
3
  import { defineCommand } from "../core/registry.js";
4
- import { stateCheckProblems } from "./shared/checks.js";
4
+ import { stateCheckProblems } from "./shared/campaign/checks.js";
5
+ import { campaignProblems } from "./shared/campaign/problems.js";
6
+ import { campaignWorld } from "./shared/campaign/world.js";
5
7
  import { packageCodeProblems } from "./shared/packages/code.js";
6
- import { campaignProblems } from "./shared/problems.js";
7
- import { campaignWorld } from "./shared/world.js";
8
8
  export const validate = defineCommand({
9
9
  name: "validate",
10
10
  description: "Check the whole campaign and say how to fix each problem. "
@@ -1,8 +1,8 @@
1
1
  import { type LogEntry } from "../../core/log.ts";
2
2
  import { type World } from "../../pages/index.ts";
3
3
  import type { GameDate } from "../../time/index.ts";
4
- import type { SeenEffect } from "../shared/effects.ts";
5
- import { type Knowledge } from "../shared/knowledge.ts";
4
+ import { type Knowledge } from "../shared/characters/knowledge.ts";
5
+ import type { SeenEffect } from "../shared/scene/effects.ts";
6
6
  /** A quest as the journal shows it (VIEW-8). */
7
7
  export interface ShownQuest {
8
8
  name: string;
@@ -3,8 +3,8 @@
3
3
  import { readLog } from "../../core/log.js";
4
4
  import { comparableText } from "../../core/text.js";
5
5
  import { goalsIn, links, textsIn } from "../../pages/index.js";
6
- import { knownSecretsApart, knownText } from "../shared/knowledge.js";
7
- import { measuresText, questMeasures } from "../shared/quests.js";
6
+ import { measuresText, questMeasures } from "../shared/campaign/quests.js";
7
+ import { knownSecretsApart, knownText } from "../shared/characters/knowledge.js";
8
8
  // The story tells what happened at its hour; time passing is no fact of it, the hours of the facts show it.
9
9
  const storyKinds = ["counter", "moved", "learned", "effect", "effect-ended", "back", "quest"];
10
10
  const statuses = ["open", "done", "failed"];
@@ -1,5 +1,5 @@
1
1
  import { type Page } from "../../pages/index.ts";
2
- import { type Measures } from "../shared/roads.ts";
2
+ import { type Measures } from "../shared/places/roads.ts";
3
3
  import type { PlaceSight } from "./place.ts";
4
4
  /** A point of a map, in km east and north of its centre; with the map it is on, by the place that holds it, none for the main map (POS-8). */
5
5
  export interface MapPoint {
@@ -6,12 +6,12 @@ import { readLog } from "../../core/log.js";
6
6
  import { comparableText } from "../../core/text.js";
7
7
  import { directionName, directionTo, distanceBetween } from "../../map/index.js";
8
8
  import { environmentAt, locate, mapKey, mapOf, pagesWithName, parsePageReference, readStops } from "../../pages/index.js";
9
- import { shownImage } from "../shared/images.js";
10
- import { moversMap, moversNamed, moversPosition, readJourney } from "../shared/journey.js";
11
- import { knowsPage } from "../shared/knowledge.js";
12
- import { placedPosition, positionOf, regionsOf } from "../shared/positions.js";
13
- import { kindOf, roadsOf, travellingParty } from "../shared/roads.js";
14
- import { campaignSystem } from "../shared/world.js";
9
+ import { shownImage } from "../shared/campaign/images.js";
10
+ import { campaignSystem } from "../shared/campaign/world.js";
11
+ import { knowsPage } from "../shared/characters/knowledge.js";
12
+ import { moversMap, moversNamed, moversPosition, readJourney } from "../shared/places/journey.js";
13
+ import { placedPosition, positionOf, regionsOf } from "../shared/places/positions.js";
14
+ import { kindOf, roadsOf, travellingParty } from "../shared/places/roads.js";
15
15
  // How far a road toward a stop the character does not know is drawn, at most: a beginning, never where the stop is.
16
16
  const stubMetres = 3000;
17
17
  // How many places the chat lists.
@@ -0,0 +1,16 @@
1
+ import { type Page, type World } from "../../pages/index.ts";
2
+ import { type PlaceSight } from "./place.ts";
3
+ import type { ViewResult } from "./result.ts";
4
+ /**
5
+ * What a character other than the player's knows and lived, for the character agent voicing them (VIEW-10): their page as they know it, with their sheet; now; the pages they know,
6
+ * each in a line; the secrets of other pages they discovered; the scenes they were in.
7
+ */
8
+ export declare function memoryOf(sight: PlaceSight): Extract<ViewResult, {
9
+ kind: "memory";
10
+ }>;
11
+ /** What a character knows and lived, as the character agent voicing them reads it in the chat (VIEW-10). */
12
+ export declare function memoryText(result: Extract<ViewResult, {
13
+ kind: "memory";
14
+ }>): string;
15
+ /** The character a character agent's view is for (VIEW-10), by name or alias; stops the command for any other page. */
16
+ export declare function characterNamed(world: World, name: string): Page;
@@ -0,0 +1,90 @@
1
+ // Another character's view, for the agent voicing them
2
+ import { firstSentence, withArticle } from "../../core/text.js";
3
+ import { isPlayerCharacter, locate, pagesWithNameOrAlias, parsePageReference, playerCharacters } from "../../pages/index.js";
4
+ import { formatGameDate } from "../../time/index.js";
5
+ import { discoveredSecrets, knownIntroduction, knowsPage, scenesLivedBy } from "../shared/characters/knowledge.js";
6
+ import { quotedOrders, standingOrders } from "../shared/characters/orders.js";
7
+ import { thoughtsIn, thoughtsRule, thoughtsShown } from "../shared/characters/thoughts.js";
8
+ import { readOpenScene } from "../shared/scene/scene.js";
9
+ import { sheetText } from "../shared/sheet/sheet.js";
10
+ import { readPresent } from "../shared/time/time.js";
11
+ import { shownName, shownPage } from "./page.js";
12
+ import { sceneLine } from "./place.js";
13
+ // How a player character is played while their player is away (D-480 (4)).
14
+ const awayRule = "You play while your player is away: no big decision, nothing precious spent, no needless risk.";
15
+ /**
16
+ * What a character other than the player's knows and lived, for the character agent voicing them (VIEW-10): their page as they know it, with their sheet; now; the pages they know,
17
+ * each in a line; the secrets of other pages they discovered; the scenes they were in.
18
+ */
19
+ export function memoryOf(sight) {
20
+ const { root, context, world, knowledge } = sight;
21
+ const self = knowledge.pc;
22
+ // A lone player character's player is never away.
23
+ const away = isPlayerCharacter(self) && self.fields.status !== "dead" && playerCharacters(world).filter((one) => one.fields.status !== "dead").length > 1;
24
+ // The player's standing orders, for a living companion and a player character played as one (D-563).
25
+ const orders = (away || self.fields.role === "companion") && self.fields.status !== "dead" ? standingOrders(root) : [];
26
+ const own = shownPage(root, context, world, knowledge, self, true);
27
+ const now = readPresent(root).date;
28
+ const { scene } = readOpenScene(root);
29
+ const inScene = scene !== undefined && scene.with.some((link) => pagesWithNameOrAlias(world, parsePageReference(link).name)[0] === self);
30
+ const line = inScene ? sceneLine(sight, (name) => shownName(world, knowledge, name), self) : undefined;
31
+ const known = [...knowledge.pages].filter((page) => page !== self && page.system === undefined).map((page) => {
32
+ const introduction = firstSentence(knownIntroduction(world, knowledge, page).split("\n")[0]);
33
+ return `${page.name} (${page.type ?? "page"})${introduction === "" ? "" : `: ${introduction}`}`;
34
+ });
35
+ return {
36
+ kind: "memory",
37
+ title: own.title,
38
+ sheet: own.sheet,
39
+ text: own.text,
40
+ ...(now === undefined ? {} : { now: formatGameDate(now) }),
41
+ place: locate(world, self).chain.filter((holder) => knowsPage(knowledge, holder)).map((holder) => holder.name),
42
+ ...(line === undefined ? {} : { scene: line }),
43
+ known,
44
+ discovered: discoveredSecrets(world, knowledge).map((secret) => `${secret.page}#${secret.name}: ${secret.text.replace(/\s*\n\s*/g, " ")}`),
45
+ lived: scenesLivedBy(root, world, self).map((one) => `${one.date === undefined ? "" : `${one.date} · `}${one.title}${one.summary === "" ? "" : `: ${one.summary}`}`),
46
+ ...(self.fields.role === "companion" ? { thoughts: thoughtsIn(root, world, self).slice(-thoughtsShown).map((one) => `${one.date === undefined ? "" : `${one.date} · `}${one.text}`) } : {}),
47
+ ...(away ? { away: awayRule } : {}),
48
+ ...(orders.length === 0 ? {} : { orders }),
49
+ };
50
+ }
51
+ /** What a character knows and lived, as the character agent voicing them reads it in the chat (VIEW-10). */
52
+ export function memoryText(result) {
53
+ const list = (title, lines) => (lines.length === 0 ? "" : `${title}:\n${lines.map((line) => `- ${line}`).join("\n")}`);
54
+ const where = result.place.length === 0 ? "" : `in ${result.place.join(" › ")}`;
55
+ const now = [result.now ?? "", where].filter((part) => part !== "").join(", ");
56
+ return [
57
+ result.title,
58
+ sheetText(result.sheet).join("\n"),
59
+ result.text,
60
+ now === "" ? "" : `Now: ${now}`,
61
+ result.scene === undefined ? "" : `Scene: ${result.scene}`,
62
+ list("Known", result.known),
63
+ list("Discovered", result.discovered),
64
+ list("Lived", result.lived),
65
+ result.thoughts === undefined ? "" : thoughtsText(result.thoughts),
66
+ result.away ?? "",
67
+ // Last, where it is read just before the character speaks.
68
+ result.orders === undefined
69
+ ? ""
70
+ : `Your party's standing orders: ${quotedOrders(result.orders)}. Keep them; if your character would balk, say so in the open rather than break one silently.`,
71
+ ].filter((block) => block !== "").join("\n\n");
72
+ }
73
+ /** A companion's last lines of their diary, and what to write in it (DIA-3). */
74
+ function thoughtsText(lines) {
75
+ const rule = `When you write in it: ${thoughtsRule}.`;
76
+ return lines.length === 0 ? `Your diary: nothing yet. ${rule}` : `Your diary, the last lines:\n${lines.map((line) => `- ${line}`).join("\n")}\n${rule}`;
77
+ }
78
+ /** The character a character agent's view is for (VIEW-10), by name or alias; stops the command for any other page. */
79
+ export function characterNamed(world, name) {
80
+ if (name.trim() === "") {
81
+ throw new Error("Give as the name of a character's page, such as as Varro: whose view it is.");
82
+ }
83
+ const page = pagesWithNameOrAlias(world, parsePageReference(name).name)[0];
84
+ if (page?.type !== "character") {
85
+ throw new Error(page === undefined
86
+ ? `There is no character named ${name.trim()}: give as the name of a character's page, such as as Varro.`
87
+ : `${page.name} is ${withArticle(page.type ?? "free page")}: as takes a character, whose view it is.`);
88
+ }
89
+ return page;
90
+ }
@@ -0,0 +1,32 @@
1
+ import type { Context } from "../../core/context.ts";
2
+ import { type Coin } from "../../money/index.ts";
3
+ import { type Page, type World } from "../../pages/index.ts";
4
+ import type { GameSystem } from "../../systems/index.ts";
5
+ import { type Knowledge } from "../shared/characters/knowledge.ts";
6
+ import { type SheetValue } from "../shared/sheet/sheet.ts";
7
+ import type { ViewResult } from "./result.ts";
8
+ /** A page as the one whose view it is knows it (VIEW-3): its text, and the whole sheet when it is theirs or of their party. */
9
+ export declare function shownPage(root: string, context: Context, world: World, knowledge: Knowledge, page: Page, party: boolean): Extract<ViewResult, {
10
+ kind: "page";
11
+ }>;
12
+ /**
13
+ * The page the player character knows by this name, of the campaign or of the system, or by one of its aliases (VIEW-2): only one it knows, so that neither two
14
+ * pages of one name nor an alias tells that a page it does not know exists.
15
+ */
16
+ export declare function knownPage(world: World, knowledge: Knowledge, name: string): Page | undefined;
17
+ /** A name as the view may write it: one of a page the player character knows; undefined for any other, which the view tells another way (D-254). */
18
+ export declare function shownName(world: World, knowledge: Knowledge, name: unknown): string | undefined;
19
+ /** The page the player character knows by a name the log writes, of the campaign or of the system. */
20
+ export declare function knownNamedPage(world: World, knowledge: Knowledge, name: unknown): Page | undefined;
21
+ /** A place as a chapter of the story shows it (D-384): its kind and its picture, else that of the nearest place that holds it, as the player character knows them. */
22
+ export declare function placeLook(root: string, context: Context, world: World, knowledge: Knowledge, name: unknown): {
23
+ kind?: string;
24
+ picture?: {
25
+ file: string;
26
+ version: number;
27
+ };
28
+ };
29
+ /** The values of someone's line as data (DAT-2): as the line writes them, with a counter's limits, and beside the experience what the next level needs (PRO-6). */
30
+ export declare function lineValues(world: World, page: Page, counters: Record<string, unknown>): SheetValue[];
31
+ /** A value with its coins when it is money (MON-2), from the coin worth most, each with its metal when the game names it; as it was otherwise. */
32
+ export declare function valueCoins(value: SheetValue, coins: Coin[] | undefined, system: GameSystem | undefined): SheetValue;