rpg-engine 0.23.1 → 0.24.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 (124) hide show
  1. package/README.md +2 -2
  2. package/dist/campaign/create-campaign.d.ts +1 -1
  3. package/dist/campaign/create-campaign.js +1 -1
  4. package/dist/campaign/find-campaign.js +11 -1
  5. package/dist/campaign/host-files.d.ts +5 -6
  6. package/dist/campaign/host-files.js +100 -60
  7. package/dist/campaign/settings.d.ts +3 -3
  8. package/dist/campaign/settings.js +5 -4
  9. package/dist/cli/cli.js +11 -2
  10. package/dist/commands/config/config.js +1 -1
  11. package/dist/commands/config/dashboard.js +23 -6
  12. package/dist/commands/config/words.js +1 -0
  13. package/dist/commands/image.js +3 -3
  14. package/dist/commands/import/import.d.ts +3 -1
  15. package/dist/commands/import/import.js +13 -5
  16. package/dist/commands/instructions.js +1 -1
  17. package/dist/commands/shared/campaign/images.js +3 -2
  18. package/dist/commands/shared/campaign/mode.js +1 -1
  19. package/dist/commands/shared/characters/voices.d.ts +2 -2
  20. package/dist/commands/shared/characters/voices.js +9 -9
  21. package/dist/commands/shared/sheet/sheet.d.ts +2 -2
  22. package/dist/commands/shared/sheet/sheet.js +3 -3
  23. package/dist/core/context.d.ts +8 -2
  24. package/dist/dashboard/acts/acts.js +39 -11
  25. package/dist/dashboard/acts/head.js +7 -0
  26. package/dist/dashboard/acts/names.js +4 -2
  27. package/dist/dashboard/acts/sending.js +23 -22
  28. package/dist/dashboard/acts/sheet.js +7 -149
  29. package/dist/dashboard/acts/strip.js +10 -14
  30. package/dist/dashboard/acts/talk.js +51 -0
  31. package/dist/dashboard/acts/thing.js +169 -0
  32. package/dist/dashboard/app.js +3 -3
  33. package/dist/dashboard/guide/ar.md +13 -13
  34. package/dist/dashboard/guide/cs.md +12 -12
  35. package/dist/dashboard/guide/da.md +12 -12
  36. package/dist/dashboard/guide/de.md +11 -11
  37. package/dist/dashboard/guide/el.md +11 -11
  38. package/dist/dashboard/guide/en.md +10 -10
  39. package/dist/dashboard/guide/es.md +11 -11
  40. package/dist/dashboard/guide/fi.md +11 -11
  41. package/dist/dashboard/guide/fr.md +12 -12
  42. package/dist/dashboard/guide/he.md +11 -11
  43. package/dist/dashboard/guide/hi.md +11 -11
  44. package/dist/dashboard/guide/hu.md +11 -11
  45. package/dist/dashboard/guide/is.md +11 -11
  46. package/dist/dashboard/guide/it.md +38 -38
  47. package/dist/dashboard/guide/ja.md +11 -11
  48. package/dist/dashboard/guide/ko.md +12 -12
  49. package/dist/dashboard/guide/nb.md +11 -11
  50. package/dist/dashboard/guide/nl.md +11 -11
  51. package/dist/dashboard/guide/pl.md +11 -11
  52. package/dist/dashboard/guide/pt.md +11 -11
  53. package/dist/dashboard/guide/ro.md +12 -12
  54. package/dist/dashboard/guide/ru.md +12 -12
  55. package/dist/dashboard/guide/sv.md +12 -12
  56. package/dist/dashboard/guide/tr.md +12 -12
  57. package/dist/dashboard/guide/uk.md +11 -11
  58. package/dist/dashboard/guide/zh.md +12 -12
  59. package/dist/dashboard/i18n/ar.json +24 -10
  60. package/dist/dashboard/i18n/cs.json +24 -10
  61. package/dist/dashboard/i18n/da.json +24 -10
  62. package/dist/dashboard/i18n/de.json +24 -10
  63. package/dist/dashboard/i18n/el.json +24 -10
  64. package/dist/dashboard/i18n/es.json +24 -10
  65. package/dist/dashboard/i18n/fi.json +24 -10
  66. package/dist/dashboard/i18n/fr.json +24 -10
  67. package/dist/dashboard/i18n/he.json +24 -10
  68. package/dist/dashboard/i18n/hi.json +24 -10
  69. package/dist/dashboard/i18n/hu.json +24 -10
  70. package/dist/dashboard/i18n/is.json +24 -10
  71. package/dist/dashboard/i18n/it.json +102 -88
  72. package/dist/dashboard/i18n/ja.json +24 -10
  73. package/dist/dashboard/i18n/ko.json +24 -10
  74. package/dist/dashboard/i18n/nb.json +24 -10
  75. package/dist/dashboard/i18n/nl.json +24 -10
  76. package/dist/dashboard/i18n/pl.json +24 -10
  77. package/dist/dashboard/i18n/pt.json +24 -10
  78. package/dist/dashboard/i18n/ro.json +24 -10
  79. package/dist/dashboard/i18n/ru.json +24 -10
  80. package/dist/dashboard/i18n/sv.json +24 -10
  81. package/dist/dashboard/i18n/tr.json +24 -10
  82. package/dist/dashboard/i18n/uk.json +24 -10
  83. package/dist/dashboard/i18n/zh.json +24 -10
  84. package/dist/dashboard/packages/packages.js +1 -1
  85. package/dist/dashboard/parts/icons.js +2 -0
  86. package/dist/dashboard/parts/labels.js +1 -0
  87. package/dist/dashboard/parts/layout.js +34 -0
  88. package/dist/dashboard/parts/widgets.js +6 -2
  89. package/dist/dashboard/settings/language-choice.js +1 -1
  90. package/dist/dashboard/settings/settings.js +61 -36
  91. package/dist/dashboard/settings/tabs.js +14 -0
  92. package/dist/dashboard/sheet/sheet.js +54 -33
  93. package/dist/dashboard/shell/notices.js +2 -2
  94. package/dist/dashboard/style.css +122 -47
  95. package/dist/helpers/antigravity.d.ts +47 -0
  96. package/dist/helpers/antigravity.js +434 -0
  97. package/dist/helpers/chosen.d.ts +11 -7
  98. package/dist/helpers/chosen.js +64 -37
  99. package/dist/helpers/index.d.ts +1 -0
  100. package/dist/helpers/index.js +2 -1
  101. package/dist/helpers/opencode.js +117 -24
  102. package/dist/helpers/programs.d.ts +8 -0
  103. package/dist/helpers/programs.js +35 -2
  104. package/dist/helpers/stop.d.ts +2 -0
  105. package/dist/helpers/stop.js +20 -1
  106. package/dist/helpers/svg.d.ts +4 -1
  107. package/dist/helpers/svg.js +16 -4
  108. package/dist/instructions/index.d.ts +4 -2
  109. package/dist/instructions/index.js +6 -3
  110. package/dist/server/bell/antigravity.d.ts +7 -2
  111. package/dist/server/bell/antigravity.js +24 -6
  112. package/dist/server/bell/index.d.ts +1 -1
  113. package/dist/server/bell/index.js +1 -1
  114. package/dist/server/bell/listener.js +6 -1
  115. package/dist/server/fence.d.ts +21 -0
  116. package/dist/server/fence.js +69 -0
  117. package/dist/server/mcp.js +26 -0
  118. package/dist/server/player-acts.js +1 -1
  119. package/dist/server/subagent.d.ts +4 -0
  120. package/dist/server/subagent.js +30 -0
  121. package/instructions/voices-antigravity.md +1 -0
  122. package/instructions/voices-codex.md +1 -0
  123. package/instructions/voices-opencode.md +1 -1
  124. package/package.json +1 -1
