rpg-engine 0.13.0 → 0.14.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 (110) hide show
  1. package/dist/campaign/choices.d.ts +30 -0
  2. package/dist/campaign/choices.js +84 -0
  3. package/dist/campaign/index.d.ts +4 -1
  4. package/dist/campaign/index.js +4 -1
  5. package/dist/campaign/last-choices.d.ts +6 -0
  6. package/dist/campaign/last-choices.js +34 -0
  7. package/dist/campaign/levels.d.ts +50 -0
  8. package/dist/campaign/levels.js +189 -0
  9. package/dist/campaign/settings.d.ts +35 -13
  10. package/dist/campaign/settings.js +20 -51
  11. package/dist/commands/ask.d.ts +8 -0
  12. package/dist/commands/ask.js +2 -1
  13. package/dist/commands/change/change.js +6 -4
  14. package/dist/commands/choices.d.ts +64 -0
  15. package/dist/commands/choices.js +216 -0
  16. package/dist/commands/config.d.ts +8 -1
  17. package/dist/commands/config.js +165 -21
  18. package/dist/commands/index.js +2 -0
  19. package/dist/commands/init.d.ts +1 -0
  20. package/dist/commands/init.js +8 -4
  21. package/dist/commands/rename.js +8 -3
  22. package/dist/commands/save.d.ts +1 -1
  23. package/dist/commands/shared/experience.d.ts +9 -2
  24. package/dist/commands/shared/experience.js +42 -7
  25. package/dist/commands/shared/knowledge.d.ts +2 -0
  26. package/dist/commands/shared/knowledge.js +5 -0
  27. package/dist/commands/shared/mode.js +10 -3
  28. package/dist/commands/shared/offers.d.ts +3 -1
  29. package/dist/commands/shared/offers.js +6 -1
  30. package/dist/commands/shared/rules.js +5 -1
  31. package/dist/commands/shared/time.d.ts +6 -0
  32. package/dist/commands/shared/time.js +35 -3
  33. package/dist/commands/shared/upkeep.js +3 -3
  34. package/dist/commands/shared/world.js +7 -4
  35. package/dist/commands/status.d.ts +2 -0
  36. package/dist/commands/status.js +15 -7
  37. package/dist/commands/view/view.js +10 -7
  38. package/dist/commands/write/write.js +5 -2
  39. package/dist/dashboard/address.js +8 -1
  40. package/dist/dashboard/api.js +20 -0
  41. package/dist/dashboard/app.js +18 -6
  42. package/dist/dashboard/choices.js +338 -0
  43. package/dist/dashboard/guide/ar.md +7 -7
  44. package/dist/dashboard/guide/cs.md +7 -7
  45. package/dist/dashboard/guide/da.md +8 -8
  46. package/dist/dashboard/guide/de.md +7 -7
  47. package/dist/dashboard/guide/el.md +9 -9
  48. package/dist/dashboard/guide/en.md +6 -6
  49. package/dist/dashboard/guide/es.md +7 -7
  50. package/dist/dashboard/guide/fi.md +7 -7
  51. package/dist/dashboard/guide/fr.md +7 -7
  52. package/dist/dashboard/guide/he.md +7 -7
  53. package/dist/dashboard/guide/hi.md +7 -7
  54. package/dist/dashboard/guide/hu.md +7 -7
  55. package/dist/dashboard/guide/is.md +8 -8
  56. package/dist/dashboard/guide/it.md +7 -7
  57. package/dist/dashboard/guide/ja.md +7 -7
  58. package/dist/dashboard/guide/ko.md +8 -8
  59. package/dist/dashboard/guide/nb.md +8 -8
  60. package/dist/dashboard/guide/nl.md +7 -7
  61. package/dist/dashboard/guide/pl.md +7 -7
  62. package/dist/dashboard/guide/pt.md +7 -7
  63. package/dist/dashboard/guide/ro.md +7 -7
  64. package/dist/dashboard/guide/ru.md +7 -7
  65. package/dist/dashboard/guide/sv.md +7 -7
  66. package/dist/dashboard/guide/tr.md +7 -7
  67. package/dist/dashboard/guide/uk.md +7 -7
  68. package/dist/dashboard/guide/zh.md +7 -7
  69. package/dist/dashboard/i18n/ar.json +79 -0
  70. package/dist/dashboard/i18n/cs.json +79 -0
  71. package/dist/dashboard/i18n/da.json +79 -0
  72. package/dist/dashboard/i18n/de.json +79 -0
  73. package/dist/dashboard/i18n/el.json +79 -0
  74. package/dist/dashboard/i18n/es.json +79 -0
  75. package/dist/dashboard/i18n/fi.json +79 -0
  76. package/dist/dashboard/i18n/fr.json +79 -0
  77. package/dist/dashboard/i18n/he.json +79 -0
  78. package/dist/dashboard/i18n/hi.json +79 -0
  79. package/dist/dashboard/i18n/hu.json +79 -0
  80. package/dist/dashboard/i18n/is.json +79 -0
  81. package/dist/dashboard/i18n/it.json +79 -0
  82. package/dist/dashboard/i18n/ja.json +79 -0
  83. package/dist/dashboard/i18n/ko.json +79 -0
  84. package/dist/dashboard/i18n/nb.json +79 -0
  85. package/dist/dashboard/i18n/nl.json +79 -0
  86. package/dist/dashboard/i18n/pl.json +79 -0
  87. package/dist/dashboard/i18n/pt.json +79 -0
  88. package/dist/dashboard/i18n/ro.json +79 -0
  89. package/dist/dashboard/i18n/ru.json +79 -0
  90. package/dist/dashboard/i18n/sv.json +79 -0
  91. package/dist/dashboard/i18n/tr.json +79 -0
  92. package/dist/dashboard/i18n/uk.json +79 -0
  93. package/dist/dashboard/i18n/zh.json +79 -0
  94. package/dist/dashboard/icons.js +4 -0
  95. package/dist/dashboard/labels.js +32 -0
  96. package/dist/dashboard/party.js +13 -5
  97. package/dist/dashboard/settings.js +89 -40
  98. package/dist/dashboard/setup.js +1 -1
  99. package/dist/dashboard/sheet.js +3 -2
  100. package/dist/dashboard/style.css +729 -1
  101. package/dist/dashboard/top.js +8 -4
  102. package/dist/server/dashboard/choices.d.ts +38 -0
  103. package/dist/server/dashboard/choices.js +174 -0
  104. package/dist/server/dashboard/index.js +17 -1
  105. package/dist/time/game-date.d.ts +9 -0
  106. package/dist/time/game-date.js +9 -0
  107. package/dist/time/index.d.ts +1 -1
  108. package/dist/time/index.js +1 -1
  109. package/instructions/dashboard-guide.md +1 -1
  110. package/package.json +1 -1
