rpg-engine 0.16.0 → 0.17.1

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 (116) hide show
  1. package/dist/adventures/source.d.ts +3 -1
  2. package/dist/adventures/source.js +31 -1
  3. package/dist/campaign/find-campaign.js +8 -4
  4. package/dist/commands/import/import.js +23 -1
  5. package/dist/commands/package/package.js +43 -9
  6. package/dist/commands/package/result.d.ts +3 -4
  7. package/dist/commands/save.d.ts +1 -1
  8. package/dist/commands/shared/books/adventure-layers.d.ts +89 -0
  9. package/dist/commands/shared/books/adventure-layers.js +201 -0
  10. package/dist/commands/shared/books/adventures.d.ts +25 -8
  11. package/dist/commands/shared/books/adventures.js +60 -22
  12. package/dist/commands/shared/characters/thoughts.d.ts +7 -4
  13. package/dist/commands/shared/characters/thoughts.js +15 -5
  14. package/dist/commands/shared/scene/scene.js +3 -1
  15. package/dist/commands/shared/sheet/sheet.d.ts +2 -0
  16. package/dist/commands/show.d.ts +6 -0
  17. package/dist/commands/show.js +16 -2
  18. package/dist/commands/thoughts.d.ts +1 -0
  19. package/dist/commands/thoughts.js +23 -15
  20. package/dist/commands/view/layers.d.ts +36 -0
  21. package/dist/commands/view/layers.js +53 -0
  22. package/dist/commands/view/memory.js +12 -6
  23. package/dist/commands/view/page.js +4 -1
  24. package/dist/commands/view/result.d.ts +8 -1
  25. package/dist/commands/view/view.d.ts +3 -0
  26. package/dist/commands/view/view.js +5 -2
  27. package/dist/commands/write/inheritance.js +1 -5
  28. package/dist/commands/write/layer.d.ts +11 -3
  29. package/dist/commands/write/layer.js +27 -7
  30. package/dist/commands/write/write.d.ts +1 -0
  31. package/dist/commands/write/write.js +6 -2
  32. package/dist/core/length.d.ts +4 -1
  33. package/dist/core/length.js +13 -2
  34. package/dist/core/text.d.ts +2 -0
  35. package/dist/core/text.js +4 -0
  36. package/dist/dashboard/api.js +18 -0
  37. package/dist/dashboard/app.js +5 -1
  38. package/dist/dashboard/guide/ar.md +3 -1
  39. package/dist/dashboard/guide/cs.md +5 -3
  40. package/dist/dashboard/guide/da.md +5 -3
  41. package/dist/dashboard/guide/de.md +3 -1
  42. package/dist/dashboard/guide/el.md +5 -3
  43. package/dist/dashboard/guide/en.md +2 -0
  44. package/dist/dashboard/guide/es.md +5 -3
  45. package/dist/dashboard/guide/fi.md +5 -3
  46. package/dist/dashboard/guide/fr.md +5 -3
  47. package/dist/dashboard/guide/he.md +4 -2
  48. package/dist/dashboard/guide/hi.md +5 -3
  49. package/dist/dashboard/guide/hu.md +5 -3
  50. package/dist/dashboard/guide/is.md +5 -3
  51. package/dist/dashboard/guide/it.md +3 -1
  52. package/dist/dashboard/guide/ja.md +3 -1
  53. package/dist/dashboard/guide/ko.md +3 -1
  54. package/dist/dashboard/guide/nb.md +5 -3
  55. package/dist/dashboard/guide/nl.md +4 -2
  56. package/dist/dashboard/guide/pl.md +5 -3
  57. package/dist/dashboard/guide/pt.md +4 -2
  58. package/dist/dashboard/guide/ro.md +5 -3
  59. package/dist/dashboard/guide/ru.md +4 -2
  60. package/dist/dashboard/guide/sv.md +5 -3
  61. package/dist/dashboard/guide/tr.md +4 -2
  62. package/dist/dashboard/guide/uk.md +5 -3
  63. package/dist/dashboard/guide/zh.md +4 -2
  64. package/dist/dashboard/i18n/ar.json +25 -0
  65. package/dist/dashboard/i18n/cs.json +25 -0
  66. package/dist/dashboard/i18n/da.json +25 -0
  67. package/dist/dashboard/i18n/de.json +25 -0
  68. package/dist/dashboard/i18n/el.json +25 -0
  69. package/dist/dashboard/i18n/es.json +25 -0
  70. package/dist/dashboard/i18n/fi.json +25 -0
  71. package/dist/dashboard/i18n/fr.json +25 -0
  72. package/dist/dashboard/i18n/he.json +25 -0
  73. package/dist/dashboard/i18n/hi.json +25 -0
  74. package/dist/dashboard/i18n/hu.json +25 -0
  75. package/dist/dashboard/i18n/is.json +25 -0
  76. package/dist/dashboard/i18n/it.json +25 -0
  77. package/dist/dashboard/i18n/ja.json +25 -0
  78. package/dist/dashboard/i18n/ko.json +25 -0
  79. package/dist/dashboard/i18n/nb.json +25 -0
  80. package/dist/dashboard/i18n/nl.json +25 -0
  81. package/dist/dashboard/i18n/pl.json +25 -0
  82. package/dist/dashboard/i18n/pt.json +25 -0
  83. package/dist/dashboard/i18n/ro.json +25 -0
  84. package/dist/dashboard/i18n/ru.json +25 -0
  85. package/dist/dashboard/i18n/sv.json +25 -0
  86. package/dist/dashboard/i18n/tr.json +25 -0
  87. package/dist/dashboard/i18n/uk.json +25 -0
  88. package/dist/dashboard/i18n/zh.json +25 -0
  89. package/dist/dashboard/packages/changes.js +111 -0
  90. package/dist/dashboard/packages/installed.js +2 -2
  91. package/dist/dashboard/packages/packages.js +12 -7
  92. package/dist/dashboard/parts/changed.js +37 -0
  93. package/dist/dashboard/parts/refusals.js +4 -0
  94. package/dist/dashboard/parts/widgets.js +3 -1
  95. package/dist/dashboard/play/choices.js +3 -2
  96. package/dist/dashboard/sheet/sheet.js +10 -7
  97. package/dist/dashboard/shell/shown.js +1 -0
  98. package/dist/dashboard/style.css +214 -1
  99. package/dist/dashboard/world/lore.js +5 -1
  100. package/dist/pages/index.d.ts +3 -3
  101. package/dist/pages/index.js +3 -3
  102. package/dist/pages/layers.d.ts +5 -3
  103. package/dist/pages/layers.js +15 -7
  104. package/dist/pages/load.d.ts +2 -0
  105. package/dist/pages/load.js +16 -3
  106. package/dist/pages/markdown.d.ts +5 -1
  107. package/dist/pages/markdown.js +13 -1
  108. package/dist/pages/write-layer.d.ts +5 -0
  109. package/dist/pages/write-layer.js +59 -5
  110. package/dist/server/dashboard/choices.d.ts +2 -0
  111. package/dist/server/dashboard/choices.js +4 -2
  112. package/dist/server/dashboard/index.js +5 -1
  113. package/dist/server/dashboard/writes.d.ts +7 -0
  114. package/dist/server/dashboard/writes.js +39 -0
  115. package/instructions/voices.md +1 -1
  116. package/package.json +1 -1
@@ -38,8 +38,10 @@
38
38
  "{month} {year}": "{month} {year}",
39
39
  "{name} {version} needs a newer RPG Engine: update it in Installed.": "{name} {version} daha yeni bir RPG Engine gerektiriyor: Yüklü bölümünden güncelle.",
40
40
  "{name} {version} was made for an older RPG Engine: look for a newer version of it.": "{name} {version}, daha eski bir RPG Engine için hazırlanmış: daha yeni bir sürümünü ara.",
