rpg-engine 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/campaign/index.d.ts +1 -1
- package/dist/campaign/index.js +1 -1
- package/dist/campaign/settings.d.ts +5 -1
- package/dist/campaign/settings.js +18 -3
- package/dist/command-line.js +26 -8
- package/dist/commands/advance.js +26 -7
- package/dist/commands/ask.d.ts +6 -0
- package/dist/commands/ask.js +3 -3
- package/dist/commands/config.js +40 -10
- package/dist/commands/game-advance.d.ts +6 -0
- package/dist/commands/game-advance.js +9 -2
- package/dist/commands/game-extension-list.d.ts +27 -0
- package/dist/commands/game-extension-list.js +92 -0
- package/dist/commands/game-extensions.d.ts +27 -0
- package/dist/commands/game-extensions.js +177 -0
- package/dist/commands/game-mode.js +2 -1
- package/dist/commands/game-time.d.ts +15 -3
- package/dist/commands/game-time.js +76 -6
- package/dist/commands/game-world.js +6 -3
- package/dist/commands/index.js +2 -0
- package/dist/commands/package.d.ts +42 -0
- package/dist/commands/package.js +220 -0
- package/dist/commands/problems.js +3 -1
- package/dist/commands/scene.d.ts +3 -3
- package/dist/commands/sheet.js +7 -1
- package/dist/commands/status.d.ts +1 -0
- package/dist/commands/status.js +10 -5
- package/dist/commands/travel.js +4 -2
- package/dist/commands/validate.js +4 -2
- package/dist/commands/view.d.ts +5 -0
- package/dist/commands/view.js +3 -1
- package/dist/core/context.d.ts +34 -0
- package/dist/core/context.js +11 -0
- package/dist/core/instruction-parts.d.ts +10 -0
- package/dist/core/instruction-parts.js +32 -0
- package/dist/core/store.d.ts +2 -0
- package/dist/core/store.js +8 -0
- package/dist/dashboard/app.js +2 -1
- package/dist/dashboard/game-words.js +21 -0
- package/dist/dashboard/i18n/ar.json +7 -0
- package/dist/dashboard/i18n/cs.json +7 -0
- package/dist/dashboard/i18n/da.json +7 -0
- package/dist/dashboard/i18n/de.json +7 -0
- package/dist/dashboard/i18n/el.json +7 -0
- package/dist/dashboard/i18n/es.json +7 -0
- package/dist/dashboard/i18n/fi.json +7 -0
- package/dist/dashboard/i18n/fr.json +7 -0
- package/dist/dashboard/i18n/he.json +7 -0
- package/dist/dashboard/i18n/hi.json +7 -0
- package/dist/dashboard/i18n/hu.json +7 -0
- package/dist/dashboard/i18n/is.json +7 -0
- package/dist/dashboard/i18n/it.json +7 -0
- package/dist/dashboard/i18n/ja.json +7 -0
- package/dist/dashboard/i18n/ko.json +7 -0
- package/dist/dashboard/i18n/nb.json +7 -0
- package/dist/dashboard/i18n/nl.json +7 -0
- package/dist/dashboard/i18n/pl.json +7 -0
- package/dist/dashboard/i18n/pt.json +7 -0
- package/dist/dashboard/i18n/ro.json +7 -0
- package/dist/dashboard/i18n/ru.json +7 -0
- package/dist/dashboard/i18n/sv.json +7 -0
- package/dist/dashboard/i18n/tr.json +7 -0
- package/dist/dashboard/i18n/uk.json +7 -0
- package/dist/dashboard/i18n/zh.json +7 -0
- package/dist/dashboard/icons.js +1 -0
- package/dist/dashboard/top.js +5 -5
- package/dist/extensions/api.d.ts +73 -0
- package/dist/extensions/api.js +1 -0
- package/dist/extensions/extension.d.ts +43 -0
- package/dist/extensions/extension.js +113 -0
- package/dist/extensions/index.d.ts +3 -0
- package/dist/extensions/index.js +2 -0
- package/dist/extensions/packages.d.ts +11 -0
- package/dist/extensions/packages.js +141 -0
- package/dist/index.d.ts +1 -0
- package/dist/mcp-server.js +50 -4
- package/dist/systems/game-system.d.ts +1 -5
- package/dist/systems/game-system.js +6 -31
- package/dist/systems/index.d.ts +1 -1
- package/dist/time/calendar.d.ts +36 -0
- package/dist/time/calendar.js +84 -0
- package/dist/time/index.d.ts +1 -0
- package/dist/time/index.js +2 -1
- package/package.json +2 -3
- package/systems/5e/instructions/play.md +1 -0
- package/systems/5e/system.yaml +2 -0
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"{count} things": "{count} ting",
|
|
10
10
|
"{count} things that happened": "{count} ting som skjedde",
|
|
11
11
|
"{date} in the game": "{date} i spillet",
|
|
12
|
+
"{date}, {season}": "{date}, {season}",
|
|
13
|
+
"{day} {month}": "{day}. {month}",
|
|
14
|
+
"{day} {month} {year}": "{day}. {month} {year}",
|
|
12
15
|
"{days}d": "{days} d",
|
|
13
16
|
"{dice}, free roll, not logged": "{dice}, fritt kast, ikke loggført",
|
|
14
17
|
"{distance} {direction}": "{distance} mot {direction}",
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
"at {place}": "ved {place}",
|
|
87
90
|
"At hand": "For hånden",
|
|
88
91
|
"at least {points} at level {level}": "minst {points} på nivå {level}",
|
|
92
|
+
"autumn": "høst",
|
|
89
93
|
"Back": "Tilbake",
|
|
90
94
|
"Back here if your character dies": "Du går tilbake hit hvis karakteren din dør",
|
|
91
95
|
"Back to {save}.": "Tilbake til {save}.",
|
|
@@ -494,6 +498,7 @@
|
|
|
494
498
|
"south-south-east": "sør-sørøst",
|
|
495
499
|
"south-south-west": "sør-sørvest",
|
|
496
500
|
"south-west": "sørvest",
|
|
501
|
+
"spring": "vår",
|
|
497
502
|
"Start over": "Start på nytt",
|
|
498
503
|
"Start the campaign over?": "Starte kampanjen på nytt?",
|
|
499
504
|
"Start the campaign over…": "Start kampanjen på nytt …",
|
|
@@ -503,6 +508,7 @@
|
|
|
503
508
|
"Stories": "Historier",
|
|
504
509
|
"Story": "Historie",
|
|
505
510
|
"Suggested": "Foreslått",
|
|
511
|
+
"summer": "sommer",
|
|
506
512
|
"Support {product}": "Støtt {product}",
|
|
507
513
|
"surprised": "overrasket",
|
|
508
514
|
"Swamp": "Myr",
|
|
@@ -629,6 +635,7 @@
|
|
|
629
635
|
"Where the party is": "Hvor gruppen er",
|
|
630
636
|
"Who is where": "Hvem er hvor",
|
|
631
637
|
"who rolls your character's dice": "hvem som kaster terningene til karakteren din",
|
|
638
|
+
"winter": "vinter",
|
|
632
639
|
"With a new character": "Med en ny karakter",
|
|
633
640
|
"With the same character": "Med samme karakter",
|
|
634
641
|
"Within": "Innenfor",
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"{count} things": "{count} dingen",
|
|
10
10
|
"{count} things that happened": "{count} gebeurtenissen",
|
|
11
11
|
"{date} in the game": "{date} in het spel",
|
|
12
|
+
"{date}, {season}": "{date}, {season}",
|
|
13
|
+
"{day} {month}": "{day} {month}",
|
|
14
|
+
"{day} {month} {year}": "{day} {month} {year}",
|
|
12
15
|
"{days}d": "{days}d",
|
|
13
16
|
"{dice}, free roll, not logged": "{dice}, vrije worp, niet vastgelegd",
|
|
14
17
|
"{distance} {direction}": "{distance} richting {direction}",
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
"at {place}": "bij {place}",
|
|
87
90
|
"At hand": "Binnen handbereik",
|
|
88
91
|
"at least {points} at level {level}": "minstens {points} op niveau {level}",
|
|
92
|
+
"autumn": "herfst",
|
|
89
93
|
"Back": "Terug",
|
|
90
94
|
"Back here if your character dies": "Hierheen terug als je personage sterft",
|
|
91
95
|
"Back to {save}.": "Terug naar {save}.",
|
|
@@ -494,6 +498,7 @@
|
|
|
494
498
|
"south-south-east": "zuid-zuid-oost",
|
|
495
499
|
"south-south-west": "zuid-zuid-west",
|
|
496
500
|
"south-west": "zuid-west",
|
|
501
|
+
"spring": "lente",
|
|
497
502
|
"Start over": "Opnieuw beginnen",
|
|
498
503
|
"Start the campaign over?": "De campagne opnieuw beginnen?",
|
|
499
504
|
"Start the campaign over…": "De campagne opnieuw beginnen…",
|
|
@@ -503,6 +508,7 @@
|
|
|
503
508
|
"Stories": "Verhalen",
|
|
504
509
|
"Story": "Verhaal",
|
|
505
510
|
"Suggested": "Aanbevolen",
|
|
511
|
+
"summer": "zomer",
|
|
506
512
|
"Support {product}": "Steun {product}",
|
|
507
513
|
"surprised": "verrast",
|
|
508
514
|
"Swamp": "Moeras",
|
|
@@ -629,6 +635,7 @@
|
|
|
629
635
|
"Where the party is": "Waar de groep is",
|
|
630
636
|
"Who is where": "Wie waar is",
|
|
631
637
|
"who rolls your character's dice": "wie de dobbelstenen van je personage gooit",
|
|
638
|
+
"winter": "winter",
|
|
632
639
|
"With a new character": "Met een nieuw personage",
|
|
633
640
|
"With the same character": "Met hetzelfde personage",
|
|
634
641
|
"Within": "Binnen",
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"{count} things": "{count} rzeczy",
|
|
10
10
|
"{count} things that happened": "{count} wydarzeń",
|
|
11
11
|
"{date} in the game": "{date} w grze",
|
|
12
|
+
"{date}, {season}": "{date}, {season}",
|
|
13
|
+
"{day} {month}": "{day} {month}",
|
|
14
|
+
"{day} {month} {year}": "{day} {month} {year}",
|
|
12
15
|
"{days}d": "{days} d",
|
|
13
16
|
"{dice}, free roll, not logged": "{dice}, swobodny rzut, nie jest zapisywany w dzienniku",
|
|
14
17
|
"{distance} {direction}": "{distance} – {direction}",
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
"at {place}": "w: {place}",
|
|
87
90
|
"At hand": "Pod ręką",
|
|
88
91
|
"at least {points} at level {level}": "co najmniej {points} na poziomie {level}",
|
|
92
|
+
"autumn": "jesień",
|
|
89
93
|
"Back": "Wstecz",
|
|
90
94
|
"Back here if your character dies": "Powrót tutaj, jeśli postać zginie",
|
|
91
95
|
"Back to {save}.": "Powrót do {save}.",
|
|
@@ -494,6 +498,7 @@
|
|
|
494
498
|
"south-south-east": "południe-południowy wschód",
|
|
495
499
|
"south-south-west": "południe-południowy zachód",
|
|
496
500
|
"south-west": "południowy zachód",
|
|
501
|
+
"spring": "wiosna",
|
|
497
502
|
"Start over": "Zacznij od nowa",
|
|
498
503
|
"Start the campaign over?": "Zacząć kampanię od nowa?",
|
|
499
504
|
"Start the campaign over…": "Zacznij kampanię od nowa…",
|
|
@@ -503,6 +508,7 @@
|
|
|
503
508
|
"Stories": "Historie",
|
|
504
509
|
"Story": "Historia",
|
|
505
510
|
"Suggested": "Polecane",
|
|
511
|
+
"summer": "lato",
|
|
506
512
|
"Support {product}": "Wesprzyj {product}",
|
|
507
513
|
"surprised": "zaskoczony",
|
|
508
514
|
"Swamp": "Bagno",
|
|
@@ -629,6 +635,7 @@
|
|
|
629
635
|
"Where the party is": "Gdzie jest drużyna",
|
|
630
636
|
"Who is where": "Kto gdzie jest",
|
|
631
637
|
"who rolls your character's dice": "kto rzuca kośćmi twojej postaci",
|
|
638
|
+
"winter": "zima",
|
|
632
639
|
"With a new character": "Z nową postacią",
|
|
633
640
|
"With the same character": "Z tą samą postacią",
|
|
634
641
|
"Within": "Wewnątrz",
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"{count} things": "{count} coisas",
|
|
10
10
|
"{count} things that happened": "{count} acontecimentos",
|
|
11
11
|
"{date} in the game": "{date} no jogo",
|
|
12
|
+
"{date}, {season}": "{date}, {season}",
|
|
13
|
+
"{day} {month}": "{day} de {month}",
|
|
14
|
+
"{day} {month} {year}": "{day} de {month} de {year}",
|
|
12
15
|
"{days}d": "{days}d",
|
|
13
16
|
"{dice}, free roll, not logged": "{dice}, rolagem livre, não registrada",
|
|
14
17
|
"{distance} {direction}": "{distance} ao {direction}",
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
"at {place}": "em {place}",
|
|
87
90
|
"At hand": "À mão",
|
|
88
91
|
"at least {points} at level {level}": "pelo menos {points} no nível {level}",
|
|
92
|
+
"autumn": "outono",
|
|
89
93
|
"Back": "Voltar",
|
|
90
94
|
"Back here if your character dies": "Você volta aqui se seu personagem morrer",
|
|
91
95
|
"Back to {save}.": "De volta a {save}.",
|
|
@@ -494,6 +498,7 @@
|
|
|
494
498
|
"south-south-east": "su-sudeste",
|
|
495
499
|
"south-south-west": "su-sudoeste",
|
|
496
500
|
"south-west": "sudoeste",
|
|
501
|
+
"spring": "primavera",
|
|
497
502
|
"Start over": "Recomeçar",
|
|
498
503
|
"Start the campaign over?": "Recomeçar a campanha?",
|
|
499
504
|
"Start the campaign over…": "Recomeçar a campanha…",
|
|
@@ -503,6 +508,7 @@
|
|
|
503
508
|
"Stories": "Histórias",
|
|
504
509
|
"Story": "História",
|
|
505
510
|
"Suggested": "Sugerida",
|
|
511
|
+
"summer": "verão",
|
|
506
512
|
"Support {product}": "Apoiar o {product}",
|
|
507
513
|
"surprised": "surpreso",
|
|
508
514
|
"Swamp": "Pântano",
|
|
@@ -629,6 +635,7 @@
|
|
|
629
635
|
"Where the party is": "Onde o grupo está",
|
|
630
636
|
"Who is where": "Quem está onde",
|
|
631
637
|
"who rolls your character's dice": "quem rola os dados do seu personagem",
|
|
638
|
+
"winter": "inverno",
|
|
632
639
|
"With a new character": "Com um novo personagem",
|
|
633
640
|
"With the same character": "Com o mesmo personagem",
|
|
634
641
|
"Within": "Dentro",
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"{count} things": "{count} lucruri",
|
|
10
10
|
"{count} things that happened": "{count} întâmplări",
|
|
11
11
|
"{date} in the game": "{date} în joc",
|
|
12
|
+
"{date}, {season}": "{date}, {season}",
|
|
13
|
+
"{day} {month}": "{day} {month}",
|
|
14
|
+
"{day} {month} {year}": "{day} {month} {year}",
|
|
12
15
|
"{days}d": "{days}z",
|
|
13
16
|
"{dice}, free roll, not logged": "{dice}, aruncare liberă, neînregistrată",
|
|
14
17
|
"{distance} {direction}": "{distance} spre {direction}",
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
"at {place}": "la {place}",
|
|
87
90
|
"At hand": "La îndemână",
|
|
88
91
|
"at least {points} at level {level}": "cel puțin {points} la nivelul {level}",
|
|
92
|
+
"autumn": "toamnă",
|
|
89
93
|
"Back": "Înapoi",
|
|
90
94
|
"Back here if your character dies": "Revii aici dacă personajul tău moare",
|
|
91
95
|
"Back to {save}.": "Ai revenit la {save}.",
|
|
@@ -494,6 +498,7 @@
|
|
|
494
498
|
"south-south-east": "sud-sud-est",
|
|
495
499
|
"south-south-west": "sud-sud-vest",
|
|
496
500
|
"south-west": "sud-vest",
|
|
501
|
+
"spring": "primăvară",
|
|
497
502
|
"Start over": "Reia de la capăt",
|
|
498
503
|
"Start the campaign over?": "Reiei campania de la capăt?",
|
|
499
504
|
"Start the campaign over…": "Reia campania de la capăt…",
|
|
@@ -503,6 +508,7 @@
|
|
|
503
508
|
"Stories": "Povești",
|
|
504
509
|
"Story": "Poveste",
|
|
505
510
|
"Suggested": "Sugerat",
|
|
511
|
+
"summer": "vară",
|
|
506
512
|
"Support {product}": "Susține {product}",
|
|
507
513
|
"surprised": "surprins",
|
|
508
514
|
"Swamp": "Mlaștină",
|
|
@@ -629,6 +635,7 @@
|
|
|
629
635
|
"Where the party is": "Unde se află grupul",
|
|
630
636
|
"Who is where": "Cine unde e",
|
|
631
637
|
"who rolls your character's dice": "cine aruncă zarurile personajului tău",
|
|
638
|
+
"winter": "iarnă",
|
|
632
639
|
"With a new character": "Cu un personaj nou",
|
|
633
640
|
"With the same character": "Cu același personaj",
|
|
634
641
|
"Within": "Înăuntru",
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"{count} things": "События: {count}",
|
|
10
10
|
"{count} things that happened": "События: {count}",
|
|
11
11
|
"{date} in the game": "{date} в игре",
|
|
12
|
+
"{date}, {season}": "{date}, {season}",
|
|
13
|
+
"{day} {month}": "{day} {month}",
|
|
14
|
+
"{day} {month} {year}": "{day} {month} {year}",
|
|
12
15
|
"{days}d": "{days} д",
|
|
13
16
|
"{dice}, free roll, not logged": "{dice}, свободный бросок, не записывается",
|
|
14
17
|
"{distance} {direction}": "{distance}, {direction}",
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
"at {place}": "в {place}",
|
|
87
90
|
"At hand": "Под рукой",
|
|
88
91
|
"at least {points} at level {level}": "минимум {points} на уровне {level}",
|
|
92
|
+
"autumn": "осень",
|
|
89
93
|
"Back": "Назад",
|
|
90
94
|
"Back here if your character dies": "Сюда вернёшься, если персонаж погибнет",
|
|
91
95
|
"Back to {save}.": "Возврат к {save}.",
|
|
@@ -494,6 +498,7 @@
|
|
|
494
498
|
"south-south-east": "юго-юго-восток",
|
|
495
499
|
"south-south-west": "юго-юго-запад",
|
|
496
500
|
"south-west": "юго-запад",
|
|
501
|
+
"spring": "весна",
|
|
497
502
|
"Start over": "Начать заново",
|
|
498
503
|
"Start the campaign over?": "Начать кампанию заново?",
|
|
499
504
|
"Start the campaign over…": "Начать кампанию заново…",
|
|
@@ -503,6 +508,7 @@
|
|
|
503
508
|
"Stories": "Истории",
|
|
504
509
|
"Story": "История",
|
|
505
510
|
"Suggested": "Рекомендуется",
|
|
511
|
+
"summer": "лето",
|
|
506
512
|
"Support {product}": "Поддержать {product}",
|
|
507
513
|
"surprised": "удивлён",
|
|
508
514
|
"Swamp": "Болото",
|
|
@@ -629,6 +635,7 @@
|
|
|
629
635
|
"Where the party is": "Где находится отряд",
|
|
630
636
|
"Who is where": "Кто где",
|
|
631
637
|
"who rolls your character's dice": "кто бросает кубики твоего персонажа",
|
|
638
|
+
"winter": "зима",
|
|
632
639
|
"With a new character": "С новым персонажем",
|
|
633
640
|
"With the same character": "С тем же персонажем",
|
|
634
641
|
"Within": "Внутри",
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"{count} things": "{count} saker",
|
|
10
10
|
"{count} things that happened": "{count} händelser",
|
|
11
11
|
"{date} in the game": "{date} i spelet",
|
|
12
|
+
"{date}, {season}": "{date}, {season}",
|
|
13
|
+
"{day} {month}": "{day} {month}",
|
|
14
|
+
"{day} {month} {year}": "{day} {month} {year}",
|
|
12
15
|
"{days}d": "{days} d",
|
|
13
16
|
"{dice}, free roll, not logged": "{dice}, fritt slag, loggas inte",
|
|
14
17
|
"{distance} {direction}": "{distance} åt {direction}",
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
"at {place}": "vid {place}",
|
|
87
90
|
"At hand": "Till hands",
|
|
88
91
|
"at least {points} at level {level}": "minst {points} på nivå {level}",
|
|
92
|
+
"autumn": "höst",
|
|
89
93
|
"Back": "Tillbaka",
|
|
90
94
|
"Back here if your character dies": "Hit går du tillbaka om din rollperson dör",
|
|
91
95
|
"Back to {save}.": "Tillbaka till {save}.",
|
|
@@ -494,6 +498,7 @@
|
|
|
494
498
|
"south-south-east": "syd-sydost",
|
|
495
499
|
"south-south-west": "syd-sydväst",
|
|
496
500
|
"south-west": "sydväst",
|
|
501
|
+
"spring": "vår",
|
|
497
502
|
"Start over": "Börja om",
|
|
498
503
|
"Start the campaign over?": "Börja om kampanjen?",
|
|
499
504
|
"Start the campaign over…": "Börja om kampanjen…",
|
|
@@ -503,6 +508,7 @@
|
|
|
503
508
|
"Stories": "Berättelser",
|
|
504
509
|
"Story": "Berättelse",
|
|
505
510
|
"Suggested": "Föreslagen",
|
|
511
|
+
"summer": "sommar",
|
|
506
512
|
"Support {product}": "Stöd {product}",
|
|
507
513
|
"surprised": "förvånad",
|
|
508
514
|
"Swamp": "Träsk",
|
|
@@ -629,6 +635,7 @@
|
|
|
629
635
|
"Where the party is": "Var gruppen befinner sig",
|
|
630
636
|
"Who is where": "Vem är var",
|
|
631
637
|
"who rolls your character's dice": "vem som slår din rollpersons tärningar",
|
|
638
|
+
"winter": "vinter",
|
|
632
639
|
"With a new character": "Med en ny rollperson",
|
|
633
640
|
"With the same character": "Med samma rollperson",
|
|
634
641
|
"Within": "Inuti",
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"{count} things": "{count} şey",
|
|
10
10
|
"{count} things that happened": "{count} olay",
|
|
11
11
|
"{date} in the game": "oyunda {date}",
|
|
12
|
+
"{date}, {season}": "{date}, {season}",
|
|
13
|
+
"{day} {month}": "{day} {month}",
|
|
14
|
+
"{day} {month} {year}": "{day} {month} {year}",
|
|
12
15
|
"{days}d": "{days}g",
|
|
13
16
|
"{dice}, free roll, not logged": "{dice}, serbest atış, günlüğe işlenmedi",
|
|
14
17
|
"{distance} {direction}": "{direction} yönünde {distance}",
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
"at {place}": "{place} konumunda",
|
|
87
90
|
"At hand": "Elinin altında",
|
|
88
91
|
"at least {points} at level {level}": "{level}. seviyede en az {points}",
|
|
92
|
+
"autumn": "sonbahar",
|
|
89
93
|
"Back": "Geri",
|
|
90
94
|
"Back here if your character dies": "Karakterin ölürse buraya dönülür",
|
|
91
95
|
"Back to {save}.": "Şu kayda dönüldü: {save}.",
|
|
@@ -494,6 +498,7 @@
|
|
|
494
498
|
"south-south-east": "güney-güneydoğu",
|
|
495
499
|
"south-south-west": "güney-güneybatı",
|
|
496
500
|
"south-west": "güneybatı",
|
|
501
|
+
"spring": "ilkbahar",
|
|
497
502
|
"Start over": "Baştan başla",
|
|
498
503
|
"Start the campaign over?": "Kampanya baştan başlatılsın mı?",
|
|
499
504
|
"Start the campaign over…": "Kampanyayı baştan başlat…",
|
|
@@ -503,6 +508,7 @@
|
|
|
503
508
|
"Stories": "Hikâyeler",
|
|
504
509
|
"Story": "Hikâye",
|
|
505
510
|
"Suggested": "Önerilen",
|
|
511
|
+
"summer": "yaz",
|
|
506
512
|
"Support {product}": "{product} projesine destek ol",
|
|
507
513
|
"surprised": "şaşkın",
|
|
508
514
|
"Swamp": "Bataklık",
|
|
@@ -629,6 +635,7 @@
|
|
|
629
635
|
"Where the party is": "Grubun bulunduğu yer",
|
|
630
636
|
"Who is where": "Kim nerede",
|
|
631
637
|
"who rolls your character's dice": "karakterinin zarlarını kim atar",
|
|
638
|
+
"winter": "kış",
|
|
632
639
|
"With a new character": "Yeni bir karakterle",
|
|
633
640
|
"With the same character": "Aynı karakterle",
|
|
634
641
|
"Within": "İçinde",
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"{count} things": "Подій: {count}",
|
|
10
10
|
"{count} things that happened": "Подій: {count}",
|
|
11
11
|
"{date} in the game": "{date} у грі",
|
|
12
|
+
"{date}, {season}": "{date}, {season}",
|
|
13
|
+
"{day} {month}": "{day} {month}",
|
|
14
|
+
"{day} {month} {year}": "{day} {month} {year}",
|
|
12
15
|
"{days}d": "{days} д",
|
|
13
16
|
"{dice}, free roll, not logged": "{dice}, вільний кидок, не записується",
|
|
14
17
|
"{distance} {direction}": "{distance}, {direction}",
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
"at {place}": "у {place}",
|
|
87
90
|
"At hand": "Напохваті",
|
|
88
91
|
"at least {points} at level {level}": "щонайменше {points} на рівні {level}",
|
|
92
|
+
"autumn": "осінь",
|
|
89
93
|
"Back": "Назад",
|
|
90
94
|
"Back here if your character dies": "Повернення сюди, якщо твій персонаж загине",
|
|
91
95
|
"Back to {save}.": "Повернено до {save}.",
|
|
@@ -494,6 +498,7 @@
|
|
|
494
498
|
"south-south-east": "південно-південний схід",
|
|
495
499
|
"south-south-west": "південно-південний захід",
|
|
496
500
|
"south-west": "південний захід",
|
|
501
|
+
"spring": "весна",
|
|
497
502
|
"Start over": "Почати знову",
|
|
498
503
|
"Start the campaign over?": "Почати кампанію знову?",
|
|
499
504
|
"Start the campaign over…": "Почати кампанію знову…",
|
|
@@ -503,6 +508,7 @@
|
|
|
503
508
|
"Stories": "Історії",
|
|
504
509
|
"Story": "Історія",
|
|
505
510
|
"Suggested": "Рекомендовано",
|
|
511
|
+
"summer": "літо",
|
|
506
512
|
"Support {product}": "Підтримати {product}",
|
|
507
513
|
"surprised": "здивований",
|
|
508
514
|
"Swamp": "Болото",
|
|
@@ -629,6 +635,7 @@
|
|
|
629
635
|
"Where the party is": "Де зараз загін",
|
|
630
636
|
"Who is where": "Хто де",
|
|
631
637
|
"who rolls your character's dice": "хто кидає кубики персонажа",
|
|
638
|
+
"winter": "зима",
|
|
632
639
|
"With a new character": "З новим персонажем",
|
|
633
640
|
"With the same character": "З тим самим персонажем",
|
|
634
641
|
"Within": "Усередині",
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"{count} things": "{count}件事",
|
|
10
10
|
"{count} things that happened": "发生了{count}件事",
|
|
11
11
|
"{date} in the game": "游戏内{date}",
|
|
12
|
+
"{date}, {season}": "{date},{season}",
|
|
13
|
+
"{day} {month}": "{month}{day}日",
|
|
14
|
+
"{day} {month} {year}": "{year}年{month}{day}日",
|
|
12
15
|
"{days}d": "{days}天",
|
|
13
16
|
"{dice}, free roll, not logged": "{dice},自由掷骰,不记录",
|
|
14
17
|
"{distance} {direction}": "{direction}{distance}",
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
"at {place}": "在{place}",
|
|
87
90
|
"At hand": "随身",
|
|
88
91
|
"at least {points} at level {level}": "{level}级至少需要{points}",
|
|
92
|
+
"autumn": "秋季",
|
|
89
93
|
"Back": "返回",
|
|
90
94
|
"Back here if your character dies": "角色死亡时会回到这里",
|
|
91
95
|
"Back to {save}.": "已回到{save}。",
|
|
@@ -494,6 +498,7 @@
|
|
|
494
498
|
"south-south-east": "东南偏南",
|
|
495
499
|
"south-south-west": "西南偏南",
|
|
496
500
|
"south-west": "西南",
|
|
501
|
+
"spring": "春季",
|
|
497
502
|
"Start over": "重新开始",
|
|
498
503
|
"Start the campaign over?": "重新开始战役?",
|
|
499
504
|
"Start the campaign over…": "重新开始战役…",
|
|
@@ -503,6 +508,7 @@
|
|
|
503
508
|
"Stories": "故事",
|
|
504
509
|
"Story": "故事",
|
|
505
510
|
"Suggested": "推荐",
|
|
511
|
+
"summer": "夏季",
|
|
506
512
|
"Support {product}": "支持 {product}",
|
|
507
513
|
"surprised": "惊讶",
|
|
508
514
|
"Swamp": "沼泽",
|
|
@@ -629,6 +635,7 @@
|
|
|
629
635
|
"Where the party is": "队伍所在位置",
|
|
630
636
|
"Who is where": "谁在哪里",
|
|
631
637
|
"who rolls your character's dice": "谁来替你的角色掷骰",
|
|
638
|
+
"winter": "冬季",
|
|
632
639
|
"With a new character": "使用新角色",
|
|
633
640
|
"With the same character": "沿用同一角色",
|
|
634
641
|
"Within": "内部",
|
package/dist/dashboard/icons.js
CHANGED
|
@@ -28,6 +28,7 @@ const iconPaths = {
|
|
|
28
28
|
river: "M3 8c3 2 6-2 9 0s6-2 9 0 M3 14c3 2 6-2 9 0s6-2 9 0",
|
|
29
29
|
close: "M6 6l12 12 M18 6 6 18",
|
|
30
30
|
clock: "M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18Z M12 7.5V12l3 2",
|
|
31
|
+
calendar: "M4 6h16v14H4Z M4 10h16 M8 3v4 M16 3v4",
|
|
31
32
|
hourglass: "M7 3h10M7 21h10M8 3c0 5 8 5 8 9s-8 4-8 9M16 3c0 5-8 5-8 9s8 4 8 9",
|
|
32
33
|
place: "M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11Z M12 7.5a2.5 2.5 0 1 0 0 5a2.5 2.5 0 1 0 0-5Z",
|
|
33
34
|
aside: "M6 6l6 6-6 6 M12 6l6 6-6 6",
|
package/dist/dashboard/top.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "preact/jsx-runtime";
|
|
2
2
|
import { useEffect, useLayoutEffect, useRef, useState } from "preact/hooks";
|
|
3
3
|
import { menuPages, sectionAddress, sectionLabel, sections } from "./address.js";
|
|
4
|
-
import { gameDateLabel } from "./game-words.js";
|
|
4
|
+
import { calendarDayLabel, gameDateLabel } from "./game-words.js";
|
|
5
5
|
import { Icon } from "./icons.js";
|
|
6
6
|
import { Master } from "./master.js";
|
|
7
7
|
import { usePrefChange } from "./prefs.js";
|
|
@@ -36,7 +36,7 @@ export function Top(top) {
|
|
|
36
36
|
document.documentElement.style.setProperty("--top-space", past ? `${bar.current?.offsetHeight ?? 0}px` : "0px");
|
|
37
37
|
}, [past]);
|
|
38
38
|
const title = top.campaign ?? top.product;
|
|
39
|
-
return (_jsxs(_Fragment, { children: [_jsxs("header", { ref: header, class: "top", children: [_jsx(MasterHome, { top: top, poke: poke, onHome: home }), _jsxs("div", { class: "titles", children: [_jsx("h1", { children: _jsx("a", { class: "title-home", href: sectionAddress("party"), onClick: home, children: title }) }), top.campaign !== undefined && (_jsxs("p", { class: "product", children: [top.product, top.system && _jsx("span", { class: "system-chip", children: top.system })] }))] }), _jsx(StatusChips, { now: top.now, live: top.live }), _jsx(Navigation, { current: top.section, fight: top.fight, yourTurn: top.yourTurn }), top.path !== undefined && top.path.length > 0 && _jsx(PlacePath, { path: top.path })] }), _jsx(ThemeCorner, {}), _jsxs("div", { ref: bar, class: past ? "top-bar shown" : "top-bar", "aria-hidden": "true", inert: !past, children: [_jsx(MasterHome, { top: top, poke: poke, onHome: home }), _jsxs("span", { class: "top-bar-title", children: [_jsx("a", { class: "title-home", href: sectionAddress("party"), onClick: home, children: title }), top.campaign !== undefined && (_jsxs("span", { class: "product", children: [top.product, top.system && _jsx("span", { class: "system-chip", children: top.system })] }))] }), _jsx(Navigation, { current: top.section, fight: top.fight, yourTurn: top.yourTurn, hidden: true }), _jsx(StatusChips, { now: top.now, live: top.live })] })] }));
|
|
39
|
+
return (_jsxs(_Fragment, { children: [_jsxs("header", { ref: header, class: "top", children: [_jsx(MasterHome, { top: top, poke: poke, onHome: home }), _jsxs("div", { class: "titles", children: [_jsx("h1", { children: _jsx("a", { class: "title-home", href: sectionAddress("party"), onClick: home, children: title }) }), top.campaign !== undefined && (_jsxs("p", { class: "product", children: [top.product, top.system && _jsx("span", { class: "system-chip", children: top.system })] }))] }), _jsx(StatusChips, { now: top.now, calendar: top.calendar, live: top.live }), _jsx(Navigation, { current: top.section, fight: top.fight, yourTurn: top.yourTurn }), top.path !== undefined && top.path.length > 0 && _jsx(PlacePath, { path: top.path })] }), _jsx(ThemeCorner, {}), _jsxs("div", { ref: bar, class: past ? "top-bar shown" : "top-bar", "aria-hidden": "true", inert: !past, children: [_jsx(MasterHome, { top: top, poke: poke, onHome: home }), _jsxs("span", { class: "top-bar-title", children: [_jsx("a", { class: "title-home", href: sectionAddress("party"), onClick: home, children: title }), top.campaign !== undefined && (_jsxs("span", { class: "product", children: [top.product, top.system && _jsx("span", { class: "system-chip", children: top.system })] }))] }), _jsx(Navigation, { current: top.section, fight: top.fight, yourTurn: top.yourTurn, hidden: true }), _jsx(StatusChips, { now: top.now, calendar: top.calendar, live: top.live })] })] }));
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* The sections, each a link to its address (D-276, D-309), the one shown marked, then the saves, Help, the settings and About as icons at the row's end (D-333, D-409): what does not
|
|
@@ -145,10 +145,10 @@ const pokedMoods = ["happy", "surprised", "mischievous", "delighted"];
|
|
|
145
145
|
function MasterHome({ top, poke, onHome }) {
|
|
146
146
|
return (_jsx("a", { class: "master-home", href: sectionAddress("party"), "aria-label": t("Back to the party"), onClick: onHome, children: _jsx(Master, { mood: top.mood, moment: top.moment, poke: poke, asleep: top.asleep }) }));
|
|
147
147
|
}
|
|
148
|
-
/** The game's time and whether the game is live, each a chip. */
|
|
149
|
-
function StatusChips({ now, live }) {
|
|
148
|
+
/** The game's time, its day of the calendar, and whether the game is live, each a chip. */
|
|
149
|
+
function StatusChips({ now, calendar, live }) {
|
|
150
150
|
// Live first and the time after, drawn the other way round: where the row is short, the time goes first (D-355).
|
|
151
|
-
return (_jsxs("div", { class: "status-chips", children: [_jsxs("span", { class: live ? "status-chip live on" : "status-chip live", children: [_jsx("span", { class: "dot" }), live ? t("live") : t("waiting for the game")] }), now && (_jsxs("span", { class: "status-chip", children: [_jsx(Icon, { name: "clock" }), gameDateLabel(now)] }))] }));
|
|
151
|
+
return (_jsxs("div", { class: "status-chips", children: [_jsxs("span", { class: live ? "status-chip live on" : "status-chip live", children: [_jsx("span", { class: "dot" }), live ? t("live") : t("waiting for the game")] }), now && (_jsxs("span", { class: "status-chip", children: [_jsx(Icon, { name: "clock" }), gameDateLabel(now)] })), now && calendar && (_jsxs("span", { class: "status-chip", children: [_jsx(Icon, { name: "calendar" }), calendarDayLabel(calendar)] }))] }));
|
|
152
152
|
}
|
|
153
153
|
/** The pages a menu holds as a list in the page's language: Rules, Saves and Settings; ルール、セーブ、設定. */
|
|
154
154
|
function pagesList(pages) {
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { z } from "zod";
|
|
2
|
+
/** What an extension's code gets when it loads: zod, to describe its commands' input with the same library the engine checks them with. */
|
|
3
|
+
export interface ExtensionKit {
|
|
4
|
+
z: typeof z;
|
|
5
|
+
}
|
|
6
|
+
/** The default export of an extension's code: given the kit, its commands and what it does when time passes. */
|
|
7
|
+
export type ExtensionEntry = (kit: ExtensionKit) => ExtensionCode;
|
|
8
|
+
/** What an extension's code gives rpg-engine. */
|
|
9
|
+
export interface ExtensionCode {
|
|
10
|
+
/** Its commands, which the command line and the MCP server give the master beside the core's (D-63). */
|
|
11
|
+
commands?: ExtensionCommand<any>[];
|
|
12
|
+
/** After advance or travel moved the game date: lines for their output, such as the weather of a new morning (D-436). */
|
|
13
|
+
timePassed?(passage: TimePassage, game: Game): string[] | Promise<string[]>;
|
|
14
|
+
}
|
|
15
|
+
/** A command of an extension: its name is the extension's, or starts with it and a hyphen, as weather or weather-set (D-63). */
|
|
16
|
+
export interface ExtensionCommand<Input extends z.ZodObject = z.ZodObject> {
|
|
17
|
+
name: string;
|
|
18
|
+
/** Written for an AI: what it does (the first sentence), when to use it, an example. */
|
|
19
|
+
description: string;
|
|
20
|
+
input: Input;
|
|
21
|
+
/** It changes nothing: hosts may run it without asking. */
|
|
22
|
+
readOnly?: boolean;
|
|
23
|
+
/** Fields the command line takes as positional arguments, in order: weather-set 2. */
|
|
24
|
+
positionals?: string[];
|
|
25
|
+
/** The text the master reads; an error thrown says what went wrong and how to fix it. */
|
|
26
|
+
run(input: z.infer<Input>, game: Game): string | Promise<string>;
|
|
27
|
+
}
|
|
28
|
+
/** A moment of the story: its game date as written, day 3, 06:00; the day and the minute of the day; the day of the calendar, when the story starts on one. */
|
|
29
|
+
export interface GameMoment {
|
|
30
|
+
date: string;
|
|
31
|
+
day: number;
|
|
32
|
+
minute?: number;
|
|
33
|
+
calendar?: CalendarDay;
|
|
34
|
+
}
|
|
35
|
+
/** A day of the world's calendar (TIM-8). */
|
|
36
|
+
export interface CalendarDay {
|
|
37
|
+
day: number;
|
|
38
|
+
month: string;
|
|
39
|
+
season?: string;
|
|
40
|
+
year?: number;
|
|
41
|
+
}
|
|
42
|
+
/** The time an advance or a travel let pass. */
|
|
43
|
+
export interface TimePassage {
|
|
44
|
+
from: GameMoment;
|
|
45
|
+
to: GameMoment;
|
|
46
|
+
}
|
|
47
|
+
/** The campaign as an extension's code reaches it: only through these, and only its own state is written (D-428, D-436). */
|
|
48
|
+
export interface Game {
|
|
49
|
+
/** Rolls with the engine's dice, as 1d6 or 4d6kh3: the total, each die's face, and the roll as one line. */
|
|
50
|
+
roll(notation: string): {
|
|
51
|
+
total: number;
|
|
52
|
+
faces: number[];
|
|
53
|
+
text: string;
|
|
54
|
+
};
|
|
55
|
+
/** Now, in the game; undefined before the game has a date. */
|
|
56
|
+
now(): GameMoment | undefined;
|
|
57
|
+
/** The day of the calendar a game day falls on; undefined when the story counts only the days. */
|
|
58
|
+
calendarDay(day: number): CalendarDay | undefined;
|
|
59
|
+
/** The units of measure the campaign tells the story in. */
|
|
60
|
+
units(): "metric" | "imperial";
|
|
61
|
+
/** Where the party is: the player character's places, the nearest first, and what holds there by the places' environment, such as biome: desert. */
|
|
62
|
+
party(): {
|
|
63
|
+
places: string[];
|
|
64
|
+
environment: Record<string, string>;
|
|
65
|
+
} | undefined;
|
|
66
|
+
/** The extension's own state, kept in the campaign. */
|
|
67
|
+
state: {
|
|
68
|
+
read(): unknown;
|
|
69
|
+
write(value: unknown): void;
|
|
70
|
+
};
|
|
71
|
+
/** A line in the campaign's log: public when the player may see it, hidden when only the master may. */
|
|
72
|
+
log(text: string, visibility?: "public" | "hidden"): void;
|
|
73
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type InstructionPart } from "../core/instruction-parts.ts";
|
|
2
|
+
/** The file that makes a folder an extension of rpg-engine (D-427). */
|
|
3
|
+
export declare const extensionFileName = "extension.yaml";
|
|
4
|
+
/** The version of the API an extension's code is given (api.ts), which its package.json names: a package made for another is refused. */
|
|
5
|
+
export declare const extensionApi = 1;
|
|
6
|
+
/** An installed extension (D-28, D-427, D-428): an npm package with an extension.yaml, its parts of the instructions and, when it has some, its code. */
|
|
7
|
+
export interface Extension {
|
|
8
|
+
/** The package's name, as npm and campaign.yaml write it: @rpgengine/weather. */
|
|
9
|
+
package: string;
|
|
10
|
+
/** The name its commands start with: the package's without its scope, weather (D-63). */
|
|
11
|
+
name: string;
|
|
12
|
+
version: string;
|
|
13
|
+
folder: string;
|
|
14
|
+
title: string;
|
|
15
|
+
/** The line the master reads in the list of extensions (D-28). */
|
|
16
|
+
about: string;
|
|
17
|
+
/** The language its texts are written in, as a code such as en. */
|
|
18
|
+
language: string;
|
|
19
|
+
attribution?: string;
|
|
20
|
+
/** The game system it needs, when it needs one (D-163). */
|
|
21
|
+
needs: {
|
|
22
|
+
system?: string;
|
|
23
|
+
};
|
|
24
|
+
/** Its months in place of the core's, as extension.yaml writes them: the time module reads them (TIM-8). */
|
|
25
|
+
calendar?: unknown;
|
|
26
|
+
/** Its parts of the master's instructions, by name (D-121). */
|
|
27
|
+
parts: Record<string, InstructionPart>;
|
|
28
|
+
/** The file of its code, when it has some: the module whose default export gives its commands (D-428). */
|
|
29
|
+
code?: string;
|
|
30
|
+
/** Installed from a folder of this computer, which npm links: never verified, whatever its name (D-428). */
|
|
31
|
+
linked: boolean;
|
|
32
|
+
}
|
|
33
|
+
/** The extensions installed in these folders, each a package folder, or a scope's folder of them as npm keeps them (@rpgengine/weather); the first by a name wins. */
|
|
34
|
+
export declare function installedExtensions(folders: string[]): {
|
|
35
|
+
package: string;
|
|
36
|
+
folder: string;
|
|
37
|
+
}[];
|
|
38
|
+
/** The installed extension of this package, as npm or campaign.yaml names it, or by its name alone (weather); undefined when none is. It throws when it does not read. */
|
|
39
|
+
export declare function findExtension(folders: string[], wanted: string): Extension | undefined;
|
|
40
|
+
/** An extension from its folder: its package.json and its extension.yaml, refused with what is wrong (D-427). */
|
|
41
|
+
export declare function readExtension(folder: string): Extension;
|
|
42
|
+
/** The name a package's commands start with: its name without the scope, weather for @rpgengine/weather. */
|
|
43
|
+
export declare function shortName(packageName: string): string;
|