@@ -30,6 +30,8 @@
30
30
  "{distance} from you": "距你 {distance}",
31
31
  "{file} is ready.": "{file}已就绪。",
32
32
  "{fuel}: {count} left": "{fuel}:剩余 {count}",
33
+ "{game} every {real}": "每过{real},故事过{game}",
34
+ "{game} of the story for every {real} you are away: when you come back, at your first move the master lets it pass and tells what the world did meanwhile": "你每离开{real},故事就过去{game}:你回来后的第一步行动时,主持人会让这段时间流逝,并讲述这期间世界发生了什么",
33
35
  "{hours}h": "{hours}小时",
34
36
  "{length} across": "宽 {length}",
35
37
  "{minutes}m": "{minutes}分钟",
@@ -40,6 +42,7 @@
40
42
  "{name} cannot be used, and was taken off this computer: {why}": "{name} 无法使用,已从这台电脑上移除:{why}",
41
43
  "{name} does not read: it is not a package's .zip or .tgz.": "无法读取 {name},它不是包的 .zip 或 .tgz 文件。",
42
44
  "{name} found out": "{name}发现了",
45
+ "{name} has no choices waiting: the master prepares them when the game asks for some, as at a new level.": "{name}暂无待选择的内容:游戏需要时,比如升级,主持人会准备好。",
43
46
  "{name} has pages with names this campaign already uses: {names}": "{name} 中有页面的名称已被这个战役使用:{names}",
44
47
  "{name} has the name of the game system this campaign plays: it does not use it.": "{name} 与这个战役所玩的游戏系统同名,不会用到它。",
45
48
  "{name} holds {entry}, which is not a plain file: it is refused whole.": "{name} 中含有 {entry},它不是普通文件,整个包都会被拒绝。",
@@ -70,6 +73,7 @@
70
73
  "{name} was installed, but it does not read as a game system: uninstall it.": "{name} 已安装,但无法识别为游戏系统,请卸载它。",
71
74
  "{name}, as drawn": "{name}的画像",
72
75
  "{name}: in use": "{name}:使用中",
76
+ "{name}'s choices": "{name}的选择",
73
77
  "{name}'s sheet": "{name}的角色卡",
74
78
  "{name}'s turn": "{name}的回合",
75
79
  "{names} found out": "{names}发现了",
@@ -86,6 +90,8 @@
86
90
  "{stage}, by the weight you carry: the master knows what it brings": "{stage},由你的负重而定:具体影响,主持人心里有数",
87
91
  "{terrain} terrain": "{terrain}地形",
88
92
  "{title}: {says}": "{title}:{says}",
93
+ "{title}: choices waiting": "{title}:待选择",
94
+ "{title}: confirmed": "{title}:已确认",
89
95
  "{value} of {max}": "{value}/{max}",
90
96
  "{who} learned: {what}": "{who}得知:{what}",
91
97
  "{who} to {place}": "{who} → {place}",
@@ -108,6 +114,9 @@
108
114
  "a central threat that advances by stages, your character's own story woven in": "一个分阶段推进的核心威胁,并融入你的角色自身的故事",
109
115
  "A change counts at once, from now on: what is already in play stays as it is. The master hears of it at their next move, and of nothing you put back as it was.": "更改立即生效,从现在起适用:已在进行中的内容保持不变。主持人会在下次行动时得知更改;你改回原样的内容,主持人不会收到任何消息。",
110
116
  "a creature": "某个生物",
117
+ "A day a week": "每周一天",
118
+ "a day of the story for each day you are away: when you come back, at your first move the master lets it pass and tells what the world did meanwhile": "你每离开一天,故事就过去一天:你回来后的第一步行动时,主持人会让这段时间流逝,并讲述这期间世界发生了什么",
119
+ "a day of the story for each week you are away: when you come back, at your first move the master lets it pass and tells what the world did meanwhile": "你每离开一周,故事就过去一天:你回来后的第一步行动时,主持人会让这段时间流逝,并讲述这期间世界发生了什么",
111
120
  "A file, a link or a folder can be added all the same.": "也可以通过文件、链接或文件夹添加。",
112
121
  "A folder or a book of this computer": "本机的文件夹或书",
113
122
  "a little": "略知一二",
@@ -115,6 +124,7 @@
115
124
  "a mark on each token: you, your companions, your foes": "每个棋子上的标记:你、同伴和敌人",
116
125
  "a narrator with a half smile at the world, never at your character": "叙述者对世界带着一丝嘲讽的微笑,但绝不嘲讽你的角色",
117
126
  "A page": "单独页面",
127
+ "A roll made stays.": "已掷出的结果不能更改。",
118
128
  "a short note before big choices and when a rule slips by": "重大选择前,以及漏掉规则时,给一句简短提示",
119
129
  "A square…": "某个格子…",
120
130
  "a story that closes each session, with a thread that comes back": "每场游戏都有完整收尾的故事,并留下一条日后回归的线索",