41
+ "{name} brings changes to the game system that cannot be used as they are written: whoever made it has to fix them.": "{name}, oyun sistemine yazıldıkları haliyle kullanılamayan değişiklikler getiriyor: bunları hazırlayan kişinin düzeltmesi gerekiyor.",
41
42
  "{name} cannot be used, and version {version} stays: {why}": "{name} kullanılamıyor ve {version} sürümü olduğu gibi kalıyor: {why}",
42
43
  "{name} cannot be used, and was taken off this computer: {why}": "{name} kullanılamıyor ve bu bilgisayardan kaldırıldı: {why}",
44
+ "{name} changes something of the game system that is in the scene being played: try again once the scene is over.": "{name}, oyun sisteminde şu an oynanan sahnede bulunan bir şeyi değiştiriyor: sahne bitince tekrar dene.",
43
45
  "{name} does not read: it is not a package's .zip or .tgz.": "{name} okunamıyor: bir paketin .zip veya .tgz dosyası değil.",
44
46
  "{name} found out": "{name} keşfetti",
45
47
  "{name} has no choices waiting: the master prepares them when the game asks for some, as at a new level.": "{name} için bekleyen seçim yok: oyun seçim istediğinde, örneğin yeni bir seviyede, oyun yöneticisi bunları hazırlar.",
@@ -68,6 +70,7 @@
68
70
  "{name} names files with accents in another encoding: make the zip again with 7-Zip.": "{name} içindeki dosya adlarının aksanlı harfleri başka bir kodlamada: zip'i 7-Zip ile yeniden oluştur.",
69
71
  "{name} needs {needs} {version} or later, and this campaign has {has}: update it first.": "{name} için {needs} {version} veya daha yenisi gerekiyor, bu kampanyada ise {has} var: önce güncelle.",
70
72
  "{name} needs the extension {needs}: add it first.": "{name} için {needs} uzantısı gerekiyor: önce onu ekle.",
73
+ "{name} reads as the game system writes it again. The master hears of it at their next move.": "{name} yine oyun sisteminin yazdığı haliyle okunuyor. Oyun yöneticisi bunu bir sonraki hamlesinde öğrenir.",
71
74
  "{name} says it is a language, but brings code: a language is texts only.": "{name} dil olduğunu söylüyor ama kod getiriyor: dil yalnızca metinlerden oluşur.",
72
75
  "{name} unpacks to more than {size} MB, more than a package may.": "{name} açıldığında {size} MB'tan büyük oluyor, bu bir paket için izin verilenden fazla.",
73
76
  "{name} was installed, but it does not read as a game system: uninstall it.": "{name} yüklendi ama oyun sistemi olarak okunmuyor: kaldır.",
@@ -77,6 +80,7 @@
77
80
  "{name}'s sheet": "{name} karakterinin sayfası",
78
81
  "{name}'s turn": "Sıra: {name}",
79
82
  "{names} found out": "{names} keşfetti",
83
+ "{page} is no longer changed in this campaign: there is nothing to put back.": "{page} artık bu kampanyada değiştirilmiş değil: geri yüklenecek bir şey yok.",
80
84
  "{path}: in this campaign": "{path}: bu kampanyada",
81
85
  "{place}, on {map}": "{place}, {map} üzerinde",
82
86
  "{points} to level {level}": "{level}. seviyeye {points}",
@@ -147,6 +151,7 @@
147
151
  "Add, e.g. spiders": "Ekle, örneğin örümcekler",
148
152
  "Add, e.g. torture": "Ekle, örneğin işkence",
149
153
  "Add…": "Ekle…",
154
+ "added": "eklendi",
150
155
  "Added once to this computer.": "Bu bilgisayara bir kez eklenir.",
151
156
  "Adding {name} stopped halfway: add it again first.": "{name} ekleme işlemi yarıda kesildi: önce yeniden ekle.",
152
157
  "Adding…": "Ekleniyor…",
@@ -179,6 +184,7 @@
179
184
  "Arcs": "Yaylar",
180
185
  "Around": "Çevrede",
181
186
  "Arrows move the map, plus and minus zoom, Escape closes a place's card. The list of places below says the same.": "Ok tuşları haritayı kaydırır, artı ve eksi yakınlaştırıp uzaklaştırır, Esc bir yerin kartını kapatır. Aşağıdaki yer listesi aynı bilgiyi verir.",
187
+ "as the game system writes it": "oyun sisteminde yazıldığı gibi",
182
188
  "as written, and beyond: wear, spoilage, weather": "kitaptaki gibi ve ötesi: aşınma, bozulma, hava durumu",
183
189
  "as written: food and water each day, light as it burns, fatigue and encumbrance": "kitaptaki gibi: her gün yiyecek ve su, yandıkça ışık, yorgunluk ve yük",
184
190
  "Ash": "Dişbudak",
@@ -235,6 +241,9 @@
235
241
  "Change the campaign's name": "Kampanyanın adını değiştir",
236
242
  "Change the rules": "Kuralları değiştir",
237
243
  "Change what you sent": "Gönderdiğini değiştir",
244
+ "Changed in this campaign": "Bu kampanyada değiştirildi",
245
+ "Changed in this campaign: Packages lists what changed": "Bu kampanyada değiştirildi: neyin değiştiği Paketler'de listelenir",
246
+ "Changed: your character does not know what changed.": "Değiştirildi: karakterin neyin değiştiğini bilmiyor.",
238
247
  "Changing the library…": "Kütüphane değiştiriliyor…",
239
248
  "Chapter {number}": "Bölüm {number}",
240
249
  "Character voices": "Karakter sesleri",
@@ -425,6 +434,7 @@
425
434
  "Go back to this save?": "Bu kayda dönülsün mü?",
426
435
  "Go to the scene": "Sahneye git",
427
436
  "Goals": "Hedefler",
437
+ "goes away": "kalkar",
428
438
  "Gold": "Altın",
429
439
  "Granite": "Granit",
430
440
  "happy": "mutlu",
@@ -508,6 +518,8 @@
508
518
  "it asks for a password to open: save a copy without one.": "açmak için parola istiyor: parolasız bir kopyasını kaydet.",
509
519
  "It asks whether code that RPG Engine did not publish may run here. Can't see it? It is behind the browser.": "RPG Engine'in yayımlamadığı bir kodun burada çalışıp çalışamayacağını sorar. Göremiyor musun? Tarayıcının arkasında.",
510
520
  "It asks whether RPG Engine may read the documents of that folder. Can't see it? It is behind the browser.": "RPG Engine'in o klasördeki belgeleri okuyup okuyamayacağını sorar. Görmüyor musun? Tarayıcının arkasında.",
521
+ "It can be put back once the scene being played is over.": "Oynanan sahne bitince geri yüklenebilir.",
522
+ "It cannot be undone from this page: ask the master to write it again.": "Bu sayfadan geri alınamaz: oyun yöneticisinden yeniden yazmasını iste.",
511
523
  "It did not reach the game: try again.": "Oyuna ulaşmadı: tekrar dene.",
512
524
  "It does not read: install it again.": "Okunamıyor: yeniden kur.",
513
525
  "it does not read: the file is damaged, or is not what its name says.": "okunamıyor: dosya bozuk ya da adının söylediği türde değil.",
@@ -521,6 +533,7 @@
521
533
  "It's the turn of": "Sıra şunda",
522
534
  "Item": "Eşya",
523
535
  "Items": "Eşyalar",
536
+ "its description": "açıklaması",
524
537
  "Its extension puts it: {place}.": "Eklentisi bunu şuraya koyuyor: {place}.",
525
538
  "Its places, people and pages leave the world. To have it again, add it once more.": "Yerleri, kişileri ve sayfaları dünyadan çıkar. Geri istersen yeniden ekle.",
526
539
  "Ivory": "Fildişi",
@@ -659,6 +672,7 @@
659
672
  "Note": "Not",
660
673
  "Notes": "Notlar",
661
674
  "Nothing changed.": "Hiçbir şey değişmedi.",
675
+ "Nothing is put back while a scene is being played: wait for it to end.": "Sahne oynanırken hiçbir şey eski haline döndürülmez: bitmesini bekle.",
662
676
  "Nothing matches “{query}”.": "“{query}” ile eşleşen bir şey yok.",