@@ -146,6 +146,7 @@
146
146
  "A square…": "Клітинка…",
147
147
  "a story that closes each session, with a thread that comes back": "історія, що завершується в кожній сесії, із ниткою, яка повертається",
148
148
  "About": "Про гру",
149
+ "About {item}": "Про {item}",
149
150
  "above {value}": "вище {value}",
150
151
  "Active": "Активні",
151
152
  "Add": "Додати",
@@ -196,6 +197,9 @@
196
197
  "Answer: {check}": "Відповісти: {check}",
197
198
  "Answers the master: {check}": "Відповідь майстру: {check}",
198
199
  "Antigravity makes them in your chat, from your Google plan.": "Їх створює Antigravity у твоєму чаті за твоїм планом Google.",
200
+ "Antigravity paints them on this computer, from your Google plan (a paid one: on the free plan its image tool fails)": "Antigravity малює їх на цьому комп'ютері за твоїм планом Google (платним: на безкоштовному плані його засіб для зображень не працює)",
201
+ "Antigravity paints them on this computer, from your Google plan.": "Antigravity малює їх на цьому комп'ютері за твоїм планом Google.",
202
+ "Antigravity's agy does not answer on this computer, or is not signed in.": "agy від Antigravity не відповідає на цьому комп'ютері або в ньому не виконано вхід.",
199
203
  "Arcs": "Арки",
200
204
  "Around": "Навколо",
201
205
  "Arrows move the map, plus and minus zoom, Escape closes a place's card. The list of places below says the same.": "Стрілки рухають мапу, плюс і мінус змінюють масштаб, Escape закриває картку місця. Список місць нижче розповідає те саме.",
@@ -247,6 +251,7 @@
247
251
  "By hand": "Вручну",
248
252
  "Calendar": "Календар",
249
253
  "Camp": "Табір",
254
+ "Campaign": "Кампанія",
250
255
  "Can't act": "Не може діяти",
251
256
  "Cancel": "Скасувати",
252
257
  "Castle": "Замок",
@@ -273,6 +278,7 @@
273
278
  "Choose": "Обрати",
274
279
  "Choose {name}": "Обрати {name}",
275
280
  "Choose on the map": "Обрати на мапі",
281
+ "Choose on whom": "Обери, на кого",
276
282
  "Choose whenever you like: the story goes on meanwhile. Read the pages here; ask the master anything in the chat.": "Обирай коли завгодно: історія тим часом триває. Сторінки можна читати тут, а майстра можна про все спитати в чаті.",
277
283
  "Chosen": "Обрано",
278
284
  "City": "Місто",
@@ -308,15 +314,14 @@
308
314
  "Completed": "Виконані",
309
315
  "Conditions on tokens": "Стани на токенах",
310
316
  "Confirm the choices": "Підтвердити вибір",
317
+ "Confirm: {sentence}": "Підтвердити: {sentence}",
311
318
  "Confirmed: they are the master's now, who writes them on the sheet and tells you.": "Підтверджено: тепер вибір у майстра, який запише його в аркуш персонажа й розповість тобі.",
312
319
  "Contents": "Зміст",
313
320
  "Continue": "Продовжити",
314
321
  "Copied": "Скопійовано",
315
- "Copied: paste it in the chat": "Скопійовано: встав у чат",
316
322
  "Copper": "Мідь",
317
323
  "Copy": "Копіювати",
318
324
  "Copy {command}": "Копіювати {command}",
319
- "Copy did not work: select the words and copy them yourself.": "Не вдалося скопіювати: виділи слова та скопіюй їх вручну.",
320
325
  "count the dice {condition}": "рахувати кубики {condition}",
321
326
  "Counts only with automatic commits: while they are off, the engine puts nothing into the repository.": "Враховується лише з автоматичними комітами: поки вони вимкнені, рушій нічого не додає до репозиторію.",
322
327
  "Creature": "Істота",
@@ -353,6 +358,7 @@
353
358
  "Development notes": "Про розробку",
354
359
  "Diary": "Щоденник",
355
360
  "Dice": "Кубики",
361
+ "Dice and coins": "Кубики та монети",
356
362
  "Dice and measures": "Кубики та міри",
357
363
  "Dice edges": "Ребра кубиків",
358
364
  "Dice set": "Набір кубиків",
@@ -449,6 +455,7 @@
449
455
  "from here": "звідси",
450
456
  "From where": "Звідки",
451
457
  "from your party, as the crow flies": "від твого загону, по прямій",
458
+ "Game": "Гра",
452
459
  "Game style": "Стиль гри",
453
460
  "Game system": "Система гри",
454
461
  "Game systems, extensions and languages come from npm: a file, a link or a folder can be added all the same.": "Системи гри, розширення та мови беруться з npm, але файл, посилання чи теку все одно можна додати.",
@@ -582,7 +589,7 @@
582
589
  "keep the lowest": "залишити найнижчий",
583
590
  "Keep the repository private. It holds the log of your sessions and your user's name on this computer; with the chats in, everything you wrote to the master too.": "Не робіть репозиторій публічним. У ньому зберігаються журнал сесій і ім'я твого користувача на цьому комп'ютері; якщо додати чати, то й усе, що ти писав(-ла) майстру.",