@@ -152,6 +162,7 @@
152
162
  "always the character themselves, for everyone: much slower answers, and much more of your plan": "所有角色始终由角色本人发言:回答慢得多,套餐用量也多得多",
153
163
  "Always, from {sources}": "始终,来自{sources}",
154
164
  "Amethyst": "紫水晶",
165
+ "Ammunition and components": "弹药和材料",
155
166
  "an author the master writes like: their way of telling, never their sentences, names or places": "主持人模仿的作者:只借其叙述方式,不用其原句、人名或地名",
156
167
  "An author's name": "作者姓名",
157
168
  "and": "和",
@@ -185,6 +196,7 @@
185
196
  "Back to save {save}: what came after it is gone": "已回到存档{save}:之后的内容已消失",
186
197
  "Back to the campaign's start: everything that happened since is gone from the story, with the same character or a new one.": "回到战役开头:此后发生的一切都会从故事中消失,可以沿用同一角色,也可以换新角色。",
187
198
  "Back to the campaign's start: everything that happened since is gone from the story.": "回到战役开头:此后发生的一切都会从故事中消失。",
199
+ "Back to the choices": "回到选择",
188
200
  "Back to the party": "回到队伍",
189
201
  "Back to the start of play, after session zero.": "回到游戏开头,即零号团之后。",
190
202
  "Backstory": "背景故事",
@@ -193,6 +205,7 @@
193
205
  "below {value}": "低于{value}",
194
206
  "Better for {better} and worse for {worse}: they cancel out": "{better}更有利,{worse}更不利:两者相抵",
195
207
  "Between scenes": "场景之间",
208
+ "Between sessions": "两次游戏之间",
196
209
  "biome": "生物群系",
197
210
  "blocks": "阻挡",
198
211
  "Book": "书籍",
@@ -223,7 +236,12 @@
223
236
  "Character voices": "角色配音",
224
237
  "Checkpoint": "存档点",
225
238
  "Checks": "检定",
239
+ "Choice {n} of {count}": "第 {n} 项选择,共 {count} 项",
240
+ "Choose": "选择",
241
+ "Choose {name}": "选择{name}",
226
242
  "Choose on the map": "在地图上选择",
243
+ "Choose whenever you like: the story goes on meanwhile. Read the pages here; ask the master anything in the chat.": "随时都可以选择,故事会继续进行。你可以在这里阅读各页内容,有任何问题都可以在聊天中问主持人。",
244
+ "Chosen": "已选",
227
245
  "City": "城市",
228
246
  "Claude Code is not logged in on this computer.": "这台电脑上的 Claude Code 尚未登录。",
229
247
  "Claude Code uses an API key, which pays by the call: pictures are drawn only with the Claude login.": "Claude Code 使用的是按调用付费的 API 密钥:只有通过 Claude 账号登录才能绘制图片。",
@@ -238,7 +256,9 @@
238
256
  "Clock": "进度钟",
239
257
  "Close": "关闭",
240
258
  "Close the free roll": "关闭自由掷骰",
259
+ "Close the page": "关闭页面",
241
260
  "Close this chat.": "关闭这个聊天。",
261
+ "Clues": "线索",
242
262
  "Codex is on this computer but not logged in. To have pictures:\n1. Open a terminal: on Windows, Start, then type Terminal.\n2. Paste `codex login` and sign in with your ChatGPT account in the browser that opens.\nCodex makes them with your ChatGPT plan, never paying by the picture.": "这台电脑上已安装 Codex,但尚未登录。要使用图片:\n1. 打开终端:在 Windows 中点击开始,然后输入“终端”。\n2. 粘贴 `codex login`,并在弹出的浏览器中登录你的 ChatGPT 账号。\nCodex 使用你的 ChatGPT 套餐生成图片,无需按张付费。",
243
263
  "Codex makes them on this computer, from your ChatGPT plan.": "由 Codex 在这台电脑上使用你的 ChatGPT 套餐生成。",
244
264
  "Codex on this computer pays for each picture with an API key, which the engine never uses. To make them with your ChatGPT plan instead:\n1. Open a terminal: on Windows, Start, then type Terminal.\n2. Paste `codex login` and sign in with your ChatGPT account in the browser that opens.": "这台电脑上的 Codex 使用 API 密钥按张付费,而引擎从不使用该方式。若要改用你的 ChatGPT 套餐生成图片:\n1. 打开终端:在 Windows 中点击开始,然后输入“终端”。\n2. 粘贴 `codex login`,并在弹出的浏览器中登录你的 ChatGPT 账号。",
@@ -251,6 +271,8 @@
251
271
  "Companions": "同伴",
252
272
  "Completed": "已完成",
253
273
  "Conditions on tokens": "棋子状态",
274
+ "Confirm the choices": "确认选择",
275
+ "Confirmed: they are the master's now, who writes them on the sheet and tells you.": "已确认:选择已交给主持人,主持人会写到角色卡上并告诉你。",
254
276
  "Contents": "目录",
255
277
  "Continue": "继续",
256
278
  "Copied": "已复制",
@@ -270,6 +292,8 @@
270
292
  "Crystal ruby": "水晶红宝石",
271
293
  "Crystal sapphire": "水晶蓝宝石",
272
294
  "curious": "好奇",
295
+ "Custom": "自定义",
296
+ "Customized": "已自定义",
273
297
  "Dark": "深色",
274
298
  "Dark theme": "深色主题",
275
299
  "day {day}": "第{day}天",
@@ -297,12 +321,14 @@
297
321
  "Dice set": "骰子套装",
298
322
  "Dice sound": "骰子音效",
299
323
  "Dice: a check the master asks, or a free roll": "骰子:主持人要求的检定,或自由掷骰",
324
+ "Die {n} of {count}": "第 {n} 颗骰子,共 {count} 颗",
300
325
  "difficult": "难行",
301
326
  "Difficulty": "难度",
302
327
  "Digital": "数字",