663
677
  "Nothing to add for now.": "Şimdilik eklenecek bir şey yok.",
664
678
  "Nothing was added.": "Hiçbir şey eklenmedi.",
@@ -754,8 +768,12 @@
754
768
  "Propose changes to your story": "Hikâyen için değişiklik öner",
755
769
  "Prose": "Anlatım",
756
770
  "Pulp": "Pulp",
771
+ "Put {name} back as the game system writes it?": "{name} oyun sisteminin yazdığı haline geri döndürülsün mü?",
757
772
  "Put away": "Kaldır",
758
773
  "Put away {item}": "{item} kaldır",
774
+ "Put back": "Geri yükle",
775
+ "Put back {name}, as the game system writes it…": "{name} oyun sisteminin yazdığı haline geri yükle…",
776
+ "Put back…": "Geri yükle…",
759
777
  "Quest completed: {quest}": "Görev tamamlandı: {quest}",
760
778
  "Quest failed: {quest}": "Görev başarısız: {quest}",
761
779
  "Quest taken: {quest}": "Görev alındı: {quest}",
@@ -919,6 +937,7 @@
919
937
  "Tell us": "Bize anlat",
920
938
  "Temple": "Tapınak",
921
939
  "tense action, strong colours, each message ending on a threat or a hook": "gergin aksiyon, canlı renkler, her mesaj bir tehdit ya da merak uyandıran bir kancayla biter",
940
+ "Text rewritten": "Metin yeniden yazıldı",
922
941
  "Text, or PDFs whose text can be selected, read best; a scanned PDF is read from the pictures of its pages, on Windows only, in a few minutes.": "En iyi metinler ve metni seçilebilen PDF'ler okunur; taranmış bir PDF sayfa görüntülerinden okunur, yalnızca Windows'ta ve birkaç dakikada.",
923
942
  "The adventure is in the campaign: the master brings it into the story when you want it.": "Macera kampanyada: istediğin zaman oyun yöneticisi onu hikâyeye dahil eder.",
924
943
  "The answer did not reach the game: try again.": "Yanıt oyuna ulaşmadı: tekrar dene.",
@@ -964,6 +983,7 @@
964
983
  "the game saves at the end of each scene, and goes back to the last save only if they all die, or if the table chooses it when one dies.": "oyun her sahnenin sonunda kaydeder, yalnızca herkes ölürse ya da biri öldüğünde masa bunu seçerse son kayda döner.",
965
984
  "the game saves at the end of each scene, and goes back to the last save only if your character dies.": "oyun her sahnenin sonunda kaydeder, yalnızca karakterin ölürse son kayda döner.",
966
985
  "the game saves at the end of each scene, but never goes back: what happens stays. You can only start the campaign over.": "oyun her sahnenin sonunda kaydeder ama asla geri dönmez: olanlar kalır. Yalnızca kampanyayı baştan başlatabilirsin.",
986
+ "the game system gives": "oyun sisteminin verdiği",
967
987
  "The game system is on this computer, for a new campaign.": "Oyun sistemi bu bilgisayarda, yeni bir kampanya için.",
968
988
  "The game went back to {save}, and the chat you were playing in remembers what is gone: the master goes on only in a new one (/clear in Claude Code, a new conversation elsewhere). Once it is open, press here, or tell the master there.": "Oyun şu kayda döndü: {save}. Oynadığın sohbet ise silinenleri hâlâ hatırlıyor: oyun yöneticisi ancak yeni bir sohbette devam eder (Claude Code'da /clear, başka yerlerde yeni bir konuşma). Açtıktan sonra buraya bas ya da oyun yöneticisine orada söyle.",
969
989
  "The game's": "Oyunun",
@@ -1036,7 +1056,10 @@
1036
1056
  "There is no {name} on this computer: give its full path.": "Bu bilgisayarda {name} yok: tam yolunu yaz.",
1037
1057
  "There is no player character yet: the map starts with one.": "Henüz karakter yok: harita bir karakterle başlar.",
1038
1058
  "There is no player character yet: the sheet comes when the master writes one.": "Henüz karakter yok: karakter kağıdı, oyun yöneticisi bir karakter yazınca gelir.",
1059
+ "These pages of the game system changed for this campaign: each line has what the game system gave, then what it is now, in bold.": "Oyun sisteminin bu sayfaları bu kampanya için değişti: her satırda önce oyun sisteminin verdiği, sonra kalın yazıyla şimdiki hali var.",
1060
+ "These pages of the game system changed for this campaign.": "Oyun sisteminin bu sayfaları bu kampanya için değişti.",
1039
1061
  "This campaign does not use {name}.": "Bu kampanya {name} paketini kullanmıyor.",
1062
+ "this campaign has": "bu kampanyadaki",
1040
1063
  "This campaign has {name} {version}, already in play: an adventure in play is not updated.": "Bu kampanyada {name} {version} var ve zaten oynanıyor: oynanmakta olan bir macera güncellenmez.",
1041
1064
  "This campaign plays {name}: it stays on this computer.": "Bu kampanya {name} oynuyor: bu bilgisayarda kalır.",
1042
1065
  "This campaign uses {other}, with the same name as {name}: take it out first.": "Bu kampanya, {name} ile aynı adı taşıyan {other} paketini kullanıyor: önce onu kaldır.",
@@ -1135,6 +1158,7 @@
1135
1158
  "Where its extension puts it.": "Eklentisinin onu koyduğu yer.",
1136
1159
  "Where the page shows what the extensions add, in this campaign.": "Bu kampanyada eklentilerin eklediği şeylerin sayfada nerede görüneceği.",
1137
1160
  "Where the party is": "Grubun bulunduğu yer",
1161
+ "Wherever {name} is used, this goes back to what the game system gives:": "{name} nerede kullanılıyorsa, orada bu oyun sisteminin verdiği haline döner:",
1138
1162
  "whether the story's time runs while you are away, from one session to the next": "bir oturumdan diğerine, sen yokken hikâyenin zamanının akıp akmayacağı",
1139
1163
  "Which page": "Hangi sayfa",
1140
1164
  "Who is where": "Kim nerede",
@@ -1187,6 +1211,7 @@
1187
1211
  "Your books": "Kitapların",
1188
1212
  "Your character": "Karakterin",
1189
1213
  "your character dies only when it matters": "karakterin yalnızca önemli olduğunda ölür",
1214
+ "Your character does not know what changed in {name}: you put it back without knowing what you take away.": "Karakterin {name} içinde neyin değiştiğini bilmiyor: neyi kaldırdığını bilmeden eski haline döndürüyorsun.",
1190
1215
  "Your character has no document called “{name}”.": "Karakterinin “{name}” adında bir belgesi yok.",
1191
1216
  "Your character knows its name, and nothing more yet.": "Karakterin şimdilik yalnızca adını biliyor, başka bir şey bilmiyor.",
1192
1217
  "Your character knows no one and nothing yet: whom they meet and what they learn comes here, as the master writes it.": "Karakterin henüz kimseyi ve hiçbir şeyi tanımıyor: karşılaştığı kişiler ve öğrendikleri, oyun yöneticisi yazdıkça burada görünecek.",
@@ -38,8 +38,10 @@
38
38
  "{month} {year}": "{month} {year}",
39
39
  "{name} {version} needs a newer RPG Engine: update it in Installed.": "{name} {version} потребує новішої версії RPG Engine: онови її в розділі «Установлені».",
40
40
  "{name} {version} was made for an older RPG Engine: look for a newer version of it.": "{name} {version} створено для старішої версії RPG Engine: пошукай новішу версію.",
41
+ "{name} brings changes to the game system that cannot be used as they are written: whoever made it has to fix them.": "{name} містить зміни до ігрової системи, які не можна використати в такому вигляді: їх має виправити той, хто це створив.",
41
42
  "{name} cannot be used, and version {version} stays: {why}": "{name} не можна використовувати, тож лишається версія {version}: {why}",