584
591
  "Keeping {what}": "Утримує {what}",
585
- "Kept in this browser alone.": "Зберігається лише в цьому браузері.",
592
+ "Kept in this browser alone: the master hears nothing of them.": "Зберігаються лише в цьому браузері: майстер нічого про них не знає.",
586
593
  "Key": "Легенда",
587
594
  "Kind": "Тип",
588
595
  "Kinds": "Види",
@@ -618,6 +625,7 @@
618
625
  "Load": "Вантаж",
619
626
  "Load more": "Завантажити ще",
620
627
  "long marches and sleepless nights": "довгі переходи та безсонні ночі",
628
+ "Look": "Вигляд",
621
629
  "Lore": "Знання",
622
630
  "Low": "Найнижчі",
623
631
  "lowest of {count}": "найнижчий з {count}",
@@ -630,6 +638,7 @@
630
638
  "Map of {place}": "Мапа: {place}",
631
639
  "Maps": "Мапи",
632
640
  "Marble": "Мармур",
641
+ "Master": "Майстер",
633
642
  "Master's rolls": "Кидки майстра",
634
643
  "Master's thinking": "Роздуми майстра",
635
644
  "Medium": "Середній",
@@ -671,6 +680,7 @@
671
680
  "Next month": "Наступний місяць",
672
681
  "next to {name}": "поруч із {name}",
673
682
  "next to you": "поруч із тобою",
683
+ "No": "Ні",
674
684
  "No campaign searches it any more, and the text RPG Engine read of its books is deleted. The books stay where they are.": "Жодна кампанія більше не шукає в ній, а текст, який RPG Engine зчитав з її книг, видалено. Книги залишаються на місці.",
675
685
  "No documents yet: the letters, notices and pages your character finds or reads come here, to read again.": "Документів поки немає: листи, оголошення й сторінки, які знаходить або читає твій персонаж, з'являтимуться тут, щоб їх можна було перечитати.",
676
686
  "No language matches: write its code, such as pt-BR.": "Жодна мова не підходить: напиши її код, наприклад pt-BR.",
@@ -704,7 +714,7 @@
704
714
  "Not connected: the sheet as of {time}. It comes back when the game does.": "Немає зв'язку: аркуш персонажа станом на {time}. Він повернеться, коли гра відновить зв'язок.",
705
715
  "not done": "не виконано",
706
716
  "Not found yet": "Ще не знайдено",
707
- "Not heard: say it again in the chat": "Не почуто: повтори в чаті",
717
+ "Not heard: the chat was closed": "Не почуто: чат був закритий",
708
718
  "Not in this campaign": "Не в цій кампанії",
709
719
  "Not on this computer: the master does not search it until you add it again.": "Немає на цьому комп’ютері: майстер не шукає в ній, доки ти не додаси її знову.",
710
720
  "Not there now, as a disk taken out: its books stay known for when it is back.": "Зараз недоступно, як витягнутий диск: її книги залишаються відомими до повернення.",
@@ -806,6 +816,7 @@
806
816
  "Portal": "Портал",
807
817
  "Premise": "Передумова",
808
818
  "Preparation": "Підготовка",
819
+ "Press again to tell the master.": "Натисни ще раз, щоб сказати майстру.",
809
820
  "Previous month": "Попередній місяць",
810
821
  "Propose changes to your story": "Запропонувати зміни до історії",
811
822
  "Prose": "Розповідь",
@@ -869,9 +880,11 @@
869
880
  "Ruby": "Рубін",
870
881
  "Ruin": "Руїни",
871
882
  "Rules": "Правила",
883
+ "Rules and difficulty": "Правила та складність",
872
884
  "Ruleset": "Версія правил",
873
885
  "sad": "сумний",
874
886
  "Said to the master": "Сказано майстру",
887
+ "Said to the master: they read it as soon as you write in the chat": "Сказано майстру: він прочитає це, щойно ти напишеш у чаті",
875
888
  "Sapphire": "Сапфір",
876
889
  "Save": "Зберегти",
877
890
  "Save now": "Зберегти зараз",
@@ -881,6 +894,7 @@
881
894
  "Saved.": "Збережено.",
882
895
  "Saves": "Збереження",
883
896
  "Saves in the repository": "Збереження в репозиторії",
897
+ "Say it again": "Повторити",
884
898
  "Scene": "Сцена",
885
899
  "Scene {number}": "Сцена {number}",
886
900
  "Scroll": "Сувій",
@@ -1019,7 +1033,6 @@
1019
1033
  "The file is more than {size} MB: no package is that big.": "Файл завеликий, понад {size} МБ: пакетів такого розміру не буває.",
1020
1034
  "The folder {name} has characters npm cannot take: move it to another path.": "У назві папки {name} є символи, які npm не приймає: перемісти її в інше місце.",
1021
1035
  "The folder is on this computer and in this campaign: its books are read now, then the master searches them.": "Папка є на цьому комп’ютері й у цій кампанії: її книги зчитуються зараз, а потім майстер шукає в них.",
1022
- "The game": "Гра",
1023
1036
  "The game follows these rules from the master's next move: the sheets are worked out with them, and the master reads them.": "З наступного ходу майстра гра йде за цими правилами: аркуші персонажів перераховуються за ними, і майстер їх читає.",
1024
1037
  "The game gave no saves: reload the page.": "Гра не надала збережень: перезавантаж сторінку.",
1025
1038
  "The game gave no setup: reload the page.": "Гра не надала налаштувань: перезавантаж сторінку.",
@@ -1054,6 +1067,7 @@
1054
1067
  "The master hears it at their next call": "Майстер дізнається про неї під час наступного звернення",
1055
1068
  "The master is about to read it": "Майстер зараз це прочитає",
1056
1069
  "The master is reading it": "Майстер це читає",
1070
+ "The master is waiting for your answer: answer that first.": "Майстер чекає на твою відповідь: спершу дай її.",
1057
1071
  "The master knows: write to them in the chat, and the story begins.": "Майстер усе знає: напиши йому в чаті, і історія почнеться.",
1058
1072
  "The master makes it": "Створює майстер",
1059
1073
  "the master makes it from a few words of yours": "майстер створює його з кількох твоїх слів",
@@ -1062,7 +1076,7 @@
1062
1076
  "The master makes them with {tool}.": "Майстер створює їх за допомогою {tool}.",