303
328
  "disgusted": "厌恶",
304
329
  "Documents": "文档",
305
330
  "done": "已完成",
331
+ "Done": "完成",
306
332
  "Done.": "完成。",
307
333
  "door": "门",
308
334
  "Double the dice": "骰子加倍",
@@ -315,6 +341,7 @@
315
341
  "drop the lowest": "去掉最低的",
316
342
  "e.g. third person, past tense; more dialogue": "例如:第三人称,过去时;多一些对话",
317
343
  "Each campaign then turns on its own; the master searches them after the game system, citing the book and the page.": "之后每个战役会启用各自使用的文件夹;主持人会在查阅游戏系统之后再查阅这些文件夹,并注明书名和页码。",
344
+ "each part at its own level, chosen below": "每一项各用自己的等级,在下方选择",
318
345
  "each rule explained the first time, the numbers shown, a short review after fights": "每条规则首次出现时讲解,显示数字,战斗后简短回顾",
319
346
  "east": "东",
320
347
  "east-north-east": "东北偏东",
@@ -348,8 +375,10 @@
348
375
  "Failed": "已失败",
349
376
  "failed: {count}": "失败:{count}",
350
377
  "Farm": "农场",
378
+ "Fatigue": "疲劳",
351
379
  "feet and miles": "英尺和英里",
352
380
  "Fight corporate control of technology, not our right to use it.": "该对抗的是大企业对技术的控制,而不是我们使用技术的权利。",
381
+ "Fights": "战斗",
353
382
  "fights far beyond, optimized and fanatical foes, resources very scarce": "战斗强度远超常规,敌人精心配置且狂热,资源极度稀缺",
354
383
  "fights high, smart and tenacious foes, resources scarce": "战斗强度高,敌人聪明顽强,资源稀缺",
355
384
  "fights low to moderate, simple foes, resources generous": "战斗强度低到中等,敌人简单,资源宽裕",
@@ -357,8 +386,10 @@
357
386
  "fights moderate to high, sensible foes, resources standard": "战斗强度中到高,敌人理智,资源适中",
358
387
  "floor": "地面",
359
388
  "focused": "专注",
389
+ "Foes": "敌人",
360
390
  "Fold the question": "收起问题",
361
391
  "Follow {quest}": "追踪{quest}",
392
+ "Food and water": "食物和水",
362
393
  "For {name}": "给{name}",
363
394
  "for {system}: this campaign plays {campaign}": "适用于 {system}:本战役使用 {campaign}",
364
395
  "for a new campaign: this one stays in {system}": "用于新战役:当前战役仍使用 {system}",
@@ -407,12 +438,18 @@
407
438
  "highest of {count}": "{count}个中取最高",
408
439
  "Hills": "丘陵",
409
440
  "Hints": "提示",
441
+ "how cleverly and stubbornly they fight": "他们作战有多狡猾、多顽强",
410
442
  "how closely food, light, fatigue and the like follow the rules": "食物、光照、疲劳等规则的执行严格程度",
411
443
  "how companions come to your side": "同伴如何来到你身边",
412
444
  "how far ahead the master makes the world": "主持人提前构建世界的范围",
445
+ "how fast the dangers left alone move on": "放任不管的危险推进得有多快",
413
446
  "how hard the world plays": "世界有多严酷",
447
+ "how long the way takes, and getting lost": "路程要多久,以及迷路的风险",
448
+ "how much a fight costs you": "一场战斗会让你付出多少代价",
414
449
  "how much the master teaches the game, out of the story": "主持人在故事之外教授游戏的程度",
415
450
  "how much the master thinks before each answer, from the next chat": "主持人每次回答前的思考量,从下一次聊天开始生效",
451
+ "how often they happen on the way": "路上多久会遇到一次",
452
+ "how plain they are, and how many": "线索有多明显,有多少条",
416
453
  "how the dice's edges are cut": "骰子边缘的切削方式",
417
454
  "how the master builds the stories they invent; a written adventure keeps its own": "主持人如何构建自创的故事;已有的成稿冒险沿用自身结构",
418
455
  "how the master writes": "主持人的写作方式",
@@ -421,6 +458,7 @@
421
458
  "I attack at {square} with {item}.": "我用{item}攻击{square}格子。",
422
459
  "I attack myself with {item}.": "我用{item}攻击自己。",
423
460
  "I attack with {item}.": "我用{item}攻击。",
461
+ "I confirmed my choices: {title}.": "我已确认我的选择:{title}。",
424
462
  "I equip {item}.": "我装备{item}。",
425
463
  "I know it": "很熟悉",
426
464
  "I opened a new chat": "我已开启新聊天",
@@ -509,14 +547,18 @@
509
547
  "Library": "资料库",
510
548
  "Licence": "许可证",
511
549
  "Light": "浅色",
550
+ "Light sources": "光源",
512
551
  "Light theme": "浅色主题",
552
+ "Like last time": "和上次一样",
513
553
  "Like the dice": "与骰子一致",
514
554
  "Limits": "内容边界",
515
555
  "Lines": "底线",
516
556
  "List": "列表",
517
557
  "Literary": "文学",
518
558
  "live": "已连接",
559
+ "Load": "负重",
519
560
  "Load more": "加载更多",
561
+ "long marches and sleepless nights": "长途跋涉和不眠之夜",
520
562
  "Lore": "见闻",
521
563
  "Low": "最低",
522
564
  "lowest of {count}": "{count}个中取最低",
@@ -575,6 +617,7 @@
575
617
  "No language matches: write its code, such as pt-BR.": "没有匹配的语言:请输入语言代码,例如 pt-BR。",
576
618
  "No notes yet.": "还没有笔记。",
577
619
  "No one in particular": "无特定对象",
620
+ "No option here is called “{name}”.": "这里没有名为“{name}”的选项。",
578
621
  "no pictures": "不要图片",