42
43
  "{name} cannot be used, and was taken off this computer: {why}": "{name} не можна використовувати, і його видалено з цього комп’ютера: {why}",
44
+ "{name} changes something of the game system that is in the scene being played: try again once the scene is over.": "{name} змінює щось в ігровій системі, що є в поточній сцені: спробуй ще раз, коли сцена скінчиться.",
43
45
  "{name} does not read: it is not a package's .zip or .tgz.": "{name} не читається: це не .zip і не .tgz пакета.",
44
46
  "{name} found out": "{name} дізнається",
45
47
  "{name} has no choices waiting: the master prepares them when the game asks for some, as at a new level.": "У {name} немає вибору, що очікує: майстер готує його, коли гра цього потребує, наприклад на новому рівні.",
@@ -68,6 +70,7 @@
68
70
  "{name} names files with accents in another encoding: make the zip again with 7-Zip.": "У {name} назви файлів з діакритиками в іншому кодуванні: створи zip знову через 7-Zip.",
69
71
  "{name} needs {needs} {version} or later, and this campaign has {has}: update it first.": "{name} потребує {needs} {version} або новішої, а в цій кампанії є {has}: спершу онови.",
70
72
  "{name} needs the extension {needs}: add it first.": "{name} потребує розширення {needs}: спершу додай його.",
73
+ "{name} reads as the game system writes it again. The master hears of it at their next move.": "{name} знову читається так, як його записано в ігровій системі. Майстер дізнається про це під час свого наступного ходу.",
71
74
  "{name} says it is a language, but brings code: a language is texts only.": "{name} називається мовою, але містить код: мова — це лише тексти.",
72
75
  "{name} unpacks to more than {size} MB, more than a package may.": "Після розпакування {name} займає понад {size} МБ — більше, ніж дозволено пакету.",
73
76
  "{name} was installed, but it does not read as a game system: uninstall it.": "{name} було установлено, але його не розпізнано як ігрову систему: видали його.",
@@ -77,6 +80,7 @@
77
80
  "{name}'s sheet": "аркуш персонажа {name}",
78
81
  "{name}'s turn": "Хід: {name}",
79
82
  "{names} found out": "{names} дізнаються",
83
+ "{page} is no longer changed in this campaign: there is nothing to put back.": "{page} більше не має змін у цій кампанії: нічого повертати.",
80
84
  "{path}: in this campaign": "{path}: у цій кампанії",
81
85
  "{place}, on {map}": "{place}, на {map}",
82
86
  "{points} to level {level}": "{points} до рівня {level}",
@@ -147,6 +151,7 @@
147
151
  "Add, e.g. spiders": "Додай, наприклад, павуків",
148
152
  "Add, e.g. torture": "Додай, наприклад, катування",
149
153
  "Add…": "Додати…",
154
+ "added": "додано",
150
155
  "Added once to this computer.": "Додаються на цей комп’ютер один раз.",
151
156
  "Adding {name} stopped halfway: add it again first.": "Додавання {name} зупинилося на півдорозі: спершу додай його знову.",
152
157
  "Adding…": "Додаю…",
@@ -179,6 +184,7 @@
179
184
  "Arcs": "Арки",
180
185
  "Around": "Навколо",
181
186
  "Arrows move the map, plus and minus zoom, Escape closes a place's card. The list of places below says the same.": "Стрілки рухають мапу, плюс і мінус змінюють масштаб, Escape закриває картку місця. Список місць нижче розповідає те саме.",
187
+ "as the game system writes it": "як записано в ігровій системі",
182
188
  "as written, and beyond: wear, spoilage, weather": "за правилами й більше: знос, псування припасів, погода",
183
189
  "as written: food and water each day, light as it burns, fatigue and encumbrance": "за правилами: їжа й вода щодня, світло, поки горить, втома та навантаження",
184
190
  "Ash": "Ясен",
@@ -235,6 +241,9 @@
235
241
  "Change the campaign's name": "Змінити назву кампанії",
236
242
  "Change the rules": "Змінити правила",
237
243
  "Change what you sent": "Змінити надіслане",
244
+ "Changed in this campaign": "Змінено в цій кампанії",
245
+ "Changed in this campaign: Packages lists what changed": "Змінено в цій кампанії: що саме, видно в розділі «Пакети»",
246
+ "Changed: your character does not know what changed.": "Змінено: твій персонаж не знає, що змінилося.",
238
247
  "Changing the library…": "Змінюємо бібліотеку…",
239
248
  "Chapter {number}": "Розділ {number}",
240
249
  "Character voices": "Голоси персонажів",
@@ -425,6 +434,7 @@
425
434
  "Go back to this save?": "Повернутися до цього збереження?",
426
435
  "Go to the scene": "Перейти до сцени",
427
436
  "Goals": "Мети",
437
+ "goes away": "зникає",
428
438
  "Gold": "Золото",
429
439
  "Granite": "Граніт",
430
440
  "happy": "радісний",
@@ -508,6 +518,8 @@
508
518
  "it asks for a password to open: save a copy without one.": "для відкриття потрібен пароль: збережи копію без нього.",
509
519
  "It asks whether code that RPG Engine did not publish may run here. Can't see it? It is behind the browser.": "Воно питає, чи можна тут запускати код, який не опублікував RPG Engine. Не бачиш його? Воно за браузером.",
510
520
  "It asks whether RPG Engine may read the documents of that folder. Can't see it? It is behind the browser.": "Воно запитує, чи може RPG Engine читати документи з цієї папки. Не бачиш його? Воно за браузером.",
521
+ "It can be put back once the scene being played is over.": "Це можна повернути, коли поточна сцена скінчиться.",
522
+ "It cannot be undone from this page: ask the master to write it again.": "З цієї сторінки це не скасувати: попроси майстра написати це знову.",
511
523
  "It did not reach the game: try again.": "Не дійшло до гри: спробуй ще раз.",
512
524
  "It does not read: install it again.": "Не читається: встанови його знову.",
513
525
  "it does not read: the file is damaged, or is not what its name says.": "файл не читається: він пошкоджений або не відповідає своїй назві.",
@@ -521,6 +533,7 @@
521
533
  "It's the turn of": "Зараз ходить",
522
534
  "Item": "Предмет",
523
535
  "Items": "Предмети",
536
+ "its description": "опис",
524
537
  "Its extension puts it: {place}.": "Розширення розміщує це так: {place}.",
525
538
  "Its places, people and pages leave the world. To have it again, add it once more.": "Її місця, люди та сторінки зникають зі світу. Щоб повернути її, додай ще раз.",
526
539
  "Ivory": "Слонова кістка",
@@ -659,6 +672,7 @@
659
672
  "Note": "Нотатка",
660
673
  "Notes": "Нотатки",
661
674
  "Nothing changed.": "Нічого не змінилося.",
675
+ "Nothing is put back while a scene is being played: wait for it to end.": "Поки триває сцена, нічого не відновлюється: дочекайся її завершення.",
662
676
  "Nothing matches “{query}”.": "Нічого не знайдено за запитом «{query}».",
663
677
  "Nothing to add for now.": "Поки що нічого додавати.",
664
678
  "Nothing was added.": "Нічого не додано.",
@@ -754,8 +768,12 @@
754
768
  "Propose changes to your story": "Запропонувати зміни до історії",
755
769
  "Prose": "Розповідь",
756
770
  "Pulp": "Пульп",
771
+ "Put {name} back as the game system writes it?": "Повернути {name} до вигляду з ігрової системи?",
757
772
  "Put away": "Сховати",
758
773
  "Put away {item}": "Сховати {item}",
774
+ "Put back": "Повернути",
775
+ "Put back {name}, as the game system writes it…": "Повернути {name} до вигляду з ігрової системи…",
776
+ "Put back…": "Повернути…",
759
777
  "Quest completed: {quest}": "Завдання виконано: {quest}",
760
778
  "Quest failed: {quest}": "Завдання провалено: {quest}",
761
779
  "Quest taken: {quest}": "Завдання прийнято: {quest}",