1063
1077
  "the master makes them with ElevenLabs, connected to your AI app, from your ElevenLabs plan": "майстер створює їх за допомогою ElevenLabs, підключеного до твого ШІ-застосунку, за твоїм планом ElevenLabs",
1064
1078
  "The master plays in {language}, and the page is written in it too.": "Майстер грає мовою {language}, і сторінка теж нею написана.",
1065
- "The master plays in {language}; the page stays in English: Codex or Claude Code would translate it on this computer.": "Майстер грає мовою {language}; сторінка залишається англійською: Codex або Claude Code переклали б її на цьому комп’ютері.",
1079
+ "The master plays in {language}; the page stays in English: your AI app would translate it on this computer, but none can now.": "Майстер грає мовою: {language}; сторінка залишається англійською: твій ШІ-застосунок міг би перекласти її на цьому комп'ютері, але зараз жодного немає.",
1066
1080
  "The master plays in {language}; the page stays in English.": "Майстер грає мовою {language}; сторінка залишається англійською.",
1067
1081
  "The master plays in {language}; this computer is translating the page into it, in English meanwhile.": "Майстер грає мовою {language}; цей комп’ютер перекладає сторінку цією мовою, а поки що вона залишається англійською.",
1068
1082
  "the master teaches it as much as you need": "майстер навчає стільки, скільки потрібно",
@@ -1080,7 +1094,7 @@
1080
1094
  "The note's title": "Заголовок нотатки",
1081
1095
  "The order of the turns": "Порядок ходів",
1082
1096
  "the orders you give your companions, kept until you lift one": "накази, які ти даєш своїм супутникам, діють, доки ти їх не скасуєш",
1083
- "The page stays in English: Codex or Claude Code would translate it into {language} on this computer.": "Сторінка залишається англійською: Codex або Claude Code могли б перекласти її мовою «{language}» на цьому комп'ютері.",
1097
+ "The page stays in English: your AI app would translate it into {language} on this computer, but none can now.": "Сторінка залишається англійською: твій ШІ-застосунок міг би перекласти її мовою {language} на цьому комп'ютері, але зараз жодного немає.",
1084
1098
  "The page's": "Сторінки",
1085
1099
  "the page's look": "вигляд сторінки",
1086
1100
  "The pages this option names": "Сторінки, на які посилається цей параметр",
@@ -1132,7 +1146,6 @@
1132
1146
  "This campaign, as an adventure": "Ця кампанія як пригода",
1133
1147
  "This campaign's folder is a git repository: what should the engine do with it?": "Тека цієї кампанії є git-репозиторієм: що рушій має з нею робити?",
1134
1148
  "This campaign's folder is in a git repository that holds other folders too: what should the engine do with it? A push sends your commits on those folders as well.": "Тека цієї кампанії міститься в git-репозиторії, де є й інші теки. Що рушію робити з ним? Push надішле також твої коміти в цих теках.",
1135
- "This chat does not hear it by itself: copy it, then paste it in the chat.": "Чат сам цього не почує: скопіюй і встав у чат.",
1136
1149
  "this computer does not let it be read: check who may open it.": "цей комп'ютер не дозволяє його прочитати: перевір, хто має право його відкривати.",
1137
1150
  "This computer is translating the page into {language}: until then it stays in English.": "Цей комп'ютер перекладає сторінку мовою «{language}»: до того часу вона залишається англійською.",
1138
1151
  "This game's style does not pass the page's check of legibility: the page keeps its own.": "Стиль цієї гри не проходить перевірку читабельності сторінки: сторінка зберігає свій.",
@@ -1155,6 +1168,7 @@
1155
1168
  "today": "сьогодні",
1156
1169
  "Today": "Сьогодні",
1157
1170
  "Token symbols": "Символи на фішках",
1171
+ "Tokens": "Фішки",
1158
1172
  "Top bar": "Верхня панель",
1159
1173
  "Topic": "Тема",
1160
1174
  "Toss": "Кинути",
@@ -1228,7 +1242,6 @@
1228
1242
  "when you may take back a choice or a roll": "коли можна скасувати вибір або кидок",
1229
1243
  "Whenever you like · {done} of {count} done": "Коли завгодно · зроблено {done} із {count}",
1230
1244
  "Where its extension puts it.": "Де його розміщує розширення.",
1231
- "Where the page shows what the extensions add, in this campaign.": "Де сторінка показує, що додають розширення в цій кампанії.",
1232
1245
  "Where the party is": "Де зараз загін",
1233
1246
  "Wherever {name} is used, this goes back to what the game system gives:": "Скрізь, де використовується {name}, це повернеться до того, що дає ігрова система:",
1234
1247
  "whether the saves go into the repository": "чи потрапляють збереження в репозиторій",
@@ -1248,7 +1261,7 @@
1248
1261
  "With the master": "З майстром",
1249
1262
  "With the same character": "З тим самим персонажем",
1250
1263
  "With you": "З тобою",
1251
- "With your account, Codex, Claude Code or OpenCode is translating the game's rules into {language}: until then they stay in English.": "З твоїм обліковим записом Codex, Claude Code або OpenCode перекладає правила гри мовою {language}: до того часу вони залишаються англійською.",
1264
+ "With your account, your AI app is translating the game's rules into {language}: until then they stay in English.": "З твоїм обліковим записом ШІ-застосунок перекладає правила гри мовою {language}: до того часу вони залишаються англійською.",
1252
1265
  "With your own dice: what did you roll?": "Власними кубиками: що випало?",
1253
1266
  "Within": "Усередині",
1254
1267
  "Without a licence, all rights are reserved.": "Без ліцензії всі права захищені.",
@@ -1266,6 +1279,7 @@
1266
1279
  "Write your character's story": "Написати історію персонажа",
1267
1280
  "written in the campaign, but it reads as no time: the story's time stops until you choose one here": "записано в кампанії, але це не схоже на проміжок часу: час історії зупиняється, доки ти не обереш його тут",
1268
1281
  "Wry": "Іронічна",
1282
+ "Yes": "Так",
1269
1283
  "You": "Ти",
1270
1284
  "you bring one you already have, as a sheet, a file or a description, at its level": "ти приносиш уже готового персонажа: як аркуш персонажа, файл або опис, на його рівні",
1271
1285
  "You can also give a page you see a picture of your own: with its picture button, or dropped in the campaign's inbox folder for the master.": "Сторінці, яку ти бачиш, можна також дати власне зображення: кнопкою зображення або поклавши його для майстра в папку inbox кампанії.",