579
622
  "No quests yet: the ones your character takes come here.": "还没有任务:你的角色接下的任务会出现在这里。",
580
623
  "No rolls in the last half hour.": "最近半小时没有掷骰。",
@@ -638,6 +681,7 @@
638
681
  "on the map": "在地图上",
639
682
  "On this computer": "本机",
640
683
  "On whom": "对象",
684
+ "Once you confirm, the master writes them on the sheet and tells you. Until then you can change everything but a roll made.": "确认后,主持人会把选择写到角色卡上并告诉你。在此之前,除已掷出的骰子外,其余都可以更改。",
641
685
  "One {die} less": "少一个{die}",
642
686
  "One change at a time: wait for the one under way, then try again.": "一次只能改一项:请等待进行中的操作完成,然后重试。",
643
687
  "One coin less": "少一枚硬币",
@@ -669,8 +713,10 @@
669
713
  "Packages": "扩展包",
670
714
  "Page": "书页",
671
715
  "page translated": "页面已翻译",
716
+ "part by part": "逐项设置",
672
717
  "Part of the story": "属于故事的一部分",
673
718
  "Party": "队伍",
719
+ "Party, choices waiting": "队伍,待选择",
674
720
  "Passage to another map": "通往其他地图的通道",
675
721
  "Path": "小径",
676
722
  "Peak": "山峰",
@@ -706,19 +752,23 @@
706
752
  "Quests": "任务",
707
753
  "quicker answers, a little less thought": "回答更快,思考略少",
708
754
  "Quit the app you play in completely, not just its window, then open it again.": "完全退出你玩游戏的应用,而不只是关闭窗口,然后重新打开。",
755
+ "Random encounters": "随机遭遇",
709
756
  "Read": "已读",
757
+ "Read {name}": "阅读{name}",
710
758
  "Read all you know": "阅读全部所知",
711
759
  "Read elsewhere": "在别处读过",
712
760
  "Read the MIT licence": "查看 MIT 许可证",
713
761
  "Reading the map…": "正在读取地图…",
714
762
  "Reading…": "阅读中…",
715
763
  "Ready buttons": "快捷按钮",
764
+ "Real time": "实时",
716
765
  "Region": "区域",
717
766
  "Regions and ways": "区域与路径",
718
767
  "Reload this page.": "重新加载此页面。",
719
768
  "Report a problem": "反馈问题",
720
769
  "Report a problem with {name}": "反馈 {name} 的问题",
721
770
  "reroll once {condition}": "{condition}时重掷一次",
771
+ "Resources": "资源",
722
772
  "rest": "休息",
723
773
  "Restore the cleared rolls": "恢复已清空的掷骰",
724
774
  "Rigor": "严谨度",
@@ -729,6 +779,8 @@
729
779
  "roll one more {condition}": "{condition}时多掷一个骰子",
730
780
  "rolled at {time}": "于 {time} 掷骰",
731
781
  "Rolled better: {why}": "掷骰占优:{why}",
782
+ "Rolled with the dashboard's dice": "用面板的骰子掷出",
783
+ "Rolled with your dice": "用你的骰子掷出",
732
784
  "Rolled worse: {why}": "掷骰吃亏:{why}",
733
785
  "Rolls": "掷骰",
734
786
  "Rose and skull": "玫瑰与骷髅",
@@ -758,7 +810,9 @@
758
810
  "Scroll": "卷轴",
759
811
  "Search": "搜索",
760
812
  "Search a language…": "搜索语言…",
813
+ "Search among {count}": "在 {count} 项中搜索",
761
814
  "Search the catalog": "搜索目录",
815
+ "Search the options of “{question}”": "搜索“{question}”的选项",
762
816
  "Search what your character knows": "搜索角色所知",
763
817
  "Sections": "分区",
764
818
  "See it in Installed": "在“已安装”中查看",
@@ -817,7 +871,9 @@
817
871
  "Steel": "钢",
818
872
  "Steps": "步骤",
819
873
  "Still open": "待定",
874
+ "Still to choose": "还差",
820
875
  "Stop following": "取消追踪",
876
+ "Stops": "停止",
821
877
  "Stories": "故事",
822
878
  "Story": "故事",
823
879
  "Suggested": "推荐",
@@ -843,6 +899,7 @@
843
899
  "Take out": "移出",
844
900
  "Take out of this campaign": "移出本战役",
845
901
  "Take out…": "移出…",
902
+ "Take-backs": "反悔",
846
903
  "Taking it out of the campaign…": "正在从战役中移除…",
847
904
  "Tales and events": "传说与事件",
848
905
  "Talk to {name}": "与{name}交谈",
@@ -864,6 +921,8 @@
864
921
  "The catalog's adventures come from GitHub: a .zip or a link can be added all the same.": "目录中的冒险来自 GitHub;也可以通过 .zip 文件或链接添加。",
865
922
  "The change did not reach the game: try again.": "更改没有发送到游戏:请重试。",
866
923
  "The checks the master asks of you come here, and the master's rolls you may see.": "主持人要你做的检定会出现在这里,你能看到的主持人掷骰也在这里。",
924
+ "The choices": "选择",
925
+ "The choices changed meanwhile: here they are as they are now.": "选项在此期间有变化,以下是最新的选项。",
867
926
  "The code of {name} does not work: {why}": "{name} 的代码无法运行:{why}",
868
927
  "the colours, faces and pictures of {name}, from the game system": "{name}的颜色、字体和图片,来自游戏系统",
869
928
  "the colours, faces and pictures of the game system": "游戏系统的颜色、字体和图片",
@@ -871,6 +930,7 @@
871
930
  "The dashboard of the campaign, beside the chat where you play.": "战役仪表盘,就在你游玩的聊天旁边。",
872
931
  "The day's upkeep": "每日消耗",
873
932
  "The days of the story": "故事中的日子",
933
+ "The dice are rolling…": "骰子正在滚动……",
874
934
  "the dice as they roll": "骰子滚动时的声音",