@@ -919,6 +937,7 @@
919
937
  "Tell us": "Розкажи нам",
920
938
  "Temple": "Храм",
921
939
  "tense action, strong colours, each message ending on a threat or a hook": "напружена дія, яскраві барви, кожне повідомлення завершується загрозою або зачіпкою",
940
+ "Text rewritten": "Текст переписано",
922
941
  "Text, or PDFs whose text can be selected, read best; a scanned PDF is read from the pictures of its pages, on Windows only, in a few minutes.": "Найкраще читаються текст або PDF із виділюваним текстом; скановані PDF читаються із зображень сторінок, лише у Windows, за кілька хвилин.",
923
942
  "The adventure is in the campaign: the master brings it into the story when you want it.": "Пригода вже в кампанії: майстер введе її в історію, коли захочеш.",
924
943
  "The answer did not reach the game: try again.": "Відповідь не дійшла до гри: спробуй ще раз.",
@@ -964,6 +983,7 @@
964
983
  "the game saves at the end of each scene, and goes back to the last save only if they all die, or if the table chooses it when one dies.": "гра зберігається наприкінці кожної сцени й повертається до останнього збереження, лише якщо гинуть усі, або якщо стіл так вирішить, коли загине один.",
965
984
  "the game saves at the end of each scene, and goes back to the last save only if your character dies.": "гра зберігається наприкінці кожної сцени й повертається до останнього збереження, лише якщо твій персонаж гине.",
966
985
  "the game saves at the end of each scene, but never goes back: what happens stays. You can only start the campaign over.": "гра зберігається наприкінці кожної сцени, але ніколи не повертається назад: що сталося, те сталося. Можна лише почати кампанію знову.",
986
+ "the game system gives": "ігрова система дає",
967
987
  "The game system is on this computer, for a new campaign.": "Система гри є на цьому комп'ютері, для нової кампанії.",
968
988
  "The game went back to {save}, and the chat you were playing in remembers what is gone: the master goes on only in a new one (/clear in Claude Code, a new conversation elsewhere). Once it is open, press here, or tell the master there.": "Гру повернено до {save}, а чат, у якому йшла гра, пам'ятає те, чого вже немає: майстер продовжить лише в новому (/clear у Claude Code, нова розмова деінде). Коли він відкритий, натисни тут або скажи про це майстру там.",
969
989
  "The game's": "Гри",
@@ -1036,7 +1056,10 @@
1036
1056
  "There is no {name} on this computer: give its full path.": "На цьому комп’ютері немає {name}: вкажи повний шлях.",
1037
1057
  "There is no player character yet: the map starts with one.": "Персонажа ще немає: мапа починається з нього.",
1038
1058
  "There is no player character yet: the sheet comes when the master writes one.": "Персонажа ще немає: аркуш персонажа з'явиться, коли майстер його напише.",
1059
+ "These pages of the game system changed for this campaign: each line has what the game system gave, then what it is now, in bold.": "У цій кампанії ці сторінки ігрової системи змінилися: у кожному рядку спершу те, що було в системі, а потім жирним те, що є тепер.",
1060
+ "These pages of the game system changed for this campaign.": "У цій кампанії ці сторінки ігрової системи змінилися.",
1039
1061
  "This campaign does not use {name}.": "Ця кампанія не використовує {name}.",
1062
+ "this campaign has": "ця кампанія має",
1040
1063
  "This campaign has {name} {version}, already in play: an adventure in play is not updated.": "У цій кампанії є {name} {version}, яка вже в грі: пригода в грі не оновлюється.",
1041
1064
  "This campaign plays {name}: it stays on this computer.": "Ця кампанія грає в {name}: воно лишається на цьому комп’ютері.",
1042
1065
  "This campaign uses {other}, with the same name as {name}: take it out first.": "Ця кампанія використовує {other} з такою самою назвою, як у {name}: спершу прибери його.",
@@ -1135,6 +1158,7 @@
1135
1158
  "Where its extension puts it.": "Де його розміщує розширення.",
1136
1159
  "Where the page shows what the extensions add, in this campaign.": "Де сторінка показує, що додають розширення в цій кампанії.",
1137
1160
  "Where the party is": "Де зараз загін",
1161
+ "Wherever {name} is used, this goes back to what the game system gives:": "Скрізь, де використовується {name}, це повернеться до того, що дає ігрова система:",
1138
1162
  "whether the story's time runs while you are away, from one session to the next": "чи спливає час історії, поки тебе немає, між сесіями",
1139
1163
  "Which page": "Яка сторінка",
1140
1164
  "Who is where": "Хто де",
@@ -1187,6 +1211,7 @@
1187
1211
  "Your books": "Твої книги",
1188
1212
  "Your character": "Твій персонаж",
1189
1213
  "your character dies only when it matters": "твій персонаж гине лише тоді, коли це важливо",
1214
+ "Your character does not know what changed in {name}: you put it back without knowing what you take away.": "Твій персонаж не знає, що змінилося в {name}: ти відновлюєш це, не знаючи, що саме зникне.",
1190
1215
  "Your character has no document called “{name}”.": "У твого персонажа немає документа під назвою «{name}».",
1191
1216
  "Your character knows its name, and nothing more yet.": "Твій персонаж знає лише назву, і поки нічого більше.",
1192
1217
  "Your character knows no one and nothing yet: whom they meet and what they learn comes here, as the master writes it.": "Твій персонаж поки нікого й нічого не знає: усе, кого він зустріне і що дізнається, з'являтиметься тут, у міру того як майстер це описує.",
@@ -38,8 +38,10 @@
38
38
  "{month} {year}": "{year}年{month}",
39
39
  "{name} {version} needs a newer RPG Engine: update it in Installed.": "{name} {version} 需要更新版本的 RPG Engine,请在“已安装”中更新。",
40
40
  "{name} {version} was made for an older RPG Engine: look for a newer version of it.": "{name} {version} 是为旧版 RPG Engine 制作的,请找一个更新的版本。",
41
+ "{name} brings changes to the game system that cannot be used as they are written: whoever made it has to fix them.": "{name} 带来的游戏系统修改无法按现有写法使用,需要由作者修正。",
41
42
  "{name} cannot be used, and version {version} stays: {why}": "{name} 无法使用,将保留 {version} 版:{why}",
42
43
  "{name} cannot be used, and was taken off this computer: {why}": "{name} 无法使用,已从这台电脑上移除:{why}",
44
+ "{name} changes something of the game system that is in the scene being played: try again once the scene is over.": "{name} 修改了当前场景中正在使用的游戏系统内容,请在场景结束后再试。",
43
45
  "{name} does not read: it is not a package's .zip or .tgz.": "无法读取 {name},它不是包的 .zip 或 .tgz 文件。",
44
46
  "{name} found out": "{name}发现了",
45
47
  "{name} has no choices waiting: the master prepares them when the game asks for some, as at a new level.": "{name}暂无待选择的内容:游戏需要时,比如升级,主持人会准备好。",
@@ -68,6 +70,7 @@
68
70
  "{name} names files with accents in another encoding: make the zip again with 7-Zip.": "{name} 中带重音符号的文件名使用了其他编码,请用 7-Zip 重新制作 zip。",
69
71
  "{name} needs {needs} {version} or later, and this campaign has {has}: update it first.": "{name} 需要 {needs} {version} 或更高版本,而这个战役使用的是 {has},请先更新。",
70
72
  "{name} needs the extension {needs}: add it first.": "{name} 需要扩展 {needs},请先添加。",
73
+ "{name} reads as the game system writes it again. The master hears of it at their next move.": "{name} 已恢复为游戏系统的原文。主持人会在下一步行动时得知。",
71
74
  "{name} says it is a language, but brings code: a language is texts only.": "{name} 自称是语言包,却带有代码,而语言包只能包含文本。",
72
75
  "{name} unpacks to more than {size} MB, more than a package may.": "{name} 解压后超过 {size} MB,超出了包的大小上限。",