@@ -146,6 +146,7 @@
146
146
  "A square…": "某个格子…",
147
147
  "a story that closes each session, with a thread that comes back": "每场游戏都有完整收尾的故事,并留下一条日后回归的线索",
148
148
  "About": "关于",
149
+ "About {item}": "关于{item}",
149
150
  "above {value}": "高于{value}",
150
151
  "Active": "进行中",
151
152
  "Add": "添加",
@@ -196,6 +197,9 @@
196
197
  "Answer: {check}": "回应:{check}",
197
198
  "Answers the master: {check}": "回应主持人:{check}",
198
199
  "Antigravity makes them in your chat, from your Google plan.": "由 Antigravity 在你的对话中使用你的 Google 套餐生成。",
200
+ "Antigravity paints them on this computer, from your Google plan (a paid one: on the free plan its image tool fails)": "Antigravity 会在这台电脑上,通过你的 Google 套餐来绘制(需付费套餐:免费套餐下它的图像工具会失败)",
201
+ "Antigravity paints them on this computer, from your Google plan.": "Antigravity 会在这台电脑上,通过你的 Google 套餐来绘制。",
202
+ "Antigravity's agy does not answer on this computer, or is not signed in.": "这台电脑上的 Antigravity agy 没有响应,或者尚未登录。",
199
203
  "Arcs": "长线",
200
204
  "Around": "周围",
201
205
  "Arrows move the map, plus and minus zoom, Escape closes a place's card. The list of places below says the same.": "方向键移动地图,加号和减号缩放,Esc 关闭地点卡片。下方的地点列表内容相同。",
@@ -247,6 +251,7 @@
247
251
  "By hand": "手动",
248
252
  "Calendar": "日历",
249
253
  "Camp": "营地",
254
+ "Campaign": "战役",
250
255
  "Can't act": "无法行动",
251
256
  "Cancel": "取消",
252
257
  "Castle": "城堡",
@@ -273,6 +278,7 @@
273
278
  "Choose": "选择",
274
279
  "Choose {name}": "选择{name}",
275
280
  "Choose on the map": "在地图上选择",
281
+ "Choose on whom": "选择对象",
276
282
  "Choose whenever you like: the story goes on meanwhile. Read the pages here; ask the master anything in the chat.": "随时都可以选择,故事会继续进行。你可以在这里阅读各页内容,有任何问题都可以在聊天中问主持人。",
277
283
  "Chosen": "已选",
278
284
  "City": "城市",
@@ -308,15 +314,14 @@
308
314
  "Completed": "已完成",
309
315
  "Conditions on tokens": "棋子状态",
310
316
  "Confirm the choices": "确认选择",
317
+ "Confirm: {sentence}": "确认:{sentence}",
311
318
  "Confirmed: they are the master's now, who writes them on the sheet and tells you.": "已确认:选择已交给主持人,主持人会写到角色卡上并告诉你。",
312
319
  "Contents": "目录",
313
320
  "Continue": "继续",
314
321
  "Copied": "已复制",
315
- "Copied: paste it in the chat": "已复制:请粘贴到聊天中",
316
322
  "Copper": "铜",
317
323
  "Copy": "复制",
318
324
  "Copy {command}": "复制 {command}",
319
- "Copy did not work: select the words and copy them yourself.": "复制失败:请选中文字自行复制。",
320
325
  "count the dice {condition}": "统计{condition}的骰子数",
321
326
  "Counts only with automatic commits: while they are off, the engine puts nothing into the repository.": "仅在开启自动提交时生效:关闭期间,引擎不会向仓库写入任何内容。",
322
327
  "Creature": "生物",
@@ -353,6 +358,7 @@
353
358
  "Development notes": "关于开发",
354
359
  "Diary": "日记",
355
360
  "Dice": "骰子",
361
+ "Dice and coins": "骰子与硬币",
356
362
  "Dice and measures": "骰子与单位",
357
363
  "Dice edges": "骰子棱角",
358
364
  "Dice set": "骰子套装",
@@ -449,6 +455,7 @@
449
455
  "from here": "从这里",
450
456
  "From where": "从哪里开始",
451
457
  "from your party, as the crow flies": "距你的队伍,直线距离",
458
+ "Game": "游戏",
452
459
  "Game style": "游戏风格",
453
460
  "Game system": "游戏系统",
454
461
  "Game systems, extensions and languages come from npm: a file, a link or a folder can be added all the same.": "游戏系统、扩展和语言来自 npm;也可以通过文件、链接或文件夹添加。",
@@ -582,7 +589,7 @@
582
589
  "keep the lowest": "保留最低的",
583
590
  "Keep the repository private. It holds the log of your sessions and your user's name on this computer; with the chats in, everything you wrote to the master too.": "请将仓库设为私有。里面有你的会话记录和你在这台电脑上的用户名;如果包含聊天记录,还有你对主持人说过的一切。",
584
591
  "Keeping {what}": "维持 {what}",
585
- "Kept in this browser alone.": "仅保存在此浏览器中。",
592
+ "Kept in this browser alone: the master hears nothing of them.": "仅保存在此浏览器中,主持人对此一无所知。",
586
593
  "Key": "图例",
587
594
  "Kind": "类型",
588
595
  "Kinds": "类型",
@@ -618,6 +625,7 @@
618
625
  "Load": "负重",
619
626
  "Load more": "加载更多",
620
627
  "long marches and sleepless nights": "长途跋涉和不眠之夜",
628
+ "Look": "外观",
621
629
  "Lore": "见闻",
622
630
  "Low": "最低",
623
631
  "lowest of {count}": "{count}个中取最低",
@@ -630,6 +638,7 @@
630
638
  "Map of {place}": "{place}的地图",
631
639
  "Maps": "地图",
632
640
  "Marble": "大理石",
641
+ "Master": "主持人",
633
642
  "Master's rolls": "主持人的掷骰",
634
643
  "Master's thinking": "主持人的思考",
635
644
  "Medium": "中等",
@@ -671,6 +680,7 @@
671
680
  "Next month": "下个月",
672
681
  "next to {name}": "在{name}旁边",
673
682
  "next to you": "在你身旁",
683
+ "No": "否",
674
684
  "No campaign searches it any more, and the text RPG Engine read of its books is deleted. The books stay where they are.": "所有战役都不会再查阅它,RPG Engine 从其中的书读取的文本也会删除。书仍在原处。",