875
935
  "the dice decide": "由骰子决定",
876
936
  "the engine rolls them": "由引擎掷骰",
@@ -915,6 +975,7 @@
915
975
  "The master plays in {language}; the page stays in English.": "主持人使用{language}进行游戏,页面仍为英文。",
916
976
  "The master plays in {language}; this computer is translating the page into it, in English meanwhile.": "主持人使用{language}进行游戏;这台电脑正在将页面翻译成该语言,在此期间页面暂时显示英文。",
917
977
  "the master teaches it as much as you need": "主持人会按你的需要来教",
978
+ "The master writes them on the sheet": "由主持人写到角色卡上",
918
979
  "the master, always": "始终由主持人",
919
980
  "The master's roll:": "主持人的掷骰:",
920
981
  "the master's rolls for foes and the characters you meet; yours and your companions' are always in view": "主持人为敌人和你遇到的角色掷的骰;你和同伴的掷骰始终公开",
@@ -953,6 +1014,7 @@
953
1014
  "the usual balance": "常规平衡",
954
1015
  "The whole sheet": "完整角色卡",
955
1016
  "The world as it was at the start, without the player characters: a .zip to give to others.": "开局时的世界,不含玩家角色:一个可分享给他人的 .zip 文件。",
1017
+ "the world waits for you: the story picks up at the moment you left it": "世界会等你:故事从你离开的那一刻继续",
956
1018
  "Theme": "主题",
957
1019
  "There is already a game system called {system} on this computer: {name} would take its name.": "这台电脑上已有名为 {system} 的游戏系统,{name} 会占用它的名称。",
958
1020
  "There is no {name} on this computer: give its full path.": "这台电脑上没有 {name},请输入完整路径。",
@@ -974,10 +1036,12 @@
974
1036
  "This RPG Engine runs from {name}: update it the way it was installed.": "这个 RPG Engine 运行自 {name},请按安装时的方式更新。",
975
1037
  "This turn": "本回合",
976
1038
  "those you ask for": "只生成你要求的",
1039
+ "Threat clocks": "威胁进度钟",
977
1040
  "Time is up": "时间到了",
978
1041
  "Time passes: {from} → {to}": "时间流逝:{from} → {to}",
979
1042
  "Title": "标题",
980
1043
  "to": "通往",
1044
+ "To choose": "待选择",
981
1045
  "to do": "待完成",
982
1046
  "To start it over, write the campaign's name": "要重新开始,请输入战役名称",
983
1047
  "today": "今天",
@@ -990,6 +1054,8 @@
990
1054
  "Tower": "塔楼",
991
1055
  "Town": "城镇",
992
1056
  "travel": "旅行",
1057
+ "Travel": "旅行",
1058
+ "treasure, supplies and prices": "宝藏、补给和物价",
993
1059
  "Try again": "重试",
994
1060
  "Turns": "回合",
995
1061
  "Tutorial": "教程",
@@ -1035,18 +1101,25 @@
1035
1101
  "What is added to the game. The master hears of each change at their next move.": "加入游戏的内容。每次变更,主持人都会在下一步行动时得知。",
1036
1102
  "What is already in play stays as it is, and you can go back whenever you want.": "已经在进行中的内容保持不变,你随时可以改回来。",
1037
1103
  "What it wrote in the campaign stays, and comes back if you install it again.": "它在战役中写入的内容会保留,重新安装后会恢复。",
1104
+ "what lights your way, as long as it lasts": "为你照亮前路的东西,直到用完为止",
1038
1105
  "what never appears in the game": "游戏中绝不出现的内容",
1039
1106
  "What runs the game: the master's tools and this page.": "驱动游戏的部分:主持人的工具和这个页面。",
1040
1107
  "What the master asks": "主持人的提问",
1041
1108
  "what the master asks you to roll": "主持人要你掷的骰子",
1042
1109
  "what the master has explained: take one off to have it explained again": "主持人已讲解的内容:取消一项即可重新讲解",
1110
+ "what you carry, and how it slows you": "你携带的东西,以及它让你慢多少",
1043
1111
  "What you do": "你的行动",
1112
+ "what you eat and drink each day": "你每天吃喝的东西",
1044
1113
  "what your coins are made of": "你的钱币材质",
1045
1114
  "what your dice are made of": "你的骰子的材质",
1115
+ "what your weapons and powers use up": "你的武器和能力会消耗的东西",
1046
1116
  "when the game may go back": "游戏何时可以回退",
1117
+ "when you may take back a choice or a roll": "什么时候可以撤回选择或掷骰",
1118
+ "Whenever you like · {done} of {count} done": "随时都可以 · 已完成 {done}/{count}",
1047
1119
  "Where its extension puts it.": "该扩展放置它的位置。",
1048
1120
  "Where the page shows what the extensions add, in this campaign.": "在本战役中,页面显示扩展所添加内容的位置。",
1049
1121
  "Where the party is": "队伍所在位置",
1122
+ "whether the story's time runs while you are away, from one session to the next": "从一次游戏到下一次,你不在时故事时间是否流逝",
1050
1123
  "Which page": "哪个页面",
1051
1124
  "Who is where": "谁在哪里",
1052
1125
  "who rolls your character's dice": "谁来替你的角色掷骰",
@@ -1058,23 +1131,28 @@
1058
1131
  "With the same character": "沿用同一角色",
1059
1132
  "With you": "随身携带",
1060
1133
  "With your account, Codex or Claude Code is translating the game's rules into {language}: until then they stay in English.": "Codex 或 Claude Code 正在通过你的账号将游戏规则翻译成{language},在此之前规则仍为英文。",
1134
+ "With your own dice: what did you roll?": "用你自己的骰子:掷出了多少?",
1061
1135
  "Within": "内部",
1062
1136
  "Without a licence, all rights are reserved.": "未附许可证时,保留所有权利。",
1063
1137
  "World": "世界",