73
76
  "{name} was installed, but it does not read as a game system: uninstall it.": "{name} 已安装,但无法识别为游戏系统,请卸载它。",
@@ -77,6 +80,7 @@
77
80
  "{name}'s sheet": "{name}的角色卡",
78
81
  "{name}'s turn": "{name}的回合",
79
82
  "{names} found out": "{names}发现了",
83
+ "{page} is no longer changed in this campaign: there is nothing to put back.": "{page} 在本战役中已没有修改,无需恢复。",
80
84
  "{path}: in this campaign": "{path}:用于本战役",
81
85
  "{place}, on {map}": "{map}上的{place}",
82
86
  "{points} to level {level}": "距{level}级还差{points}",
@@ -147,6 +151,7 @@
147
151
  "Add, e.g. spiders": "添加,例如蜘蛛",
148
152
  "Add, e.g. torture": "添加,例如酷刑",
149
153
  "Add…": "添加…",
154
+ "added": "新增",
150
155
  "Added once to this computer.": "在这台电脑上只需添加一次。",
151
156
  "Adding {name} stopped halfway: add it again first.": "添加 {name} 时中途停止了,请先重新添加。",
152
157
  "Adding…": "正在添加…",
@@ -179,6 +184,7 @@
179
184
  "Arcs": "长线",
180
185
  "Around": "周围",
181
186
  "Arrows move the map, plus and minus zoom, Escape closes a place's card. The list of places below says the same.": "方向键移动地图,加号和减号缩放,Esc 关闭地点卡片。下方的地点列表内容相同。",
187
+ "as the game system writes it": "与游戏系统原文一致",
182
188
  "as written, and beyond: wear, spoilage, weather": "按规则并更进一步:磨损、变质、天气",
183
189
  "as written: food and water each day, light as it burns, fatigue and encumbrance": "按规则:每天消耗食物和水,光源随燃烧消耗,计算疲劳与负重",
184
190
  "Ash": "白蜡木",
@@ -235,6 +241,9 @@
235
241
  "Change the campaign's name": "修改战役名称",
236
242
  "Change the rules": "更改规则",
237
243
  "Change what you sent": "修改已发送的内容",
244
+ "Changed in this campaign": "本战役中已修改",
245
+ "Changed in this campaign: Packages lists what changed": "本战役中已修改:修改内容见“包”",
246
+ "Changed: your character does not know what changed.": "已修改:你的角色不知道改了什么。",
238
247
  "Changing the library…": "正在更改资料库…",
239
248
  "Chapter {number}": "第{number}章",
240
249
  "Character voices": "角色配音",
@@ -425,6 +434,7 @@
425
434
  "Go back to this save?": "回到这个存档?",
426
435
  "Go to the scene": "前往场景",
427
436
  "Goals": "目标",
437
+ "goes away": "将被移除",
428
438
  "Gold": "金",
429
439
  "Granite": "花岗岩",
430
440
  "happy": "开心",
@@ -508,6 +518,8 @@
508
518
  "it asks for a password to open: save a copy without one.": "打开需要密码:请另存一份无密码的副本。",
509
519
  "It asks whether code that RPG Engine did not publish may run here. Can't see it? It is behind the browser.": "它会询问是否允许运行并非 RPG Engine 发布的代码。看不到窗口?它在浏览器后面。",
510
520
  "It asks whether RPG Engine may read the documents of that folder. Can't see it? It is behind the browser.": "它会询问 RPG Engine 是否可以读取该文件夹中的文档。没看到?它在浏览器后面。",
521
+ "It can be put back once the scene being played is over.": "当前场景结束后即可恢复。",
522
+ "It cannot be undone from this page: ask the master to write it again.": "在此页面无法撤销,请让主持人重新写入。",
511
523
  "It did not reach the game: try again.": "没有发送到游戏:请重试。",
512
524
  "It does not read: install it again.": "无法读取:请重新安装。",
513
525
  "it does not read: the file is damaged, or is not what its name says.": "无法读取:文件已损坏,或与文件名不符。",
@@ -521,6 +533,7 @@
521
533
  "It's the turn of": "轮到",
522
534
  "Item": "物品",
523
535
  "Items": "物品",
536
+ "its description": "其描述",
524
537
  "Its extension puts it: {place}.": "该扩展将其放在:{place}。",
525
538
  "Its places, people and pages leave the world. To have it again, add it once more.": "它的地点、人物和页面将从世界中移除。若要恢复,请重新添加。",
526
539
  "Ivory": "象牙",
@@ -659,6 +672,7 @@
659
672
  "Note": "笔记",
660
673
  "Notes": "笔记",
661
674
  "Nothing changed.": "没有任何更改。",
675
+ "Nothing is put back while a scene is being played: wait for it to end.": "场景进行期间无法恢复任何内容,请等场景结束。",
662
676
  "Nothing matches “{query}”.": "没有与“{query}”匹配的内容。",
663
677
  "Nothing to add for now.": "暂时没有可添加的内容。",
664
678
  "Nothing was added.": "没有添加任何内容。",
@@ -754,8 +768,12 @@
754
768
  "Propose changes to your story": "提出故事修改建议",
755
769
  "Prose": "文风",
756
770
  "Pulp": "通俗",
771
+ "Put {name} back as the game system writes it?": "将 {name} 恢复为游戏系统的原文?",
757
772
  "Put away": "收起",
758
773
  "Put away {item}": "收起{item}",
774
+ "Put back": "恢复",
775
+ "Put back {name}, as the game system writes it…": "将 {name} 恢复为游戏系统的原文…",
776
+ "Put back…": "恢复…",
759
777
  "Quest completed: {quest}": "任务完成:{quest}",
760
778
  "Quest failed: {quest}": "任务失败:{quest}",
761
779
  "Quest taken: {quest}": "已接受任务:{quest}",
@@ -919,6 +937,7 @@
919
937
  "Tell us": "告诉我们",
920
938
  "Temple": "神庙",
921
939
  "tense action, strong colours, each message ending on a threat or a hook": "动作紧张,色彩浓烈,每条消息都以威胁或悬念收尾",
940
+ "Text rewritten": "文本已改写",
922
941
  "Text, or PDFs whose text can be selected, read best; a scanned PDF is read from the pictures of its pages, on Windows only, in a few minutes.": "文本或可选中文字的 PDF 读取效果最好;扫描版 PDF 会根据页面图片读取,仅限 Windows,需要几分钟。",
923
942
  "The adventure is in the campaign: the master brings it into the story when you want it.": "冒险已在战役中:你想玩的时候,主持人会把它带入故事。",
924
943
  "The answer did not reach the game: try again.": "回答没有发送到游戏:请重试。",
@@ -964,6 +983,7 @@
964
983
  "the game saves at the end of each scene, and goes back to the last save only if they all die, or if the table chooses it when one dies.": "游戏会在每个场景结束时存档,只有全员死亡,或有一人死亡而玩家们选择回档时,才会回到最近的存档。",
965
984
  "the game saves at the end of each scene, and goes back to the last save only if your character dies.": "游戏会在每个场景结束时存档,只有角色死亡时才会回到最近的存档。",
966
985
  "the game saves at the end of each scene, but never goes back: what happens stays. You can only start the campaign over.": "游戏会在每个场景结束时存档,但不会回档:发生的一切都会保留。你只能重新开始战役。",
986
+ "the game system gives": "游戏系统给出",
967
987
  "The game system is on this computer, for a new campaign.": "游戏系统已在本机,可用于新战役。",
968
988
  "The game went back to {save}, and the chat you were playing in remembers what is gone: the master goes on only in a new one (/clear in Claude Code, a new conversation elsewhere). Once it is open, press here, or tell the master there.": "游戏已回到{save},而你一直在玩的聊天仍记着已经消失的内容:主持人只能在新的聊天中继续(在 Claude Code 中用 /clear,其他地方请新建对话)。打开后,点这里,或直接在那边告诉主持人。",
969
989
  "The game's": "游戏的",
