rpg-engine 0.5.0 → 0.6.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/dist/campaign/settings.d.ts +1 -0
- package/dist/campaign/settings.js +6 -5
- package/dist/command-line.js +12 -5
- package/dist/commands/advance.js +1 -1
- package/dist/commands/ask.d.ts +1 -1
- package/dist/commands/ask.js +66 -24
- package/dist/commands/change.js +28 -17
- package/dist/commands/config.d.ts +1 -1
- package/dist/commands/config.js +67 -21
- package/dist/commands/effect.js +42 -23
- package/dist/commands/find.js +1 -1
- package/dist/commands/game-adventures.js +2 -2
- package/dist/commands/game-catalog.d.ts +13 -0
- package/dist/commands/game-catalog.js +26 -2
- package/dist/commands/game-checks.js +23 -21
- package/dist/commands/{game-hit-dice.d.ts → game-dice-pool.d.ts} +3 -3
- package/dist/commands/{game-hit-dice.js → game-dice-pool.js} +7 -7
- package/dist/commands/game-effects.d.ts +12 -4
- package/dist/commands/game-effects.js +21 -13
- package/dist/commands/game-examples.d.ts +22 -0
- package/dist/commands/game-examples.js +72 -0
- package/dist/commands/game-extension-list.d.ts +31 -3
- package/dist/commands/game-extension-list.js +83 -7
- package/dist/commands/game-images.d.ts +1 -1
- package/dist/commands/game-images.js +3 -2
- package/dist/commands/game-library.d.ts +3 -0
- package/dist/commands/game-library.js +2 -2
- package/dist/commands/game-mode.js +1 -1
- package/dist/commands/game-package-code.d.ts +87 -0
- package/dist/commands/game-package-code.js +648 -0
- package/dist/commands/game-package-hooks.d.ts +37 -0
- package/dist/commands/game-package-hooks.js +116 -0
- package/dist/commands/game-recipes.js +2 -2
- package/dist/commands/game-reminders.d.ts +5 -2
- package/dist/commands/game-reminders.js +7 -4
- package/dist/commands/game-rules.d.ts +4 -1
- package/dist/commands/game-rules.js +7 -1
- package/dist/commands/game-upkeep.js +3 -3
- package/dist/commands/game-view-place.d.ts +8 -20
- package/dist/commands/game-view-place.js +16 -35
- package/dist/commands/game-widgets.d.ts +39 -10
- package/dist/commands/game-widgets.js +138 -35
- package/dist/commands/game-world.d.ts +17 -0
- package/dist/commands/game-world.js +70 -12
- package/dist/commands/image.js +1 -1
- package/dist/commands/init.js +2 -2
- package/dist/commands/mode.d.ts +1 -1
- package/dist/commands/package.d.ts +8 -0
- package/dist/commands/package.js +81 -24
- package/dist/commands/progression.d.ts +2 -0
- package/dist/commands/progression.js +7 -2
- package/dist/commands/roll.d.ts +2 -0
- package/dist/commands/roll.js +50 -24
- package/dist/commands/rules.js +6 -4
- package/dist/commands/scene.d.ts +1 -1
- package/dist/commands/scene.js +13 -10
- package/dist/commands/sheet.js +10 -1
- package/dist/commands/status.d.ts +1 -0
- package/dist/commands/status.js +14 -4
- package/dist/commands/trade.js +6 -4
- package/dist/commands/translate.js +2 -2
- package/dist/commands/travel.js +1 -1
- package/dist/commands/validate.js +2 -2
- package/dist/commands/view.d.ts +8 -4
- package/dist/commands/view.js +7 -6
- package/dist/commands/worked-out.js +11 -5
- package/dist/commands/write.d.ts +8 -1
- package/dist/commands/write.js +84 -25
- package/dist/core/command-reference.js +3 -2
- package/dist/core/consents.d.ts +18 -0
- package/dist/core/consents.js +93 -0
- package/dist/core/context.d.ts +51 -29
- package/dist/core/context.js +3 -1
- package/dist/core/examples.d.ts +25 -0
- package/dist/core/examples.js +19 -0
- package/dist/{extensions/api.d.ts → core/package-api.d.ts} +134 -32
- package/dist/core/package-declarations.d.ts +102 -0
- package/dist/core/package-declarations.js +81 -0
- package/dist/core/registry.d.ts +2 -0
- package/dist/core/text.d.ts +5 -0
- package/dist/core/text.js +12 -0
- package/dist/dashboard/acts.js +31 -24
- package/dist/dashboard/address.js +4 -1
- package/dist/dashboard/api.js +54 -0
- package/dist/dashboard/app.js +140 -96
- package/dist/dashboard/ask-card.js +76 -25
- package/dist/dashboard/asked-dice.js +57 -0
- package/dist/dashboard/dice/tray.js +3 -3
- package/dist/dashboard/extension-widgets.js +104 -10
- package/dist/dashboard/i18n/ar.json +25 -29
- package/dist/dashboard/i18n/cs.json +25 -29
- package/dist/dashboard/i18n/da.json +25 -29
- package/dist/dashboard/i18n/de.json +25 -29
- package/dist/dashboard/i18n/el.json +25 -29
- package/dist/dashboard/i18n/es.json +25 -29
- package/dist/dashboard/i18n/fi.json +25 -29
- package/dist/dashboard/i18n/fr.json +25 -29
- package/dist/dashboard/i18n/he.json +25 -29
- package/dist/dashboard/i18n/hi.json +25 -29
- package/dist/dashboard/i18n/hu.json +25 -29
- package/dist/dashboard/i18n/is.json +25 -29
- package/dist/dashboard/i18n/it.json +25 -29
- package/dist/dashboard/i18n/ja.json +25 -29
- package/dist/dashboard/i18n/ko.json +25 -29
- package/dist/dashboard/i18n/nb.json +25 -29
- package/dist/dashboard/i18n/nl.json +25 -29
- package/dist/dashboard/i18n/pl.json +25 -29
- package/dist/dashboard/i18n/pt.json +25 -29
- package/dist/dashboard/i18n/ro.json +25 -29
- package/dist/dashboard/i18n/ru.json +25 -29
- package/dist/dashboard/i18n/sv.json +25 -29
- package/dist/dashboard/i18n/tr.json +25 -29
- package/dist/dashboard/i18n/uk.json +25 -29
- package/dist/dashboard/i18n/zh.json +25 -29
- package/dist/dashboard/icons.js +4 -1
- package/dist/dashboard/kit.js +35 -0
- package/dist/dashboard/labels.js +1 -0
- package/dist/dashboard/pack-card.js +7 -2
- package/dist/dashboard/package-page.js +50 -0
- package/dist/dashboard/packages.js +172 -23
- package/dist/dashboard/page-code.js +248 -0
- package/dist/dashboard/party.js +13 -14
- package/dist/dashboard/people.js +4 -0
- package/dist/dashboard/person-panel.js +110 -0
- package/dist/dashboard/place-map-view.js +11 -6
- package/dist/dashboard/scene.js +12 -9
- package/dist/dashboard/settings.js +55 -9
- package/dist/dashboard/sheet.js +21 -13
- package/dist/dashboard/status.js +69 -15
- package/dist/dashboard/style.css +592 -825
- package/dist/dashboard/top.js +75 -25
- package/dist/dashboard/turns.js +34 -13
- package/dist/dashboard/widgets.js +9 -2
- package/dist/dashboard-server.js +189 -10
- package/dist/dice/roll-dice.js +1 -1
- package/dist/effects/effect.d.ts +7 -4
- package/dist/effects/effect.js +12 -9
- package/dist/extensions/engine.d.ts +4 -0
- package/dist/extensions/engine.js +74 -0
- package/dist/extensions/extension.d.ts +25 -37
- package/dist/extensions/extension.js +26 -48
- package/dist/extensions/index.d.ts +3 -2
- package/dist/extensions/index.js +4 -1
- package/dist/extensions/packages.d.ts +6 -0
- package/dist/extensions/packages.js +100 -11
- package/dist/index.d.ts +1 -3
- package/dist/mcp-server.js +51 -14
- package/dist/page-words.d.ts +4 -0
- package/dist/page-words.js +4 -4
- package/dist/page.d.ts +218 -0
- package/dist/page.js +2 -0
- package/dist/pages/load.d.ts +7 -1
- package/dist/pages/load.js +10 -5
- package/dist/pages/page-file.js +1 -1
- package/dist/pages/stack-writes.js +5 -4
- package/dist/pages/world.d.ts +8 -0
- package/dist/pages/world.js +9 -2
- package/dist/systems/game-system.d.ts +52 -26
- package/dist/systems/game-system.js +141 -42
- package/dist/systems/index.d.ts +3 -3
- package/dist/systems/index.js +3 -3
- package/dist/systems/system-code.d.ts +29 -88
- package/dist/systems/system-code.js +68 -23
- package/dist/systems/words.d.ts +2 -0
- package/dist/systems/words.js +11 -0
- package/dist/testing.d.ts +20 -5
- package/dist/testing.js +49 -14
- package/instructions/combat.md +2 -2
- package/instructions/core.md +2 -2
- package/instructions/dashboard.md +1 -1
- package/instructions/mentor-tutorial.md +1 -1
- package/instructions/play.md +2 -2
- package/instructions/setup.md +1 -1
- package/package.json +9 -1
- package/systems/5e/LICENSE.md +13 -3
- package/systems/5e/dist/dying.js +83 -16
- package/systems/5e/dist/index.js +2 -2
- package/systems/5e/dist/page-style.js +634 -0
- package/systems/5e/dist/page.js +166 -0
- package/systems/5e/dist/shown.js +23 -0
- package/systems/5e/instructions/combat.md +1 -0
- package/systems/5e/package.json +4 -2
- package/systems/5e/system.yaml +35 -7
- package/systems/5e/versions/srd-5.1/system.yaml +2 -0
- package/systems/5e/words/ar.yaml +30 -0
- package/systems/5e/words/cs.yaml +30 -0
- package/systems/5e/words/da.yaml +30 -0
- package/systems/5e/words/de.yaml +30 -0
- package/systems/5e/words/el.yaml +30 -0
- package/systems/5e/words/es.yaml +30 -0
- package/systems/5e/words/fi.yaml +30 -0
- package/systems/5e/words/fr.yaml +30 -0
- package/systems/5e/words/he.yaml +30 -0
- package/systems/5e/words/hi.yaml +30 -0
- package/systems/5e/words/hu.yaml +30 -0
- package/systems/5e/words/is.yaml +30 -0
- package/systems/5e/words/it.yaml +30 -0
- package/systems/5e/words/ja.yaml +30 -0
- package/systems/5e/words/ko.yaml +30 -0
- package/systems/5e/words/nb.yaml +30 -0
- package/systems/5e/words/nl.yaml +30 -0
- package/systems/5e/words/pl.yaml +30 -0
- package/systems/5e/words/pt.yaml +30 -0
- package/systems/5e/words/ro.yaml +30 -0
- package/systems/5e/words/ru.yaml +30 -0
- package/systems/5e/words/sv.yaml +30 -0
- package/systems/5e/words/tr.yaml +30 -0
- package/systems/5e/words/uk.yaml +30 -0
- package/systems/5e/words/zh.yaml +30 -0
- package/dist/commands/game-extensions.d.ts +0 -34
- package/dist/commands/game-extensions.js +0 -407
- package/dist/commands/game-system-code.d.ts +0 -33
- package/dist/commands/game-system-code.js +0 -188
- package/dist/dashboard/death-save.js +0 -67
- package/dist/dashboard/dying.js +0 -46
- package/dist/dashboard/save-outcome.js +0 -42
- package/dist/dashboard/spend.js +0 -115
- /package/dist/{extensions/api.js → core/package-api.js} +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
|
+
// The dice of a rest the master asks the player to spend (ASK-14), when no package draws a card for them (D-513 (6)): the master's question with a button
|
|
3
|
+
// for each counter of dice, which rolls one of its dice and stays, and the button that ends it. The engine rolls each die and the question comes back with
|
|
4
|
+
// the counters as they are; a game's own card, as the 5e's for its hit dice, comes from its page module.
|
|
5
|
+
import { useEffect, useRef, useState } from "preact/hooks";
|
|
6
|
+
import { DieIcon } from "./icons.js";
|
|
7
|
+
import { fieldLabel, signed } from "./labels.js";
|
|
8
|
+
import { numberText, t } from "./text.js";
|
|
9
|
+
export function AskedDice({ asked, spend, flying, onSpend, onDone }) {
|
|
10
|
+
const element = useRef(null);
|
|
11
|
+
// A die asked of the engine, until its roll comes back, as how many rolls there were then; the end asked.
|
|
12
|
+
const [sent, setSent] = useState();
|
|
13
|
+
const [leaving, setLeaving] = useState(false);
|
|
14
|
+
const waiting = (sent !== undefined && spend.rolls.length <= sent) || spend.rolls.some((roll) => roll.id === flying);
|
|
15
|
+
const busy = waiting || leaving;
|
|
16
|
+
// The dice as they were until the last roll's dice land.
|
|
17
|
+
const steady = useRef(spend);
|
|
18
|
+
if (!waiting) {
|
|
19
|
+
steady.current = spend;
|
|
20
|
+
}
|
|
21
|
+
const shown = steady.current;
|
|
22
|
+
const last = shown.rolls.at(-1);
|
|
23
|
+
// While it is there, the rolls beside the sheet stay in sight under it, as under the master's question (D-291).
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
const box = element.current;
|
|
26
|
+
if (box === null) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const root = document.documentElement;
|
|
30
|
+
const observer = new ResizeObserver(() => root.style.setProperty("--asked-space", `${box.offsetHeight + 16}px`));
|
|
31
|
+
observer.observe(box);
|
|
32
|
+
return () => {
|
|
33
|
+
observer.disconnect();
|
|
34
|
+
root.style.removeProperty("--asked-space");
|
|
35
|
+
};
|
|
36
|
+
}, []);
|
|
37
|
+
const spendOne = async (field) => {
|
|
38
|
+
if (busy) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
setSent(spend.rolls.length);
|
|
42
|
+
if (!await onSpend(field)) {
|
|
43
|
+
setSent(undefined);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const end = async () => {
|
|
47
|
+
if (busy) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
setLeaving(true);
|
|
51
|
+
if (!await onDone(element.current?.contains(document.activeElement) === true)) {
|
|
52
|
+
setLeaving(false);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const gives = shown.gives;
|
|
56
|
+
return (_jsxs("section", { ref: element, class: "asked asked-roll asked-rest", "aria-labelledby": `asked-${asked.id}`, children: [_jsx("img", { class: "asked-robot", src: "/assets/favicon.svg", alt: "" }), _jsxs("div", { class: "asked-body", children: [_jsx("h2", { class: "asked-title", children: asked.title }), _jsx("p", { id: `asked-${asked.id}`, class: "asked-question", role: "alert", children: asked.question }), _jsx("p", { class: "asked-gives", children: `${fieldLabel(gives.field)} ${numberText(gives.value)}${gives.max === undefined ? "" : `/${numberText(gives.max)}`}` }), _jsxs("div", { class: "asked-buttons", children: [shown.dice.map((dice) => (_jsxs("button", { type: "button", class: "asked-check", disabled: busy || dice.value <= 0, onClick: () => void spendOne(dice.field), children: [_jsx(DieIcon, { sides: dice.sides }), _jsx("span", { class: "asked-check-name", children: fieldLabel(dice.field) }), dice.adds !== 0 && _jsx("span", { class: "asked-dice", children: signed(dice.adds) }), _jsx("span", { class: "asked-roll-name", children: t("{value} of {max}", { value: dice.value, max: dice.max }) })] }, dice.field))), _jsx("button", { type: "button", class: "asked-other", disabled: busy, onClick: () => void end(), children: asked.labels[0] })] }), _jsx("p", { class: "visually-hidden", role: "status", children: last === undefined ? "" : `${fieldLabel(last.field)}: ${last.total}` })] })] }));
|
|
57
|
+
}
|
|
@@ -115,9 +115,9 @@ export function DiceTray({ requested, sheetThrow, party, onLanded, onShown, onFr
|
|
|
115
115
|
// The plate is measured, unseen, before the dice fly: they land above it, however many rows its dice take (D-366).
|
|
116
116
|
await new Promise((painted) => requestAnimationFrame(painted));
|
|
117
117
|
const plateTop = measuredPlate.current?.getBoundingClientRect().top;
|
|
118
|
-
// The header as it stands now, full at the page's top or compact below it: no die lands under it; on a wide screen nor on the card of a
|
|
119
|
-
// whose outcome comes as they land
|
|
120
|
-
const card = matchMedia("(min-width: 601px)").matches ? document.querySelector(".
|
|
118
|
+
// The header as it stands now, full at the page's top or compact below it: no die lands under it; on a wide screen nor on the card of a package's
|
|
119
|
+
// question, whose outcome comes as they land, as a death save's (D-461, D-507), or on a rest's dice (D-492). A phone has no room under it.
|
|
120
|
+
const card = matchMedia("(min-width: 601px)").matches ? document.querySelector(".ask-card, .asked-rest")?.getBoundingClientRect().bottom : undefined;
|
|
121
121
|
const headerBottom = Math.max(0, document.querySelector(".top")?.getBoundingClientRect().bottom ?? 0, card ?? 0);
|
|
122
122
|
if (plateTop !== undefined && plateTop > 0) {
|
|
123
123
|
loaded?.cover(window.innerHeight - plateTop, headerBottom, card !== undefined);
|
|
@@ -6,9 +6,14 @@ import { useContext, useEffect, useRef } from "preact/hooks";
|
|
|
6
6
|
import { sectionAddress } from "./address.js";
|
|
7
7
|
import { CardHead } from "./card.js";
|
|
8
8
|
import { iconPath } from "./icons.js";
|
|
9
|
+
import { cardsIn, codeOfModule, ExtensionRoot, figureSize, ModulesContext, pagePropsOf, usePageModule, useWidgetData } from "./page-code.js";
|
|
10
|
+
import { sideOf, Token } from "./party.js";
|
|
11
|
+
import { PeopleContext } from "./people.js";
|
|
9
12
|
import { isolated, numberText, pageDirection, t } from "./text.js";
|
|
10
13
|
/** The widgets of the campaign's extensions, as last read: every part of the page that holds some takes its own from here. */
|
|
11
14
|
export const WidgetsContext = createContext([]);
|
|
15
|
+
/** The widget whose parts are drawn here, with its page module and data, for a count its extension draws as a figure (D-510); where it stands. */
|
|
16
|
+
export const OwnerContext = createContext(undefined);
|
|
12
17
|
// The section of the page each widget's page is.
|
|
13
18
|
const pageSections = { scene: "scene", sheet: "party", world: "world", journal: "journal" };
|
|
14
19
|
// The card a chip in the top has just led to, which brings itself into view as it is drawn.
|
|
@@ -18,13 +23,42 @@ export function WidgetChips() {
|
|
|
18
23
|
const widgets = useContext(WidgetsContext);
|
|
19
24
|
return (_jsx(_Fragment, { children: inPlace(widgets, "top").filter((widget) => widget.shows !== undefined).map((widget) => _jsx(WidgetChip, { widget: widget, card: cardOf(widgets, widget) }, widget.id)) }));
|
|
20
25
|
}
|
|
21
|
-
/**
|
|
22
|
-
|
|
26
|
+
/**
|
|
27
|
+
* The cards of the widgets that stand in this place, or at the end of this page, in their order; in a page, then the cards its packages' page code puts there
|
|
28
|
+
* (D-511), given whose sheet it is and what the page shows. Nothing where none does.
|
|
29
|
+
*/
|
|
30
|
+
export function WidgetCards({ place, page, who, view }) {
|
|
23
31
|
const widgets = inPlace(useContext(WidgetsContext), place, page).filter((widget) => widget.shows?.parts !== undefined || widget.shows?.note !== undefined);
|
|
32
|
+
const own = place === "page" && page !== undefined ? _jsx(PackageCards, { page: page, who: who, view: view }) : null;
|
|
24
33
|
if (widgets.length === 0) {
|
|
25
|
-
return
|
|
34
|
+
return own;
|
|
35
|
+
}
|
|
36
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { class: `widget-cards on-${place}`, children: widgets.map((widget) => _jsx(WidgetCard, { widget: widget }, widget.id)) }), own] }));
|
|
37
|
+
}
|
|
38
|
+
/** The cards the page code of the campaign's packages puts in a page (D-511), the system's first, each package's in their order. */
|
|
39
|
+
function PackageCards({ page, who, view }) {
|
|
40
|
+
const modules = useContext(ModulesContext);
|
|
41
|
+
return modules.length === 0 ? null : _jsx("div", { class: "widget-cards on-page package-cards", children: modules.map((module) => _jsx(ModuleCards, { module: module, page: page, who: who, view: view }, module.package)) });
|
|
42
|
+
}
|
|
43
|
+
/** One package's cards in a page, once its module came; one that did not load says so in a card of its own, with its error. */
|
|
44
|
+
function ModuleCards({ module, page, who, view }) {
|
|
45
|
+
const owner = codeOfModule(module);
|
|
46
|
+
const loaded = usePageModule(owner);
|
|
47
|
+
const cards = cardsIn(loaded, page);
|
|
48
|
+
if (cards instanceof Error) {
|
|
49
|
+
const id = titleId(`${module.package}.broken`);
|
|
50
|
+
return (_jsxs("section", { class: "card widget-card package-card", "aria-labelledby": id, children: [_jsx(CardHead, { icon: iconPath("packages"), title: _jsx("h3", { id: id, children: module.package }) }), _jsx("div", { class: "card-body widget-body", children: _jsx(ExtensionRoot, { widget: owner, loaded: cards, kind: "ext-body", draw: () => null }) })] }));
|
|
26
51
|
}
|
|
27
|
-
return
|
|
52
|
+
return _jsx(_Fragment, { children: cards.map(([name, card]) => _jsx(ModuleCard, { module: module, name: name, card: card, page: page, who: who, view: view }, name)) });
|
|
53
|
+
}
|
|
54
|
+
/** One card of a package's page code, with the data of the widget it names for who, once it comes (D-514). */
|
|
55
|
+
function ModuleCard({ module, name, card, page, who, view }) {
|
|
56
|
+
const owner = codeOfModule(module);
|
|
57
|
+
const loaded = usePageModule(owner);
|
|
58
|
+
const data = useWidgetData(module.package, card.widget, who, useContext(WidgetsContext));
|
|
59
|
+
const id = titleId(`${module.package}.${name}`);
|
|
60
|
+
const Drawing = card.draw;
|
|
61
|
+
return (_jsxs("section", { class: "card widget-card package-card", "aria-labelledby": id, children: [_jsx(CardHead, { icon: card.icon ?? iconPath("packages"), title: _jsx("h3", { id: id, children: card.title }) }), _jsx("div", { class: "card-body widget-body", children: _jsx(ExtensionRoot, { widget: owner, loaded: loaded, kind: "ext-body", draw: () => _jsx(Drawing, { ...pagePropsOf(owner), name: name, page: page, ...(who === undefined ? {} : { who }), ...(view === undefined ? {} : { view }), ...(data === undefined ? {} : { data }) }) }) })] }));
|
|
28
62
|
}
|
|
29
63
|
/** A widget's title as a chip names it: with what it says whole, Weather: scattered rain, 10–15 °C. */
|
|
30
64
|
export function widgetSaid(widget) {
|
|
@@ -47,8 +81,13 @@ function WidgetChip({ widget, card }) {
|
|
|
47
81
|
const shows = widget.shows;
|
|
48
82
|
const icon = shows?.icon ?? widget.icon;
|
|
49
83
|
const said = widgetSaid(widget);
|
|
84
|
+
const loaded = usePageModule(widget);
|
|
85
|
+
// Its lead's figure in place of its icon, when its page code draws one (D-510): the frame, the words, the tip and the name stay the page's.
|
|
86
|
+
const lead = shows?.parts?.find((part) => "lead" in part && part.figure !== undefined);
|
|
50
87
|
// Named by its whole sentence, which its tip shows too: the tip's drawing would add itself to a name made of its words.
|
|
51
|
-
const inside = (_jsxs(_Fragment, { children: [
|
|
88
|
+
const inside = (_jsxs(_Fragment, { children: [lead?.figure !== undefined && widget.module !== undefined
|
|
89
|
+
? _jsx(Figure, { owner: { widget, loaded, data: shows?.data, place: "top" }, name: lead.figure, part: lead })
|
|
90
|
+
: icon !== undefined && _jsx(Drawn, { path: icon, kind: "icon" }), _jsx("span", { class: "num", children: shows?.chip === undefined ? widget.title : _jsx(Text, { text: shows.chip }) })] }));
|
|
52
91
|
// A chip leads to its extension's card where one stands in a page; else it only says.
|
|
53
92
|
return card?.page === undefined
|
|
54
93
|
? _jsx("span", { class: "status-chip widget-chip tip-below", role: "img", "aria-label": said, "data-tip": said, children: inside })
|
|
@@ -78,6 +117,8 @@ function WidgetCard({ widget }) {
|
|
|
78
117
|
const id = titleId(widget.id);
|
|
79
118
|
const title = useRef(null);
|
|
80
119
|
const shows = widget.shows;
|
|
120
|
+
const loaded = usePageModule(widget);
|
|
121
|
+
const place = widget.place === "page" ? "page" : "side";
|
|
81
122
|
// Led here by its chip from another page.
|
|
82
123
|
useEffect(() => {
|
|
83
124
|
if (wanted === widget.id && title.current !== null) {
|
|
@@ -85,10 +126,24 @@ function WidgetCard({ widget }) {
|
|
|
85
126
|
bringTitle(title.current);
|
|
86
127
|
}
|
|
87
128
|
}, []);
|
|
88
|
-
return (_jsxs("section", { class: "card widget-card", "aria-labelledby": id, children: [_jsx(CardHead, { icon: shows?.icon ?? widget.icon ?? iconPath("packages"), title: _jsx("h3", { id: id, ref: title, tabIndex: -1, children: widget.title }), ...(shows?.note === undefined ? {} : { note: _jsx(Text, { text: shows.note }) }) }), shows?.parts !== undefined && shows.parts.length > 0 && _jsx("div", { class: "card-body widget-body", children: shows.parts.map((part, index) => _jsx(Part, { part: part }, index)) })] }));
|
|
129
|
+
return (_jsxs("section", { class: "card widget-card", "aria-labelledby": id, children: [_jsx(CardHead, { icon: shows?.icon ?? widget.icon ?? iconPath("packages"), title: _jsx("h3", { id: id, ref: title, tabIndex: -1, children: widget.title }), ...(shows?.note === undefined ? {} : { note: _jsx(Text, { text: shows.note }) }) }), shows?.parts !== undefined && shows.parts.length > 0 && (_jsx(OwnerContext.Provider, { value: { widget, loaded, data: shows.data, place }, children: _jsx("div", { class: "card-body widget-body", children: shows.parts.map((part, index) => _jsx(Part, { part: part }, index)) }) }))] }));
|
|
130
|
+
}
|
|
131
|
+
/** Who acts in a card (D-509, D-510): their portrait as the page draws it, the party and those at the place known by name; their name and what they do. */
|
|
132
|
+
export function Who({ who, does }) {
|
|
133
|
+
const person = useContext(PeopleContext).find((one) => one.name === who) ?? { name: who, role: "other" };
|
|
134
|
+
const side = sideOf(person.role);
|
|
135
|
+
return (_jsxs("div", { class: "who-acts", children: [_jsx(Token, { member: person, ...(side === undefined ? {} : { side }) }), _jsxs("p", { class: "who-acts-words", dir: "auto", children: [_jsx("b", { class: "who-acts-name", children: who }), does !== undefined && (_jsx("span", { class: "who-acts-does", children: _jsx(Text, { text: does }) }))] })] }));
|
|
89
136
|
}
|
|
90
137
|
/** A part of a widget's card, as the page draws its own. */
|
|
91
138
|
export function Part({ part }) {
|
|
139
|
+
const owner = useContext(OwnerContext);
|
|
140
|
+
if ("who" in part) {
|
|
141
|
+
return _jsx(Who, { who: part.who, does: part.does });
|
|
142
|
+
}
|
|
143
|
+
if ("lead" in part && part.figure !== undefined && owner?.widget.module !== undefined) {
|
|
144
|
+
// Drawn by its extension's page code over its words and value, which stay the page's (D-510): the figure in place of its icon.
|
|
145
|
+
return (_jsxs("div", { class: "widget-lead figured", children: [_jsx(Figure, { owner: owner, name: part.figure, part: part }), _jsx("span", { class: "widget-lead-words", dir: "auto", children: _jsx(Text, { text: part.lead }) }), part.value !== undefined && _jsx(Value, { value: part.value, kind: "widget-lead-value" })] }));
|
|
146
|
+
}
|
|
92
147
|
if ("lead" in part) {
|
|
93
148
|
return (_jsxs("div", { class: "widget-lead", children: [part.icon !== undefined && _jsx(Drawn, { path: part.icon, kind: "widget-lead-icon" }), _jsx("span", { class: "widget-lead-words", dir: "auto", children: _jsx(Text, { text: part.lead }) }), part.value !== undefined && _jsx(Value, { value: part.value, kind: "widget-lead-value" })] }));
|
|
94
149
|
}
|
|
@@ -118,21 +173,60 @@ export function Part({ part }) {
|
|
|
118
173
|
* of a question, its place there, and what changed since the card's last look, for its marks to move.
|
|
119
174
|
*/
|
|
120
175
|
export function Track({ track, place, change }) {
|
|
176
|
+
// Without a figure, its marks drawn here: a plain count needs nothing of the page around it.
|
|
177
|
+
return track.figure === undefined ? Marks({ track, place, change }) : _jsx(Figured, { track: track, figure: track.figure, place: place, change: change });
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* A count its package draws as a figure (D-510), where its page code runs: the page keeps its name, in words for a screen reader, and its count in figures
|
|
181
|
+
* under it; elsewhere its marks.
|
|
182
|
+
*/
|
|
183
|
+
function Figured({ track, figure, place, change }) {
|
|
184
|
+
const owner = useContext(OwnerContext);
|
|
185
|
+
if (owner?.widget.module === undefined) {
|
|
186
|
+
return _jsx(Marks, { track: track, place: place, change: change });
|
|
187
|
+
}
|
|
188
|
+
const { label, named, kind } = trackWords(track, place);
|
|
189
|
+
return (_jsxs("div", { class: `${kind} figured`, children: [_jsx("span", { class: "track-figure", role: "img", "aria-label": named, children: _jsx(Figure, { owner: owner, name: figure, part: { track } }) }), _jsxs("span", { class: "track-count figure-count", "aria-hidden": "true", children: [_jsx("span", { dir: "auto", children: label }), " ", _jsx("span", { class: "num", children: `${numberText(track.value + (track.held ?? 0))}/${numberText(track.max)}` })] })] }));
|
|
190
|
+
}
|
|
191
|
+
/** A count's words: its label, its name for a screen reader with the marks held, failed and coming, its value in words, and its classes. */
|
|
192
|
+
function trackWords(track, place) {
|
|
121
193
|
const label = textOf(track.label);
|
|
122
194
|
const said = t("{value} of {max}", { value: track.value, max: track.max });
|
|
123
|
-
const steps = track.look === "steps";
|
|
124
|
-
const marks = track.look !== "bar" && track.max <= (steps ? mostSteps : mostPips);
|
|
125
195
|
const kind = [place === undefined ? "widget-track" : `ask-track track-${place}`, track.tone ?? ""].filter((name) => name !== "").join(" ");
|
|
126
196
|
const more = [
|
|
127
197
|
track.held === undefined || track.held === 0 ? "" : t("held: {count}", { count: track.held }),
|
|
128
198
|
track.marked === undefined || track.marked === 0 ? "" : t("failed: {count}", { count: track.marked }),
|
|
129
199
|
track.coming === undefined || track.coming === 0 ? "" : t("this roll: {count}", { count: track.coming }),
|
|
130
200
|
].filter((part) => part !== "");
|
|
131
|
-
|
|
201
|
+
return { label, said, more, named: [`${label}: ${said}`, ...more].join(", "), kind };
|
|
202
|
+
}
|
|
203
|
+
/** A count as marks, or a bar, with its label. */
|
|
204
|
+
function Marks({ track, place, change }) {
|
|
205
|
+
const { label, said, more, named, kind } = trackWords(track, place);
|
|
206
|
+
const steps = track.look === "steps";
|
|
207
|
+
const marks = track.look !== "bar" && track.max <= (steps ? mostSteps : mostPips);
|
|
132
208
|
return (_jsxs("div", { class: kind, children: [_jsx("span", { class: "widget-track-label", dir: "auto", "aria-hidden": "true", children: label }), marks
|
|
133
209
|
? (_jsx("span", { class: ["pips", steps ? "steps" : "", track.tone ?? ""].filter((name) => name !== "").join(" "), role: "img", "aria-label": named, children: Array.from({ length: track.max }, (_, index) => _jsx(Mark, { index: index, track: track, change: change }, index)) }))
|
|
134
210
|
: (_jsxs("span", { class: "bar-line", children: [_jsx("span", { class: "bar", role: "meter", "aria-label": label, "aria-valuemin": 0, "aria-valuemax": track.max, "aria-valuenow": track.value, "aria-valuetext": more.length === 0 ? said : [said, ...more].join(", "), children: _jsx("span", { class: "fill", style: { "--fill": String(track.value / track.max) } }) }), _jsx("span", { class: "num", "aria-hidden": "true", children: `${numberText(track.value)}/${numberText(track.max)}` })] })), marks && steps && _jsx("span", { class: "track-count num", "aria-hidden": "true", children: `${numberText(track.value + (track.held ?? 0))}/${numberText(track.max)}` })] }));
|
|
135
211
|
}
|
|
212
|
+
/** A figure of an extension, given what it drew before once what it draws changes, for it to move from one to the other. */
|
|
213
|
+
export function Figure({ owner, name, part }) {
|
|
214
|
+
const looks = useRef();
|
|
215
|
+
const said = JSON.stringify([part, owner.data]);
|
|
216
|
+
// The data it drew before, once what it draws changes: in a card of a roll that is once the dice land, as the card changes only then.
|
|
217
|
+
if (looks.current?.said !== said) {
|
|
218
|
+
looks.current = { said, data: owner.data, ...(looks.current === undefined ? {} : { before: looks.current.data }) };
|
|
219
|
+
}
|
|
220
|
+
const before = looks.current.before;
|
|
221
|
+
const size = figureSize(owner.widget, name);
|
|
222
|
+
return (_jsx(ExtensionRoot, { widget: owner.widget, loaded: owner.loaded, kind: `ext-figure at-${owner.place}`, size: size, draw: (module) => {
|
|
223
|
+
const Drawing = module.figures?.[name];
|
|
224
|
+
if (Drawing === undefined) {
|
|
225
|
+
throw new Error(`its page module has no figure ${name}`);
|
|
226
|
+
}
|
|
227
|
+
return _jsx(Drawing, { ...pagePropsOf(owner.widget), name: name, data: owner.data, ...(before === undefined ? {} : { before }), part: part, place: owner.place, size: size });
|
|
228
|
+
} }));
|
|
229
|
+
}
|
|
136
230
|
// How many marks a count draws at most, as pips or as steps; past that, a bar.
|
|
137
231
|
const mostPips = 10;
|
|
138
232
|
const mostSteps = 12;
|
|
@@ -159,7 +253,7 @@ export function Text({ text }) {
|
|
|
159
253
|
return _jsx(_Fragment, { children: pieces });
|
|
160
254
|
}
|
|
161
255
|
/** A value: a number or a range with its unit, as the page's language writes them, set apart; a word as it is. */
|
|
162
|
-
function Value({ value, kind }) {
|
|
256
|
+
export function Value({ value, kind }) {
|
|
163
257
|
return typeof value === "string"
|
|
164
258
|
? _jsx("span", { class: kind, dir: "auto", children: value })
|
|
165
259
|
: _jsx("bdi", { class: kind === undefined ? "num" : `num ${kind}`, dir: pageDirection() === "rtl" ? "ltr" : undefined, children: valueOf(value) });
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"“{title}” is read: the master asks you where to start": "تمت قراءة «{title}»: يسألك مدير اللعبة من أين تريد أن تبدأ",
|
|
3
3
|
"{count} being read": "{count} قيد القراءة",
|
|
4
4
|
"{count} books read": "قُرئت {count} كتب",
|
|
5
|
-
"{count} failures": "{count} إخفاقات",
|
|
6
5
|
"{count} feet": "{count} قدم",
|
|
7
6
|
"{count} in this campaign": "{count} في هذه الحملة",
|
|
8
7
|
"{count} in use": "{count} قيد الاستخدام",
|
|
@@ -28,9 +27,6 @@
|
|
|
28
27
|
"{dice}, free roll, not logged": "{dice}، رمية حرة، غير مسجّلة",
|
|
29
28
|
"{distance} {direction}": "{distance} نحو {direction}",
|
|
30
29
|
"{distance} from you": "على بُعد {distance} منك",
|
|
31
|
-
"{face}: {count} failures": "{face}: {count} إخفاقات",
|
|
32
|
-
"{face}: back up with {value}": "{face}: العودة إلى الوقوف بـ {value}",
|
|
33
|
-
"{face}: two failures": "{face}: إخفاقان",
|
|
34
30
|
"{file} is ready.": "{file} جاهز.",
|
|
35
31
|
"{fuel}: {count} left": "{fuel}: المتبقي {count}",
|
|
36
32
|
"{hours}h": "{hours} س",
|
|
@@ -61,7 +57,6 @@
|
|
|
61
57
|
"{terrain} terrain": "تضاريس {terrain}",
|
|
62
58
|
"{title}: {says}": "{title}: {says}",
|
|
63
59
|
"{value} of {max}": "{value} من {max}",
|
|
64
|
-
"{value} or more: a success": "{value} أو أكثر: نجاح",
|
|
65
60
|
"{who} learned: {what}": "{who} – معلومة جديدة: {what}",
|
|
66
61
|
"{who} to {place}": "{who} إلى {place}",
|
|
67
62
|
"{who} to the open": "{who} إلى العراء",
|
|
@@ -103,7 +98,7 @@
|
|
|
103
98
|
"Add a {die}: {count} chosen": "إضافة حجر {die}: {count} مختارة",
|
|
104
99
|
"add a die to the die {condition}": "إضافة رمية إلى حجر النرد نفسه {condition}",
|
|
105
100
|
"Add to {setting}": "إضافة إلى {setting}",
|
|
106
|
-
"Add what you know, e.g.
|
|
101
|
+
"Add what you know, e.g. Initiative": "أضف ما تعرفه، مثل المبادرة",
|
|
107
102
|
"Add, e.g. spiders": "أضف، مثل العناكب",
|
|
108
103
|
"Add, e.g. torture": "أضف، مثل التعذيب",
|
|
109
104
|
"Add…": "إضافة…",
|
|
@@ -140,10 +135,10 @@
|
|
|
140
135
|
"as written: food and water each day, light as it burns, fatigue and encumbrance": "كما هو مكتوب: الطعام والماء كل يوم، والضوء أثناء احتراقه، والتعب والحمل الزائد",
|
|
141
136
|
"Ash": "زان",
|
|
142
137
|
"Asking npm and GitHub…": "جارٍ الاستعلام من npm وGitHub…",
|
|
138
|
+
"Asking npm for the newest version…": "جارٍ سؤال npm عن أحدث إصدار…",
|
|
143
139
|
"at {place}": "في {place}",
|
|
144
140
|
"at key moments, as the master chooses, the character themselves, knowing only what they know, where your AI app can": "في اللحظات المفصلية، حسبما يختار مدير اللعبة: الشخصية نفسها، ولا تعرف إلا ما تعرفه، حيثما يسمح تطبيق الذكاء الاصطناعي لديك",
|
|
145
141
|
"at least {points} at level {level}": "{points} على الأقل في المستوى {level}",
|
|
146
|
-
"at the maximum": "عند الحد الأقصى",
|
|
147
142
|
"Attack": "هجوم",
|
|
148
143
|
"Attack with {item}": "الهجوم باستخدام {item}",
|
|
149
144
|
"Author": "المؤلف",
|
|
@@ -159,8 +154,6 @@
|
|
|
159
154
|
"Back to the campaign's start: everything that happened since is gone from the story.": "العودة إلى بداية الحملة: كل ما حدث منذ ذلك الحين يختفي من القصة.",
|
|
160
155
|
"Back to the party": "العودة إلى الفريق",
|
|
161
156
|
"Back to the start of play, after session zero.": "العودة إلى بداية اللعب، بعد الجلسة صفر.",
|
|
162
|
-
"Back up": "عودة إلى الوقوف",
|
|
163
|
-
"Back up with {value}": "عودة إلى الوقوف بـ {value}",
|
|
164
157
|
"Backstory": "الخلفية",
|
|
165
158
|
"Before session zero": "قبل الجلسة صفر",
|
|
166
159
|
"Behind the screen": "خلف شاشة مدير اللعبة",
|
|
@@ -182,14 +175,13 @@
|
|
|
182
175
|
"Camp": "معسكر",
|
|
183
176
|
"Can't act": "لا يستطيع التصرف",
|
|
184
177
|
"Cancel": "إلغاء",
|
|
185
|
-
"Cast": "إلقاء",
|
|
186
|
-
"Cast {item}": "إلقاء {item}",
|
|
187
178
|
"Castle": "قلعة",
|
|
188
179
|
"Catalog": "الفهرس",
|
|
189
180
|
"Cave": "كهف",
|
|
190
181
|
"challenge": "تحدٍّ",
|
|
191
182
|
"Change it in Settings.": "غيّره من الإعدادات.",
|
|
192
183
|
"Change the campaign's name": "تغيير اسم الحملة",
|
|
184
|
+
"Change the rules": "تغيير القواعد",
|
|
193
185
|
"Change what you sent": "تعديل ما أرسلته",
|
|
194
186
|
"Changing the library…": "جارٍ تغيير المكتبة…",
|
|
195
187
|
"Chapter {number}": "الفصل {number}",
|
|
@@ -211,6 +203,7 @@
|
|
|
211
203
|
"Clock": "العدّاد",
|
|
212
204
|
"Close": "إغلاق",
|
|
213
205
|
"Close the free roll": "إغلاق الرمية الحرة",
|
|
206
|
+
"Close this chat.": "أغلق هذه المحادثة.",
|
|
214
207
|
"Codex is on this computer but not logged in. To have pictures:\n1. Open a terminal: on Windows, Start, then type Terminal.\n2. Paste `codex login` and sign in with your ChatGPT account in the browser that opens.\nCodex makes them with your ChatGPT plan, never paying by the picture.": "Codex موجود على هذا الحاسوب لكن دون تسجيل دخول. للحصول على الصور:\n1. افتح الطرفية: في Windows اضغط ابدأ ثم اكتب Terminal.\n2. الصق `codex login` وسجّل الدخول بحساب ChatGPT في المتصفح الذي سيُفتح.\nينشئها Codex عبر خطة ChatGPT الخاصة بك، دون أي دفع عن كل صورة.",
|
|
215
208
|
"Codex makes them on this computer, from your ChatGPT plan.": "ينشئها Codex على هذا الحاسوب عبر خطة ChatGPT الخاصة بك.",
|
|
216
209
|
"Codex on this computer pays for each picture with an API key, which the engine never uses. To make them with your ChatGPT plan instead:\n1. Open a terminal: on Windows, Start, then type Terminal.\n2. Paste `codex login` and sign in with your ChatGPT account in the browser that opens.": "يدفع Codex على هذا الحاسوب مقابل كل صورة بمفتاح API، والمحرك لا يستخدمه أبدًا. لإنشاء الصور عبر خطة ChatGPT الخاصة بك بدلًا من ذلك:\n1. افتح الطرفية: في Windows اضغط ابدأ ثم اكتب Terminal.\n2. الصق `codex login` وسجّل الدخول بحساب ChatGPT في المتصفح الذي سيُفتح.",
|
|
@@ -244,7 +237,6 @@
|
|
|
244
237
|
"Days": "الأيام",
|
|
245
238
|
"Days of the story": "أيام القصة",
|
|
246
239
|
"dead": "ميت",
|
|
247
|
-
"Dead": "ميت",
|
|
248
240
|
"Deadline": "الموعد النهائي",
|
|
249
241
|
"Deadline of {quest}": "الموعد النهائي لـ {quest}",
|
|
250
242
|
"deadline of {quests}": "الموعد النهائي لـ {quests}",
|
|
@@ -262,7 +254,6 @@
|
|
|
262
254
|
"Dice": "النرد",
|
|
263
255
|
"Dice and measures": "النرد والمقاييس",
|
|
264
256
|
"Dice edges": "حواف النرد",
|
|
265
|
-
"Dice rolled": "النرد المرميّ",
|
|
266
257
|
"Dice set": "طقم النرد",
|
|
267
258
|
"Dice sound": "صوت النرد",
|
|
268
259
|
"Dice: a check the master asks, or a free roll": "النرد: اختبار يطلبه مدير اللعبة، أو رمية حرة",
|
|
@@ -272,7 +263,6 @@
|
|
|
272
263
|
"disgusted": "اشمئزاز",
|
|
273
264
|
"Documents": "المستندات",
|
|
274
265
|
"done": "تم",
|
|
275
|
-
"Done": "تم",
|
|
276
266
|
"Done.": "تم.",
|
|
277
267
|
"door": "باب",
|
|
278
268
|
"Double the dice": "مضاعفة النرد",
|
|
@@ -283,7 +273,6 @@
|
|
|
283
273
|
"drop the {count} lowest": "استبعاد أدنى {count}",
|
|
284
274
|
"drop the highest": "استبعاد الأعلى",
|
|
285
275
|
"drop the lowest": "استبعاد الأدنى",
|
|
286
|
-
"Dying": "يحتضر",
|
|
287
276
|
"e.g. third person, past tense; more dialogue": "مثلًا: ضمير الغائب، بصيغة الماضي، مع حوار أكثر",
|
|
288
277
|
"Each campaign then turns on its own; the master searches them after the game system, citing the book and the page.": "بعد ذلك تُفعّل كل حملة المجلدات التي تستخدمها، ويرجع إليها مدير اللعبة بعد نظام اللعب، مع ذكر الكتاب والصفحة.",
|
|
289
278
|
"each rule explained the first time, the numbers shown, a short review after fights": "كل قاعدة تُشرح أول مرة، وتُعرض الأرقام، ومراجعة قصيرة بعد كل قتال",
|
|
@@ -293,6 +282,7 @@
|
|
|
293
282
|
"Easy": "سهل",
|
|
294
283
|
"Elsewhere": "في مكان آخر",
|
|
295
284
|
"Emerald": "زمرد",
|
|
285
|
+
"Engine": "المحرّك",
|
|
296
286
|
"Epic": "ملحمي",
|
|
297
287
|
"Episodes": "الحلقات",
|
|
298
288
|
"Equip": "تجهيز",
|
|
@@ -316,7 +306,6 @@
|
|
|
316
306
|
"factions, threats and places with secrets, no main plot: you choose where to go": "فصائل وتهديدات وأماكن لها أسرارها، دون حبكة رئيسية: أنت تختار وجهتك",
|
|
317
307
|
"Failed": "فاشلة",
|
|
318
308
|
"failed: {count}": "فاشلة: {count}",
|
|
319
|
-
"Failure": "إخفاق",
|
|
320
309
|
"Farm": "مزرعة",
|
|
321
310
|
"feet and miles": "الأقدام والأميال",
|
|
322
311
|
"Fight corporate control of technology, not our right to use it.": "حاربوا سيطرة الشركات الكبرى على التكنولوجيا، لا حقّنا في استخدامها.",
|
|
@@ -386,16 +375,10 @@
|
|
|
386
375
|
"I attack at {square} with {item}.": "أهاجم المربع {square} باستخدام {item}.",
|
|
387
376
|
"I attack myself with {item}.": "أهاجم نفسي باستخدام {item}.",
|
|
388
377
|
"I attack with {item}.": "أهاجم باستخدام {item}.",
|
|
389
|
-
"I cast {item} at {square}.": "ألقي {item} على المربع {square}.",
|
|
390
|
-
"I cast {item} on {target}.": "ألقي {item} على {target}.",
|
|
391
|
-
"I cast {item} on myself.": "ألقي {item} على نفسي.",
|
|
392
|
-
"I cast {item}.": "ألقي {item}.",
|
|
393
378
|
"I equip {item}.": "أتجهز بـ {item}.",
|
|
394
379
|
"I know it": "أعرفها",
|
|
395
380
|
"I opened a new chat": "فتحت محادثة جديدة",
|
|
396
|
-
"I prepare {item}.": "أجهّز {item}.",
|
|
397
381
|
"I put away {item}.": "أضع {item} جانبًا.",
|
|
398
|
-
"I spend none": "لن أنفق أيًا منها",
|
|
399
382
|
"I talk to {target}:": "أتحدث مع {target}:",
|
|
400
383
|
"I use {item} at {square}.": "أستخدم {item} على المربع {square}.",
|
|
401
384
|
"I use {item} on {target}.": "أستخدم {item} على {target}.",
|
|
@@ -429,6 +412,8 @@
|
|
|
429
412
|
"Install {name} again": "إعادة تثبيت {name}",
|
|
430
413
|
"Install it again": "إعادة التثبيت",
|
|
431
414
|
"Installed": "المثبّتة",
|
|
415
|
+
"Installed another way, in {folder}: update it the way you installed it.": "مثبّت بطريقة أخرى، في {folder}: حدّثه بالطريقة التي ثبّته بها.",
|
|
416
|
+
"Installed with npm link from {folder}, for its development: update it there, with git pull and npm run build.": "مثبّت عبر npm link من {folder}، لتطويره: حدّثه هناك، عبر git pull و npm run build.",
|
|
432
417
|
"it asks for a password to open: save a copy without one.": "يطلب كلمة مرور لفتحه: احفظ نسخة منه بدون كلمة مرور.",
|
|
433
418
|
"It asks whether code that RPG Engine did not publish may run here. Can't see it? It is behind the browser.": "تسأل إن كان يجوز تشغيل شيفرة لم تنشرها RPG Engine هنا. لا تراها؟ إنها خلف المتصفح.",
|
|
434
419
|
"It asks whether RPG Engine may read the documents of that folder. Can't see it? It is behind the browser.": "تسأل النافذة هل يمكن لـ RPG Engine قراءة مستندات ذلك المجلد. لا تراها؟ إنها خلف المتصفح.",
|
|
@@ -468,7 +453,6 @@
|
|
|
468
453
|
"left": "متبقٍّ",
|
|
469
454
|
"Left to the master: {settings}.": "متروكة لمدير اللعبة: {settings}.",
|
|
470
455
|
"Left to the master: they choose, and tell you.": "متروكة لمدير اللعبة: يختار هو ويخبرك.",
|
|
471
|
-
"Left: {count}": "المتبقي: {count}",
|
|
472
456
|
"Legend": "مفتاح الخريطة",
|
|
473
457
|
"less": "أقل",
|
|
474
458
|
"Lethality": "الفتك",
|
|
@@ -551,7 +535,6 @@
|
|
|
551
535
|
"No scene of the story on this day.": "لا مشهد من القصة في هذا اليوم.",
|
|
552
536
|
"No window for your yes opens on this computer: add it from your terminal, in the campaign's folder.": "لا تُفتح على هذا الحاسوب نافذة لموافقتك: أضِفه من الطرفية داخل مجلد الحملة.",
|
|
553
537
|
"None": "لا شيء",
|
|
554
|
-
"None left": "نفدت",
|
|
555
538
|
"None open now.": "لا توجد مهام مفتوحة الآن.",
|
|
556
539
|
"None yet: add one in Add, from the catalog, a .zip or a link.": "لا شيء بعد: أضف إضافة من «إضافة»، عبر الكتالوج أو ملف .zip أو رابط.",
|
|
557
540
|
"None yet: add the folder of your manuals.": "لا شيء بعد: أضف مجلد كتيباتك.",
|
|
@@ -585,6 +568,7 @@
|
|
|
585
568
|
"Notice": "إشعار",
|
|
586
569
|
"Now": "الآن",
|
|
587
570
|
"Now acting": "يتصرف الآن",
|
|
571
|
+
"npm does not answer: a newer version cannot be checked now.": "npm لا يستجيب: لا يمكن الآن التحقق من وجود إصدار أحدث.",
|
|
588
572
|
"npm does not answer.": "npm لا يستجيب.",
|
|
589
573
|
"Obsidian": "سبج",
|
|
590
574
|
"Of the {die}, which count": "من أحجار {die}، ما يُحتسب",
|
|
@@ -603,7 +587,6 @@
|
|
|
603
587
|
"On whom": "على مَن",
|
|
604
588
|
"One {die} less": "حجر {die} أقل",
|
|
605
589
|
"One change at a time: wait for the one under way, then try again.": "تغيير واحد في كل مرة: انتظر انتهاء التغيير الجاري، ثم أعد المحاولة.",
|
|
606
|
-
"One die at a time: stop when you like.": "حجر نرد واحد في كل مرة: توقف متى شئت.",
|
|
607
590
|
"one for each new place and quest, and for each one you meet": "صورة لكل مكان ومهمة جديدين، ولكل شخصية تقابلها",
|
|
608
591
|
"One less": "واحد أقل",
|
|
609
592
|
"One package at a time: wait for the one under way, then try again.": "حزمة واحدة في كل مرة: انتظر انتهاء الحزمة الجارية ثم أعد المحاولة.",
|
|
@@ -650,12 +633,11 @@
|
|
|
650
633
|
"Plain": "بسيط",
|
|
651
634
|
"Plains": "سهول",
|
|
652
635
|
"Play": "اللعب",
|
|
636
|
+
"Play by {rules}?": "اللعب وفق {rules}؟",
|
|
653
637
|
"Port": "ميناء",
|
|
654
638
|
"Portal": "بوابة",
|
|
655
639
|
"Premise": "الفكرة",
|
|
656
640
|
"Preparation": "التهيئة",
|
|
657
|
-
"Prepare": "تحضير",
|
|
658
|
-
"Prepare {item}": "تحضير {item}",
|
|
659
641
|
"Previous month": "الشهر السابق",
|
|
660
642
|
"Propose changes to your story": "اقتراح تعديلات على قصتك",
|
|
661
643
|
"Prose": "السرد",
|
|
@@ -668,6 +650,7 @@
|
|
|
668
650
|
"Questions": "الأسئلة",
|
|
669
651
|
"Quests": "المهام",
|
|
670
652
|
"quicker answers, a little less thought": "ردود أسرع وتفكير أقل قليلًا",
|
|
653
|
+
"Quit the app you play in completely, not just its window, then open it again.": "أغلق التطبيق الذي تلعب فيه كليًا، لا نافذته فقط، ثم افتحه من جديد.",
|
|
671
654
|
"Read": "مقروءة",
|
|
672
655
|
"Read all you know": "قراءة كل ما تعرفه",
|
|
673
656
|
"Read elsewhere": "قُرئت في مكان آخر",
|
|
@@ -677,6 +660,7 @@
|
|
|
677
660
|
"Ready buttons": "أزرار جاهزة",
|
|
678
661
|
"Region": "منطقة",
|
|
679
662
|
"Regions and ways": "المناطق والطرق",
|
|
663
|
+
"Reload this page.": "أعد تحميل هذه الصفحة.",
|
|
680
664
|
"Report a problem": "الإبلاغ عن مشكلة",
|
|
681
665
|
"Report a problem with {name}": "الإبلاغ عن مشكلة في {name}",
|
|
682
666
|
"reroll once {condition}": "إعادة الرمي مرة واحدة {condition}",
|
|
@@ -695,9 +679,12 @@
|
|
|
695
679
|
"Round": "الجولة",
|
|
696
680
|
"Round {round}": "الجولة {round}",
|
|
697
681
|
"Rounded": "مستديرة",
|
|
682
|
+
"RPG Engine {version} is installed.": "تم تثبيت RPG Engine {version}.",
|
|
683
|
+
"RPG Engine was not updated.": "لم يُحدَّث RPG Engine.",
|
|
698
684
|
"Ruby": "ياقوت أحمر",
|
|
699
685
|
"Ruin": "أطلال",
|
|
700
686
|
"Rules": "القواعد",
|
|
687
|
+
"Ruleset": "إصدار القواعد",
|
|
701
688
|
"sad": "حزن",
|
|
702
689
|
"Said to the master": "قيلت لمدير اللعبة",
|
|
703
690
|
"Sapphire": "ياقوت أزرق",
|
|
@@ -716,6 +703,7 @@
|
|
|
716
703
|
"Search what your character knows": "البحث فيما تعرفه شخصيتك",
|
|
717
704
|
"Sections": "الأقسام",
|
|
718
705
|
"See it in Installed": "عرضها في «المثبّتة»",
|
|
706
|
+
"See RPG Engine": "عرض RPG Engine",
|
|
719
707
|
"Send": "إرسال",
|
|
720
708
|
"Send to the master": "إرسال إلى مدير اللعبة",
|
|
721
709
|
"Sent to the master: they write it in your page once you agree in the chat.": "أُرسلت إلى مدير اللعبة: يكتبها في صفحتك متى اتفقتما في المحادثة.",
|
|
@@ -762,6 +750,7 @@
|
|
|
762
750
|
"south-south-west": "الجنوب الجنوبي الغربي",
|
|
763
751
|
"south-west": "الجنوب الغربي",
|
|
764
752
|
"spring": "الربيع",
|
|
753
|
+
"Start a new chat in the campaign, as you always do.": "ابدأ محادثة جديدة في الحملة، كما تفعل دائمًا.",
|
|
765
754
|
"Start over": "البدء من جديد",
|
|
766
755
|
"Start the campaign over?": "البدء من جديد في الحملة؟",
|
|
767
756
|
"Start the campaign over…": "البدء من جديد في الحملة…",
|
|
@@ -771,7 +760,6 @@
|
|
|
771
760
|
"Stop following": "إيقاف المتابعة",
|
|
772
761
|
"Stories": "القصص",
|
|
773
762
|
"Story": "القصة",
|
|
774
|
-
"Success": "نجاح",
|
|
775
763
|
"Suggested": "مقترح",
|
|
776
764
|
"summer": "الصيف",
|
|
777
765
|
"Support {product}": "دعم {product}",
|
|
@@ -823,6 +811,7 @@
|
|
|
823
811
|
"The extension is in the campaign: it counts from now on.": "الامتداد في الحملة الآن، ويسري من هذه اللحظة.",
|
|
824
812
|
"The folder is on this computer and in this campaign: its books are read now, then the master searches them.": "المجلد موجود على هذا الكمبيوتر وفي هذه الحملة: تُقرأ كتبه الآن، ثم يرجع إليها مدير اللعبة.",
|
|
825
813
|
"The game": "اللعبة",
|
|
814
|
+
"The game follows these rules from the master's next move: the sheets are worked out with them, and the master reads them.": "من الحركة التالية لمدير اللعبة تتبع اللعبة هذه القواعد: تُحسب أوراق الشخصيات بها من جديد، ويقرؤها مدير اللعبة.",
|
|
826
815
|
"The game gave no saves: reload the page.": "لم تقدّم اللعبة نقاط الحفظ: أعد تحميل الصفحة.",
|
|
827
816
|
"The game gave no setup: reload the page.": "لم تقدّم اللعبة التهيئة: أعد تحميل الصفحة.",
|
|
828
817
|
"The game goes back to how it was then. What happened after it is gone from the story, and so are the {count} saves after it.": "تعود اللعبة إلى ما كانت عليه حينها. وما حدث بعد ذلك يختفي من القصة، وكذلك نقاط الحفظ التي بعدها وعددها {count}.",
|
|
@@ -844,6 +833,7 @@
|
|
|
844
833
|
"the language of this page": "لغة هذه الصفحة",
|
|
845
834
|
"the language the master plays in, and the page's too when it is translated": "اللغة التي يلعب بها مدير اللعبة، ولغة الصفحة أيضًا إن كانت مترجمة",
|
|
846
835
|
"The master": "مدير اللعبة",
|
|
836
|
+
"The master goes on with {version} in this chat. To play with {next}:": "في هذه المحادثة يتابع مدير اللعبة مع {version}. للعب مع {next}:",
|
|
847
837
|
"The master has already heard it.": "سمعها مدير اللعبة بالفعل.",
|
|
848
838
|
"The master has read it": "قرأها مدير اللعبة",
|
|
849
839
|
"The master hears it at their next call": "يتلقاها مدير اللعبة في ندائه التالي",
|
|
@@ -923,7 +913,6 @@
|
|
|
923
913
|
"Turns": "الأدوار",
|
|
924
914
|
"Tutorial": "شرح تعليمي",
|
|
925
915
|
"Twice the dice, the same number added": "ضعف النرد، مع إضافة العدد نفسه",
|
|
926
|
-
"Two failures": "إخفاقان",
|
|
927
916
|
"under {map}": "تحت {map}",
|
|
928
917
|
"Uninstall": "إلغاء التثبيت",
|
|
929
918
|
"Uninstall {name} from this computer?": "إلغاء تثبيت {name} من هذا الحاسوب؟",
|
|
@@ -937,14 +926,19 @@
|
|
|
937
926
|
"until day {day}": "حتى اليوم {day}",
|
|
938
927
|
"until day {day}, {time}": "حتى اليوم {day}، {time}",
|
|
939
928
|
"until the scene ends": "حتى نهاية المشهد",
|
|
929
|
+
"Up to date": "محدَّث",
|
|
940
930
|
"Update": "تحديث",
|
|
941
931
|
"Update {name} to {version}": "تحديث {name} إلى {version}",
|
|
932
|
+
"Update RPG Engine first": "حدّث RPG Engine أولًا",
|
|
933
|
+
"Updating RPG Engine…": "جارٍ تحديث RPG Engine…",
|
|
942
934
|
"Updating…": "جارٍ التحديث…",
|
|
943
935
|
"Use": "استخدام",
|
|
944
936
|
"Use {item}": "استخدام {item}",
|
|
945
937
|
"used": "مستخدم",
|
|
946
938
|
"Veils": "أستار",
|
|
947
939
|
"Verified": "موثّقة",
|
|
940
|
+
"Version {version} needs a newer RPG Engine.": "يحتاج الإصدار {version} إلى RPG Engine أحدث.",
|
|
941
|
+
"Version {version} needs RPG Engine {engine}.": "يحتاج الإصدار {version} إلى RPG Engine {engine}.",
|
|
948
942
|
"Village": "قرية",
|
|
949
943
|
"waiting for the game": "في انتظار اللعبة",
|
|
950
944
|
"wall": "جدار",
|
|
@@ -958,8 +952,10 @@
|
|
|
958
952
|
"what a fall means": "معنى السقوط",
|
|
959
953
|
"what happens only off screen, without details": "ما يحدث خارج المشهد فقط، بلا تفاصيل",
|
|
960
954
|
"What is added to the game. The master hears of each change at their next move.": "ما يُضاف إلى اللعبة. يعلم مدير اللعبة بكل تغيير عند دوره التالي.",
|
|
955
|
+
"What is already in play stays as it is, and you can go back whenever you want.": "ما هو في اللعب يبقى كما هو، ويمكنك العودة متى شئت.",
|
|
961
956
|
"What it wrote in the campaign stays, and comes back if you install it again.": "ما كتبته في الحملة يبقى، ويعود إذا ثبّتّها من جديد.",
|
|
962
957
|
"what never appears in the game": "ما لا يظهر في اللعبة أبدًا",
|
|
958
|
+
"What runs the game: the master's tools and this page.": "ما يشغّل اللعبة: أدوات مدير اللعبة وهذه الصفحة.",
|
|
963
959
|
"What the master asks": "ما يسأله مدير اللعبة",
|
|
964
960
|
"what the master asks you to roll": "ما يطلب منك مدير اللعبة رميه",
|
|
965
961
|
"what the master has explained: take one off to have it explained again": "ما شرحه مدير اللعبة: أزل واحدًا ليشرحه من جديد",
|