675
685
  "No documents yet: the letters, notices and pages your character finds or reads come here, to read again.": "还没有文档。你的角色找到或读过的信件、告示和书页都会收在这里,方便重读。",
676
686
  "No language matches: write its code, such as pt-BR.": "没有匹配的语言:请输入语言代码,例如 pt-BR。",
@@ -704,7 +714,7 @@
704
714
  "Not connected: the sheet as of {time}. It comes back when the game does.": "未连接:这是 {time} 的角色卡。游戏恢复连接后会自动更新。",
705
715
  "not done": "未完成",
706
716
  "Not found yet": "尚未发现",
707
- "Not heard: say it again in the chat": "未收到:请在聊天中再说一次",
717
+ "Not heard: the chat was closed": "主持人没听到:聊天已关闭",
708
718
  "Not in this campaign": "不在本战役中",
709
719
  "Not on this computer: the master does not search it until you add it again.": "不在这台电脑上:重新添加之前,主持人不会查阅它。",
710
720
  "Not there now, as a disk taken out: its books stay known for when it is back.": "当前不可用,就像拔出的磁盘:它的书会保留记录,待其恢复后可继续使用。",
@@ -806,6 +816,7 @@
806
816
  "Portal": "传送门",
807
817
  "Premise": "前提",
808
818
  "Preparation": "准备",
819
+ "Press again to tell the master.": "再按一次,告诉主持人。",
809
820
  "Previous month": "上个月",
810
821
  "Propose changes to your story": "提出故事修改建议",
811
822
  "Prose": "文风",
@@ -869,9 +880,11 @@
869
880
  "Ruby": "红宝石",
870
881
  "Ruin": "废墟",
871
882
  "Rules": "规则",
883
+ "Rules and difficulty": "规则与难度",
872
884
  "Ruleset": "规则版本",
873
885
  "sad": "悲伤",
874
886
  "Said to the master": "已告诉主持人",
887
+ "Said to the master: they read it as soon as you write in the chat": "已告诉主持人:你在聊天中一发送,主持人就会看到",
875
888
  "Sapphire": "蓝宝石",
876
889
  "Save": "保存",
877
890
  "Save now": "立即存档",
@@ -881,6 +894,7 @@
881
894
  "Saved.": "已存档。",
882
895
  "Saves": "存档",
883
896
  "Saves in the repository": "仓库中的存档",
897
+ "Say it again": "再说一遍",
884
898
  "Scene": "场景",
885
899
  "Scene {number}": "场景 {number}",
886
900
  "Scroll": "卷轴",
@@ -1019,7 +1033,6 @@
1019
1033
  "The file is more than {size} MB: no package is that big.": "文件超过 {size} MB,没有哪个包会这么大。",
1020
1034
  "The folder {name} has characters npm cannot take: move it to another path.": "文件夹 {name} 含有 npm 不支持的字符,请移到其他路径。",
1021
1035
  "The folder is on this computer and in this campaign: its books are read now, then the master searches them.": "文件夹位于这台电脑,并用于本战役:其中的书会先读取,之后由主持人查阅。",
1022
- "The game": "游戏",
1023
1036
  "The game follows these rules from the master's next move: the sheets are worked out with them, and the master reads them.": "从主持人的下一步起,游戏遵循这些规则:角色卡按它们重新计算,主持人也会阅读它们。",
1024
1037
  "The game gave no saves: reload the page.": "游戏没有给出存档:请刷新页面。",
1025
1038
  "The game gave no setup: reload the page.": "游戏没有给出设定:请刷新页面。",
@@ -1054,6 +1067,7 @@
1054
1067
  "The master hears it at their next call": "主持人会在下次行动时收到",
1055
1068
  "The master is about to read it": "主持人即将阅读",
1056
1069
  "The master is reading it": "主持人正在阅读",
1070
+ "The master is waiting for your answer: answer that first.": "主持人在等你的回答,请先回答。",
1057
1071
  "The master knows: write to them in the chat, and the story begins.": "主持人已知晓:在聊天中给主持人留言,故事就开始了。",
1058
1072
  "The master makes it": "由主持人生成",
1059
1073
  "the master makes it from a few words of yours": "主持人根据你的几句描述来创建",
@@ -1062,7 +1076,7 @@
1062
1076
  "The master makes them with {tool}.": "由主持人用 {tool} 生成。",
1063
1077
  "the master makes them with ElevenLabs, connected to your AI app, from your ElevenLabs plan": "由主持人用已连接到你的 AI 应用的 ElevenLabs 生成,使用你的 ElevenLabs 套餐",
1064
1078
  "The master plays in {language}, and the page is written in it too.": "主持人使用{language}进行游戏,页面也使用这种语言。",
1065
- "The master plays in {language}; the page stays in English: Codex or Claude Code would translate it on this computer.": "主持人使用{language}进行游戏;页面仍显示英文:Codex 或 Claude Code 可以在这台电脑上翻译页面。",
1079
+ "The master plays in {language}; the page stays in English: your AI app would translate it on this computer, but none can now.": "主持人使用{language}进行游戏,页面仍为英文:你的 AI 应用本可以在这台电脑上翻译页面,但现在无法使用。",
1066
1080
  "The master plays in {language}; the page stays in English.": "主持人使用{language}进行游戏,页面仍为英文。",
1067
1081
  "The master plays in {language}; this computer is translating the page into it, in English meanwhile.": "主持人使用{language}进行游戏;这台电脑正在将页面翻译成该语言,在此期间页面暂时显示英文。",
1068
1082
  "the master teaches it as much as you need": "主持人会按你的需要来教",
@@ -1080,7 +1094,7 @@
1080
1094
  "The note's title": "笔记标题",
1081
1095
  "The order of the turns": "回合顺序",
1082
1096
  "the orders you give your companions, kept until you lift one": "你给同伴下达的指令,撤销前一直有效",
1083
- "The page stays in English: Codex or Claude Code would translate it into {language} on this computer.": "页面仍显示英文:可由这台电脑上的 Codex 或 Claude Code 将其翻译成{language}。",
1097
+ "The page stays in English: your AI app would translate it into {language} on this computer, but none can now.": "页面仍为英文:你的 AI 应用本可以在这台电脑上将其翻译成{language},但现在无法使用。",
1084
1098
  "The page's": "页面的",
1085
1099
  "the page's look": "页面外观",
1086
1100
  "The pages this option names": "此选项所指的页面",