@@ -1036,7 +1056,10 @@
1036
1056
  "There is no {name} on this computer: give its full path.": "这台电脑上没有 {name},请输入完整路径。",
1037
1057
  "There is no player character yet: the map starts with one.": "还没有角色:有了角色,地图才会开始。",
1038
1058
  "There is no player character yet: the sheet comes when the master writes one.": "还没有角色:主持人写好角色后,角色卡就会出现。",
1059
+ "These pages of the game system changed for this campaign: each line has what the game system gave, then what it is now, in bold.": "本战役中,游戏系统的这些页面有所改动:每行先是系统原有的内容,再用粗体显示现在的内容。",
1060
+ "These pages of the game system changed for this campaign.": "本战役中,游戏系统的这些页面有所改动。",
1039
1061
  "This campaign does not use {name}.": "这个战役没有使用 {name}。",
1062
+ "this campaign has": "本战役设定",
1040
1063
  "This campaign has {name} {version}, already in play: an adventure in play is not updated.": "这个战役已有 {name} {version},并且正在进行,进行中的冒险不会更新。",
1041
1064
  "This campaign plays {name}: it stays on this computer.": "这个战役玩的是 {name},它会保留在这台电脑上。",
1042
1065
  "This campaign uses {other}, with the same name as {name}: take it out first.": "这个战役正在使用与 {name} 同名的 {other},请先将它移除。",
@@ -1135,6 +1158,7 @@
1135
1158
  "Where its extension puts it.": "该扩展放置它的位置。",
1136
1159
  "Where the page shows what the extensions add, in this campaign.": "在本战役中,页面显示扩展所添加内容的位置。",
1137
1160
  "Where the party is": "队伍所在位置",
1161
+ "Wherever {name} is used, this goes back to what the game system gives:": "凡是用到{name}的地方,这些都会恢复为游戏系统的原有内容:",
1138
1162
  "whether the story's time runs while you are away, from one session to the next": "从一次游戏到下一次,你不在时故事时间是否流逝",
1139
1163
  "Which page": "哪个页面",
1140
1164
  "Who is where": "谁在哪里",
@@ -1187,6 +1211,7 @@
1187
1211
  "Your books": "你的书",
1188
1212
  "Your character": "你的角色",
1189
1213
  "your character dies only when it matters": "你的角色只在关键时刻死亡",
1214
+ "Your character does not know what changed in {name}: you put it back without knowing what you take away.": "你的角色不知道{name}里改了什么:恢复时,你并不清楚会去掉哪些内容。",
1190
1215
  "Your character has no document called “{name}”.": "你的角色没有名为“{name}”的文档。",
1191
1216
  "Your character knows its name, and nothing more yet.": "你的角色只知道它的名字,其他暂时一无所知。",
1192
1217
  "Your character knows no one and nothing yet: whom they meet and what they learn comes here, as the master writes it.": "你的角色还不认识任何人,也一无所知。随着主持人的叙述,遇到的人和得知的事都会记录在这里。",