1064
1138
  "World map": "世界地图",
1065
1139
  "World map, your party at {place}": "世界地图,你的队伍在{place}",
1066
1140
  "worried": "担忧",
1141
+ "Write": "填写",
1067
1142
  "Write a link, an npm name or a folder first.": "请先填写链接、npm 包名或文件夹。",
1068
1143
  "Write here…": "在这里写…",
1069
1144
  "Write like": "模仿作者",
1070
1145
  "Write or paste its full path: the browser does not give a folder's. Your computer asks your yes in a window, once, and nothing in the folder is ever changed.": "输入或粘贴完整路径:浏览器无法获取文件夹的路径。电脑会在弹窗中请你确认一次,文件夹里的内容不会有任何改动。",
1146
+ "Write the number of each die, as it landed.": "请填写每颗骰子掷出的点数。",
1071
1147
  "Write the path of a folder or a book first.": "请先输入文件夹或书的路径。",
1072
1148
  "Write your character's story": "撰写角色的故事",
1149
+ "written in the campaign, but it reads as no time: the story's time stops until you choose one here": "战役中有写,但无法识别为时间:故事时间会停止,直到你在这里选择一个",
1073
1150
  "Wry": "戏谑",
1074
1151
  "You": "你",
1075
1152
  "You can also tell the master in the chat: they hear what you choose here.": "你也可以在聊天中告诉主持人:你在这里的选择,主持人也会收到。",
1076
1153
  "You can go to another page: it goes on by itself.": "你可以前往其他页面,它会自动继续。",
1077
1154
  "You carry it": "你带着它",
1155
+ "You chose {most}: take one off to choose another.": "你已选了 {most} 项:取消一项后才能再选其他的。",
1078
1156
  "You decide": "你来定",
1079
1157
  "you find the row on your sheet, or roll from the tray, as at the table": "你可以在角色卡上找到对应的一行,或从骰盘掷骰,就像在牌桌上一样",
1080
1158
  "You found out": "你发现了",
@@ -1096,6 +1174,7 @@
1096
1174
  "Your character knows nothing called “{name}”.": "你的角色不知道任何叫“{name}”的事物。",
1097
1175
  "your character never dies": "你的角色永不死亡",
1098
1176
  "Your character's story and look, in your words. It goes to the master, who writes it in your page with you.": "用你自己的话写下角色的故事和外貌。内容会发给主持人,由主持人和你一起写进页面。",
1177
+ "Your choice": "你的选择",
1099
1178
  "Your free roll, not logged:": "你的自由掷骰,不记录:",
1100
1179
  "Your game": "你的游戏",
1101
1180
  "your own wishes for how the master writes, in a few words, such as third person, past tense": "用几个词写下你希望主持人怎么写,例如第三人称、过去时",
@@ -103,6 +103,10 @@ const iconPaths = {
103
103
  better: "M12 19.5V5 M6 11l6-6 6 6",
104
104
  worse: "M12 4.5V19 M6 13l6 6 6-6",
105
105
  even: "M8 19.5V4.5 M4 8.5l4-4 4 4 M16 4.5v15 M12 15.5l4 4 4-4",
106
+ // Choices that wait for the player, as a new level: two chevrons up; one alone on a token's pip (D-556). A page to read, as an option names one.
107
+ levelUp: "M6 12.5l6-6 6 6 M6 18.5l6-6 6 6",
108
+ up: "M6 15l6-6 6 6",
109
+ read: "M6.5 3H14l4 4v14H6.5Z M14 3v4h4 M9.5 11h5 M9.5 14.5h5 M9.5 18h3",
106
110
  };
107
111
  /**
108
112
  * The engine's states on a token and in Combat (D-419), for any game: dead, one of the party at 0 (a heartbeat), anyone else down (fallen to the ground), kept
@@ -117,6 +117,11 @@ export function initials(name) {
117
117
  export function nameHue(name) {
118
118
  return [...name].reduce((hash, character) => (hash * 31 + (character.codePointAt(0) ?? 0)) % 360, 7);
119
119
  }
120
+ /** A rate of game time to real time as the engine writes it, 2h per 1d, as its two durations in the page's words; undefined for any other text. */
121
+ export function rateParts(text) {
122
+ const [game, real, ...more] = text.trim().split(/\s+per\s+/i).map(durationText);
123
+ return game === undefined || real === undefined || more.length > 0 ? undefined : { game, real };
124
+ }
120
125
  /** A duration as the engine writes it, 1h 30m or 30s, in the page's words: 1 ora 30 minuti; undefined for any other text. */