@@ -1132,7 +1146,6 @@
1132
1146
  "This campaign, as an adventure": "将本战役导出为冒险",
1133
1147
  "This campaign's folder is a git repository: what should the engine do with it?": "本战役的文件夹是一个 git 仓库:引擎该如何处理?",
1134
1148
  "This campaign's folder is in a git repository that holds other folders too: what should the engine do with it? A push sends your commits on those folders as well.": "这个战役的文件夹所在的 git 仓库里还有其他文件夹:引擎该如何处理?推送时,这些文件夹上的提交也会一并发送。",
1135
- "This chat does not hear it by itself: copy it, then paste it in the chat.": "聊天不会自动收到这句话:请复制后粘贴到聊天中。",
1136
1149
  "this computer does not let it be read: check who may open it.": "这台电脑不允许读取该文件:请检查打开权限。",
1137
1150
  "This computer is translating the page into {language}: until then it stays in English.": "这台电脑正在将页面翻译成{language},在此之前仍显示英文。",
1138
1151
  "This game's style does not pass the page's check of legibility: the page keeps its own.": "这个游戏的风格未通过页面的可读性检查:页面保留自己的风格。",
@@ -1155,6 +1168,7 @@
1155
1168
  "today": "今天",
1156
1169
  "Today": "今天",
1157
1170
  "Token symbols": "棋子标记",
1171
+ "Tokens": "棋子",
1158
1172
  "Top bar": "顶栏",
1159
1173
  "Topic": "话题",
1160
1174
  "Toss": "抛",
@@ -1228,7 +1242,6 @@
1228
1242
  "when you may take back a choice or a roll": "什么时候可以撤回选择或掷骰",
1229
1243
  "Whenever you like · {done} of {count} done": "随时都可以 · 已完成 {done}/{count}",
1230
1244
  "Where its extension puts it.": "该扩展放置它的位置。",
1231
- "Where the page shows what the extensions add, in this campaign.": "在本战役中,页面显示扩展所添加内容的位置。",
1232
1245
  "Where the party is": "队伍所在位置",
1233
1246
  "Wherever {name} is used, this goes back to what the game system gives:": "凡是用到{name}的地方,这些都会恢复为游戏系统的原有内容:",
1234
1247
  "whether the saves go into the repository": "存档是否放入仓库",
@@ -1248,7 +1261,7 @@
1248
1261
  "With the master": "和主持人一起",
1249
1262
  "With the same character": "沿用同一角色",
1250
1263
  "With you": "随身携带",
1251
- "With your account, Codex, Claude Code or OpenCode is translating the game's rules into {language}: until then they stay in English.": "Codex、Claude Code 或 OpenCode 正在通过你的账号将游戏规则翻译成{language},在此之前规则仍为英文。",
1264
+ "With your account, your AI app is translating the game's rules into {language}: until then they stay in English.": "你的 AI 应用正在用你的账号把游戏规则翻译成{language},在此之前规则仍为英文。",
1252
1265
  "With your own dice: what did you roll?": "用你自己的骰子:掷出了多少?",
1253
1266
  "Within": "内部",
1254
1267
  "Without a licence, all rights are reserved.": "未附许可证时,保留所有权利。",
@@ -1266,6 +1279,7 @@
1266
1279
  "Write your character's story": "撰写角色的故事",
1267
1280
  "written in the campaign, but it reads as no time: the story's time stops until you choose one here": "战役中有写,但无法识别为时间:故事时间会停止,直到你在这里选择一个",
1268
1281
  "Wry": "戏谑",
1282
+ "Yes": "是",
1269
1283
  "You": "你",
1270
1284
  "you bring one you already have, as a sheet, a file or a description, at its level": "带上你已有的角色,可以是角色卡、文件或描述,沿用其等级",
1271
1285
  "You can also give a page you see a picture of your own: with its picture button, or dropped in the campaign's inbox folder for the master.": "你也可以为看到的页面设置自己的图片:点击页面的图片按钮,或者把图片放进战役的 inbox 文件夹,交给主持人。",