@@ -0,0 +1,111 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-runtime";
2
+ // The pages of the game system that the campaign changed (D-564), under the system's row in Installed: each with what the system gave and what the campaign
3
+ // has, the parts of its text rewritten by name, and the way to put it back as the system writes it, after asking with what goes back: the page cannot undo
4
+ // it. One changed only in what the character does not know, as a creature it never met, says so by its name, never what changed. Nothing is put back while a
5
+ // scene is played, and the list says so first. Nothing at all while the campaign changed none.
6
+ import { useEffect, useRef, useState } from "preact/hooks";
7
+ import { putPageBack } from "../api.js";
8
+ import { changedItem } from "../parts/changed.js";
9
+ import { Icon } from "../parts/icons.js";
10
+ import { fieldLabel, phraseLabel, shownText } from "../parts/labels.js";
11
+ import { InlineText } from "../parts/markdown.js";
12
+ import { Confirm } from "../settings/saves.js";
13
+ import { isolated, listText, t } from "../text.js";
14
+ import { SaidNote } from "./rows.js";
15
+ /**
16
+ * The pages the campaign changed. `open` is what the address names in the tab: named as this list is, its heading takes the focus. `sceneOpen` says a scene
17
+ * is being played, when nothing is put back. `onChanged` reads the game again, once a page is put back or was found already back.
18
+ */
19
+ export function ChangedPages({ layers, sceneOpen = false, open, onChanged }) {
20
+ const [asking, setAsking] = useState();
21
+ // One at a time: the others wait for the answer.
22
+ const [sending, setSending] = useState(false);
23
+ const [said, setSaid] = useState();
24
+ const heading = useRef(null);
25
+ const shown = layers.length > 0;
26
+ // The page just put back keeps its place for what was said of it, where the player was looking.
27
+ const gone = said !== undefined && !layers.some((layer) => layer.name === said.of.name) ? said.of : undefined;
28
+ // In the order of the names the player reads, not of the system's.
29
+ const rows = [...layers, ...(gone === undefined ? [] : [gone])].sort((one, other) => nameOf(one).localeCompare(nameOf(other)));
30
+ // Reached from the mark of a changed page: the list in sight, its heading read.
31
+ useEffect(() => {
32
+ if (open === changedItem && shown) {
33
+ heading.current?.focus({ preventScroll: true });
34
+ heading.current?.scrollIntoView({ block: "center" });
35
+ }
36
+ }, [open, shown]);
37
+ const ask = (layer) => {
38
+ // Said again in the row pressed, for who did not read it over the list: the server would say the same.
39
+ if (sceneOpen) {
40
+ setSaid({ of: layer, problem: true, text: t("It can be put back once the scene being played is over.") });
41
+ return;
42
+ }
43
+ setAsking(layer);
44
+ };
45
+ const putBack = async (layer) => {
46
+ const name = nameOf(layer);
47
+ setAsking(undefined);
48
+ setSaid(undefined);
49
+ setSending(true);
50
+ const outcome = await putPageBack(layer.name, name);
51
+ setSending(false);
52
+ setSaid(outcome.done
53
+ ? { of: layer, problem: false, text: `✓ ${t("{name} reads as the game system writes it again. The master hears of it at their next move.", { name })}` }
54
+ : { of: layer, problem: true, text: outcome.error });
55
+ // One already back leaves the list at the next reading, as one put back does.
56
+ if (outcome.done || outcome.code === "no-layer") {
57
+ onChanged();
58
+ }
59
+ };
60
+ if (rows.length === 0) {
61
+ return null;
62
+ }
63
+ return (_jsxs("section", { class: "package-changes", "aria-labelledby": shown ? "packages-changed" : undefined, children: [shown && (_jsxs(_Fragment, { children: [_jsxs("h4", { class: "eyebrow package-sub", id: "packages-changed", tabIndex: -1, ref: heading, children: [t("Changed in this campaign"), _jsx("span", { class: "package-count", children: layers.length })] }), _jsx("p", { class: "package-note", children: layers.some(isRead)
64
+ ? t("These pages of the game system changed for this campaign: each line has what the game system gave, then what it is now, in bold.")
65
+ : t("These pages of the game system changed for this campaign.") })] })), shown && sceneOpen && _jsx("p", { class: "package-note changed-waits", id: "packages-changed-waits", children: t("Nothing is put back while a scene is being played: wait for it to end.") }), _jsx("ul", { class: "changed-list", children: rows.map((layer) => (_jsx(ChangedPage, { layer: layer, gone: layer === gone, busy: sending, waits: sceneOpen, said: said?.of.name === layer.name ? said : undefined, onPutBack: () => ask(layer) }, layer.name))) }), asking !== undefined && (_jsxs(Confirm, { title: t("Put {name} back as the game system writes it?", { name: nameOf(asking) }), onClose: () => setAsking(undefined), children: [isRead(asking)
66
+ ? (_jsxs(_Fragment, { children: [_jsx("p", { children: t("Wherever {name} is used, this goes back to what the game system gives:", { name: nameOf(asking) }) }), _jsx(ChangedFields, { layer: asking, back: true })] }))
67
+ : _jsx("p", { children: t("Your character does not know what changed in {name}: you put it back without knowing what you take away.", { name: nameOf(asking) }) }), _jsx("p", { children: t("It cannot be undone from this page: ask the master to write it again.") }), _jsxs("div", { class: "confirm-buttons", children: [_jsx("button", { type: "button", class: "button", autoFocus: true, onClick: (event) => event.currentTarget.closest("dialog")?.close(), children: t("Cancel") }), _jsx("button", { type: "button", class: "button danger final", onClick: () => void putBack(asking), children: t("Put back") })] })] }))] }));
68
+ }
69
+ /**
70
+ * A page the campaign changed: its name, each field as the system gave it and as the campaign has it, the parts of its text rewritten, or that it changed in
71
+ * what the character does not know, and Put back, which waits while a scene is played. Once it is back (`gone`), only what was said of it, in its place.
72
+ */
73
+ function ChangedPage({ layer, gone, busy, waits, said, onPutBack }) {
74
+ const name = nameOf(layer);
75
+ return (_jsxs("li", { class: "changed-page", children: [!gone && (_jsx("strong", { class: "package-title", children: _jsx("bdi", { children: name }) })), !gone && (_jsxs("button", { type: "button", class: "button package-button", "aria-label": t("Put back {name}, as the game system writes it…", { name }), "aria-disabled": busy || waits, "aria-describedby": waits ? "packages-changed-waits" : undefined, onClick: () => !busy && onPutBack(), children: [_jsx(Icon, { name: "undo" }), t("Put back…")] })), !gone && !isRead(layer) && _jsx("p", { class: "package-note", children: t("Changed: your character does not know what changed.") }), !gone && isRead(layer) && _jsx(ChangedFields, { layer: layer }), _jsx(SaidNote, { said: said === undefined ? undefined : { at: layer.name, problem: said.problem, text: said.text }, focus: true })] }));
76
+ }
77
+ /**
78
+ * What changed in a page, a line each: the field's label, what the system gave, an arrow, what the campaign has in bold, and the parts of its text rewritten
79
+ * by name. `back` turns each line round, for what putting the page back does: what the campaign has, then in bold what the system gives again.
80
+ */
81
+ function ChangedFields({ layer, back = false }) {
82
+ // The names of the parts are the game's words: each keeps its own order in a page written from right to left.
83
+ const rewritten = [...(layer.introduction === true ? [t("its description")] : []), ...layer.sections.map(isolated)];
84
+ const system = t("the game system gives");
85
+ const campaign = t("this campaign has");
86
+ return (_jsxs("ul", { class: back ? "changed-fields back" : "changed-fields", children: [layer.fields.map((field) => (_jsxs("li", { children: [_jsx("span", { class: "changed-field", children: phraseLabel(fieldLabel(field.field)) }), back
87
+ ? _jsx(ChangedValues, { was: field.campaign, wasSaid: campaign, now: field.system, nowSaid: system, without: t("goes away") })
88
+ : _jsx(ChangedValues, { was: field.system, wasSaid: system, now: field.campaign, nowSaid: campaign, added: field.system === undefined })] }, field.field))), rewritten.length > 0 && (_jsxs("li", { children: [_jsx("span", { class: "changed-field", children: t("Text rewritten") }), _jsx("span", { class: "changed-values", children: back
89
+ ? (_jsxs(_Fragment, { children: [_jsx("span", { class: "changed-was", children: listText(rewritten) }), _jsxs("span", { class: "changed-to", children: [_jsx(Arrow, {}), _jsx("span", { class: "changed-now", children: t("as the game system writes it") })] })] }))
90
+ : listText(rewritten) })] }))] }));
91
+ }
92
+ /**
93
+ * A field's two values: what it was, quiet, an arrow, what it is, in bold, each said to a screen reader by whose it is. A field the campaign added has no
94
+ * value before it, and says so after; put back, it has none after, and `without` says what becomes of it. The arrow goes to a new line with what it leads to.
95
+ */
96
+ function ChangedValues({ was, wasSaid, now, nowSaid, added = false, without }) {
97
+ const is = now === undefined ? _jsx("span", { class: "changed-now", children: without }) : (_jsx("bdi", { class: "changed-now", children: _jsx(InlineText, { text: shownText(now) }) }));
98
+ return (_jsxs("span", { class: "changed-values", children: [was !== undefined && (_jsxs(_Fragment, { children: [_jsx("span", { class: "visually-hidden", children: wasSaid }), _jsx("bdi", { class: "changed-was", children: _jsx(InlineText, { text: shownText(was) }) }), _jsxs("span", { class: "changed-to", children: [_jsx(Arrow, {}), now !== undefined && _jsx("span", { class: "visually-hidden", children: nowSaid }), is] })] })), was === undefined && is, added && _jsx("span", { class: "changed-new", children: t("added") })] }));
99
+ }
100
+ /** The arrow from what a value was to what it is: it turns by itself in a page written from right to left. */
101
+ function Arrow() {
102
+ return (_jsx("span", { class: "changed-arrow", "aria-hidden": "true", children: _jsx(Icon, { name: "send" }) }));
103
+ }
104
+ /** Whether the player reads what changed in a page: one changed only in what the character does not know has its name alone. */
105
+ function isRead(layer) {
106
+ return layer.fields.length > 0 || layer.sections.length > 0 || layer.introduction === true;
107
+ }
108
+ /** A changed page's name as the player reads it: its title in the campaign's language, else its name. */
109
+ function nameOf(layer) {
110
+ return layer.title ?? layer.name;
111
+ }
@@ -10,11 +10,11 @@ import { PackageRow, pageLanguage, ReportLink, SaidNote, Trust, UninstallButton,
10
10
  * A game system here: the campaign's, chosen in its setup and locked; another, for a new campaign, which can go off this computer when npm installed it; npm's
11
11
  * newer version, to update it.
12
12
  */
13
- export function SystemRow({ system, newer, needs, fresh, state, onUpdate, onUninstall }) {
13
+ export function SystemRow({ system, newer, needs, changes, fresh, state, onUpdate, onUninstall }) {
14
14
  const target = system.package ?? system.name;
15
15
  return (_jsxs(PackageRow, { tile: "dice", tone: system.used ? undefined : "dim", name: _jsx("span", { class: "system-chip", children: system.name }), badges: _jsx(Trust, { verified: system.verified, code: system.code }), about: systemTitleLabel(system.title), meta: _jsxs(_Fragment, { children: [_jsx(VersionMeta, { version: system.version, newer: newer }), _jsx(ReportLink, { issues: system.issues, name: system.name, after: system.version !== undefined || newer !== undefined }), _jsx(OwnPageLinks, { name: system.package })] }), needs: needs, row: `system:${system.name}`, fresh: fresh, actions: _jsxs(_Fragment, { children: [newer !== undefined && _jsx(UpdateButton, { name: system.name, version: newer, busy: state.busy, onClick: () => onUpdate(target) }), system.used
16
16
  ? (_jsxs("span", { class: "package-lock", children: [_jsx(Icon, { name: "lock" }), t("In use · chosen in the setup")] }))
17
- : (_jsxs(_Fragment, { children: [_jsx("span", { class: "package-quiet", children: t("Not in this campaign") }), system.package !== undefined && _jsx(UninstallButton, { name: system.name, busy: state.busy, onClick: () => onUninstall(target) })] }))] }), children: [_jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said })] }));
17
+ : (_jsxs(_Fragment, { children: [_jsx("span", { class: "package-quiet", children: t("Not in this campaign") }), system.package !== undefined && _jsx(UninstallButton, { name: system.name, busy: state.busy, onClick: () => onUninstall(target) })] }))] }), children: [_jsx(WorkNote, { work: state.work }), _jsx(SaidNote, { said: state.said }), changes] }));
18
18
  }
19
19
  /** An adventure of the campaign: the day it came in on and its version; taken out while the story has not touched it, else part of the story. */
20
20
  export function AdventureRow({ adventure, fresh, state, onTakeOut }) {