121
126
  function durationText(text) {
122
127
  const units = { d: "day", h: "hour", m: "minute", s: "second" };
@@ -190,6 +195,7 @@ export function settingLabel(name) {
190
195
  lethality: t("Lethality"),
191
196
  saves: t("Saves"),
192
197
  rigor: t("Rigor"),
198
+ "between-sessions": t("Between sessions"),
193
199
  ruleset: t("Ruleset"),
194
200
  mentor: t("Mentor"),
195
201
  learned: t("Learned"),
@@ -214,6 +220,29 @@ export function settingLabel(name) {
214
220
  };
215
221
  return labels[name] ?? phraseLabel(systemWord("words", name) ?? fieldLabel(name));
216
222
  }
223
+ /** The value custom of difficulty or rigor, each part at its own level (T-132): two phrases, as a language may give it the gender of the setting it qualifies. */
224
+ export function customLabel(setting) {
225
+ return setting === "rigor" ? t("Customized") : t("Custom");
226
+ }
227
+ /** A part of a custom difficulty or rigor, in the player's words, with what it is (T-132); undefined for one the page does not know. */
228
+ export function leveledItemLabel(item) {
229
+ const labels = {
230
+ fights: { name: t("Fights"), about: t("how much a fight costs you") },
231
+ foes: { name: t("Foes"), about: t("how cleverly and stubbornly they fight") },
232
+ clues: { name: t("Clues"), about: t("how plain they are, and how many") },
233
+ resources: { name: t("Resources"), about: t("treasure, supplies and prices") },
234
+ encounters: { name: t("Random encounters"), about: t("how often they happen on the way") },
235
+ clocks: { name: t("Threat clocks"), about: t("how fast the dangers left alone move on") },
236
+ "take-backs": { name: t("Take-backs"), about: t("when you may take back a choice or a roll") },
237
+ food: { name: t("Food and water"), about: t("what you eat and drink each day") },
238
+ light: { name: t("Light sources"), about: t("what lights your way, as long as it lasts") },
239
+ load: { name: t("Load"), about: t("what you carry, and how it slows you") },
240
+ fatigue: { name: t("Fatigue"), about: t("long marches and sleepless nights") },
241
+ travel: { name: t("Travel"), about: t("how long the way takes, and getting lost") },
242
+ supplies: { name: t("Ammunition and components"), about: t("what your weapons and powers use up") },
243
+ };
244
+ return labels[item];
245
+ }
217
246
  /** A game system's name as the top of the page shows it, in its words when it gives one, as libero for free; else its name, as 5e (D-521). */
218
247
  export function systemNameLabel(name) {
219
248
  return systemWord("words", name) ?? name;
@@ -272,6 +301,9 @@ export function valueLabel(value) {
272
301
  always: t("Everyone"),
273
302
  "behind the screen": t("Behind the screen"),
274
303
  "in view": t("In view"),
304
+ stops: t("Stops"),
305
+ "1d per 7d": t("A day a week"),
306
+ "1d per 1d": t("Real time"),
275
307
  };
276
308
  return labels[value] ?? itemLabel(value);
277
309
  }
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
2
  // The party's strip (D-276): a link to each one's sheet, with their token and the pip of their state (D-419), their name, the first counter of their line and
3
3
  // their effects; the dead go last.
4
4
  import { useContext } from "preact/hooks";
5
+ import { Icon } from "./icons.js";
5
6
  import { fieldLabel, initials, nameHue } from "./labels.js";
6
7
  import { stripCounter } from "./layout.js";
7
8
  import { WidgetsContext } from "./packages/widgets.js";
@@ -14,7 +15,8 @@ import { Bar, Effects } from "./widgets.js";
14
15
  export function sheetAddress(name) {
15
16
  return `#/party/${encodeURIComponent(name)}`;
16
17
  }
17
- export function PartyStrip({ party, chosen, scene }) {
18
+ /** The party's strip; `waiting` the titles of the choices waiting for each, by name, a mark on their token and in their link's name (D-556). */
19
+ export function PartyStrip({ party, chosen, scene, waiting = new Map() }) {
18
20
  const widgets = useContext(WidgetsContext);
19
21
  const ordered = [...party.filter((member) => !member.dead), ...party.filter((member) => member.dead)];
20
22
  return (_jsx("nav", { class: "party", "aria-label": t("Party"), children: ordered.map((member) => {
@@ -22,8 +24,14 @@ export function PartyStrip({ party, chosen, scene }) {
22
24
  const status = memberStatus(member, scene, widgets);
23
25
  const person = personShown(widgets, member.name)[0];
24
26
  // One name for a screen reader, which the drawing inside would say twice.
25
- const said = [member.name, counter === undefined ? "" : `${fieldLabel(counter.field)} ${counter.text}`, ...statusWords(status)];
26
- return (_jsxs("a", { href: sheetAddress(member.name), class: `member${member.dead ? " dead" : ""}`, "aria-current": member.name === chosen ? "page" : undefined, "aria-label": said.filter((part) => part !== "").join(", "), children: [_jsx(MemberToken, { member: member, status: status }), _jsx("span", { class: "name", children: member.name }), member.dead
27
+ const choices = waiting.get(member.name);
28
+ const said = [
29
+ member.name,
30
+ counter === undefined ? "" : `${fieldLabel(counter.field)} ${counter.text}`,
31
+ ...statusWords(status),
32
+ choices === undefined ? "" : t("{title}: choices waiting", { title: choices }),
33
+ ];
34
+ return (_jsxs("a", { href: sheetAddress(member.name), class: `member${member.dead ? " dead" : ""}`, "aria-current": member.name === chosen ? "page" : undefined, "aria-label": said.filter((part) => part !== "").join(", "), children: [_jsx(MemberToken, { member: member, status: status, choices: choices !== undefined }), _jsx("span", { class: "name", children: member.name }), member.dead
27
35
  ? _jsx("span", { class: "dead-mark", children: t("dead") })
28
36
  : person !== undefined
29
37
  ? _jsx(PersonStrip, { shown: person })
@@ -31,8 +39,8 @@ export function PartyStrip({ party, chosen, scene }) {
31
39
  }) }));
32
40
  }
33
41
  /** A party member's token with the pip of their state (D-419), in the strip and the sheet's band; never in the rolls. Their class in its tooltip (D-409). */
34
- export function MemberToken({ member, large, status }) {
35
- return (_jsx("span", { class: "token-holder", "data-tip": member.headline === undefined ? undefined : `${member.name} · ${member.headline}`, children: _jsx(Token, { member: member, large: large, side: sideOf(member.role), status: status, dying: downTint(status) }) }));
42
+ export function MemberToken({ member, large, status, choices }) {
43
+ return (_jsxs("span", { class: "token-holder", "data-tip": member.headline === undefined ? undefined : `${member.name} · ${member.headline}`, children: [_jsx(Token, { member: member, large: large, side: sideOf(member.role), status: status, dying: downTint(status) }), choices === true && (_jsx("span", { class: "choices-pip", "aria-hidden": "true", children: _jsx(Icon, { name: "up" }) }))] }));
36
44
  }
37
45
  /** The side of one of the party by their role; anyone else has none. */
38
46
  export function sideOf(role) {