@@ -224,7 +224,7 @@ export function PackagesPage({ version, tab, item, layers = [], sceneOpen = fals
224
224
  : 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-themes", children: [_jsx(CardHead, { icon: iconPath("theme"), title: _jsx("h3", { id: "packages-themes", tabIndex: -1, children: t("Themes") }), ...(themes.length === 0 ? {} : { note: String(themes.length) }) }), _jsxs("div", { class: "card-body package-body", children: [themes.length === 0 && _jsx("p", { class: "package-note", children: t("None: a theme changes the page's colours, faces and pictures, in every campaign; you find them in Add, in the catalog.") }), themes.length > 0 && (_jsxs(_Fragment, { children: [_jsx("ul", { class: "package-list", children: themes.map((theme) => {
225
225
  const entry = themeEntryOf(theme, catalog.read);
226
226
  return (_jsx(ThemeRow, { theme: theme, newer: newerVersion(entry), needs: needs(entry?.newer), shown: theme.id === themeShown, fresh: fresh.includes(`theme:${theme.id}`), state: rowState(`theme:${theme.id}`), onUpdate: () => void update(`theme:${theme.id}`, theme.id, theme.name, entry), onUninstall: () => setAsking({ kind: "uninstall", what: "theme", name: theme.name, target: `theme:${theme.id}`, at: `theme:${theme.id}` }) }, theme.id));
227
- }) }), _jsx("p", { class: "package-note", children: t("You choose one in Settings, under Game style.") })] })), _jsx(CardSaid, { said: said, at: "themes" })] })] }), _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) => {
227
+ }) }), _jsx("p", { class: "package-note", children: _jsx("a", { class: "md-link", href: sectionAddress("settings", "page"), onClick: () => window.scrollTo({ top: 0 }), children: t("You choose one in Settings, under Game style.") }) })] })), _jsx(CardSaid, { said: said, at: "themes" })] })] }), _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) => {
228
228
  const entry = languageEntryOf(language, catalog.read);
229
229
  return (_jsx(LanguageRow, { language: language, newer: newerVersion(entry), needs: needs(entry?.newer), fresh: fresh.includes(`language:${language.code}`), state: rowState(`language:${language.code}`), onUpdate: () => void update(`language:${language.code}`, language.package, languageTitle(language), entry), onUninstall: () => setAsking({
230
230
  kind: "uninstall",
@@ -99,6 +99,8 @@ const iconPaths = {
99
99
  // A painter's palette: a theme, the page's colours and faces (D-574).
100
100
  theme: "M12 3a9 9 0 1 0 0 18c1 0 1.7-.8 1.7-1.7 0-.4-.2-.8-.4-1.1-.3-.3-.4-.7-.4-1.1 0-.9.8-1.7 1.7-1.7h2.1a5.3 5.3 0 0 0 5.3-5.3C22 6.6 17.5 3 12 3Z M7.5 12h.01 M9 8h.01 M13.5 7h.01 M17 10h.01",
101
101
  window: "M3 5h18v14H3Z M3 9h18 M6 7h.01 M8.5 7h.01",
102
+ // The campaign's folder as a git repository, in Settings: a branch that joins its trunk.
103
+ branch: "M7 4a2 2 0 1 0 0 4a2 2 0 1 0 0-4Z M7 16a2 2 0 1 0 0 4a2 2 0 1 0 0-4Z M17 6.5a2 2 0 1 0 0 4a2 2 0 1 0 0-4Z M7 8v8 M17 10.5c0 3.5-4 3-10 5.5",
102
104
  more: "M6 9l6 6 6-6",
103
105
  // A thing in a list of bonds, as attuned: two rings linked.
104
106
  bond: "M9 7.5a4.5 4.5 0 1 0 0 9a4.5 4.5 0 1 0 0-9Z M15 7.5a4.5 4.5 0 1 0 0 9a4.5 4.5 0 1 0 0-9Z",
@@ -345,6 +345,7 @@ export function valueLabel(value) {
345
345
  other: t("Another tool"),
346
346
  // Names of programs, the same in every language.
347
347
  codex: "Codex",
348
+ antigravity: "Antigravity",
348
349
  elevenlabs: "ElevenLabs",
349
350
  };
350
351
  return labels[value] ?? itemLabel(value);
@@ -102,6 +102,40 @@ export function trackPlaces(counter) {
102
102
  const place = (number) => Math.min(1, Math.max(0, (number - min) / span));
103
103
  return { zero: place(0), value: place(counter.value) };
104
104
  }
105
+ /**
106
+ * What is carried, what is equipped first (D-581 (6)): each thing equipped at depth 0, in its order, out of the container it is in, so without its `inside`,
107
+ * with what it holds under it at the same depths from it; then the rest as it was. Nothing equipped, all of it is the rest.
108
+ */
109
+ export function equippedFirst(items) {
110
+ const depths = items.map((item) => item.depth ?? 0);
111
+ const taken = new Set();
112
+ const equipped = [];
113
+ items.forEach((item, index) => {
114
+ if (taken.has(index) || item.equipped !== true) {
115
+ return;
116
+ }
117
+ // The thing and what it holds: the lines after it deeper than it.
118
+ const top = depths[index];
119
+ let end = index + 1;
120
+ while (end < items.length && depths[end] > top) {
121
+ end++;
122
+ }
123
+ for (let line = index; line < end; line++) {
124
+ taken.add(line);
125
+ equipped.push(movedLine(items[line], depths[line] - top, line === index));
126
+ }
127
+ });
128
+ return { equipped, rest: items.filter((_, index) => !taken.has(index)) };
129
+ }
130
+ /** A line moved to the head of its list: at its depth there, out of its container when it is the thing moved. */
131
+ function movedLine(item, depth, head) {
132
+ const moved = { ...item };
133
+ delete moved.depth;
134
+ if (head) {
135
+ delete moved.inside;
136
+ }
137
+ return depth === 0 ? moved : { ...moved, depth };
138
+ }
105
139
  function widgetRank(value) {
106
140
  const widget = widgetOf(value);
107
141
  return widgetOrder.indexOf(widget === "progress" ? "number" : widget);
@@ -1,7 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
2
  // The widgets of a value (D-273, D-284): pips, a bar, a track centred on zero, a number's progress, chips or a list of sentences; each says its value in words
3
3
  // for a screen reader.
4
- import { ActName, usePlayerActs } from "../acts/names.js";
4
+ import { useContext } from "preact/hooks";
5
+ import { thingKey } from "../acts/acts.js";
6
+ import { ActName, ThingVerbsContext, usePlayerActs } from "../acts/names.js";
5
7
  import { numberText, t } from "../text.js";
6
8
  import { ChangedMark, isChanged } from "./changed.js";
7
9
  import { Coins } from "./coins.js";
@@ -63,12 +65,14 @@ export function Chips({ value, fields }) {
63
65
  /** A list's items, each a button that acts when the system names verbs for its field (D-495). */
64
66
  function Items({ items, field, fields }) {
65
67
  const verbs = usePlayerActs()?.actions[field];
68
+ // A thing's verbs are the same wherever the sheet has it (D-581 (D)); outside a sheet, those of the list.
69
+ const verbsOf = useContext(ThingVerbsContext);
66
70
  const acting = verbs !== undefined && verbs.length > 0;
67
71
  const sentences = items.some((item) => item.trim().split(/\s+/).length >= sentenceWords);
68
72
  return (_jsx("ul", { class: [sentences ? "notes" : "chips", acting ? "acting" : ""].filter((name) => name !== "").join(" "), children: items.map((item) => {
69
73
  const label = itemLabel(item, fields);
70
74
  // An item is only a name: one of a page of the game system the campaign changed has the asterisk after it (D-564).
71
- return (_jsxs("li", { children: [acting ? _jsx(ActName, { verbs: verbs, item: label, page: item, children: label }) : label, isChanged(item) && _jsx(ChangedMark, {})] }, item));
75
+ return (_jsxs("li", { children: [acting ? _jsx(ActName, { verbs: verbsOf?.get(thingKey(item)) ?? verbs, item: label, page: item, children: label }) : label, isChanged(item) && _jsx(ChangedMark, {})] }, item));
72
76
  }) }));
73
77
  }
74
78
  /** Someone's effects as tags, each with its end; past `most`, how many more. */
@@ -75,7 +75,7 @@ export function languageLine(code) {
75
75
  return t("The master plays in {language}; this computer is translating the page into it, in English meanwhile.", { language: name });
76
76
  }
77
77
  if (state === "unable") {
78
- return t("The master plays in {language}; the page stays in English: Codex or Claude Code would translate it on this computer.", { language: name });
78
+ return t("The master plays in {language}; the page stays in English: your AI app would translate it on this computer, but none can now.", { language: name });
79
79
  }
80
80
  return state === "ready"
81
81
  ? t("The master plays in {language}, and the page is written in it too.", { language: name })