Prüfung der letzten fr-fr-Commits auf funktionale (nicht-inhaltliche)
Änderungen ergab drei Bugs derselben Klasse wie in fr-fr commits
c54a625a und 05cc3eb9 (Wörter, die versehentlich echte Code-Bezeichner
statt Anzeigetext ersetzt haben):
- scripts/0hgTyeaEhMBLwzUn.js: rief `game.wfrp4e.utility.postPeur(...)`
auf (französisches Leftover aus dem fr-fr-Fork, es gibt keine
Methode mit diesem Namen) und suchte den Trait per `.has("Peur")`.
Korrigiert zu `.postFear(...)` und `.has("Angst")` (unserer eigenen
Übersetzung von "Fear" in wfrp4e-core.items.json).
- scripts/V4PcjtHde941wv6J.js: `const Test = ...` wurde zwei Zeilen
später als `test.roll()` (kleingeschrieben) referenziert ->
ReferenceError bei jedem Auslösen dieses Effekts. Umbenannt zu
`const test`.
- modules/addon-register.js: der wfrp4e-System-Code in
handleCorruptionResult/_onResist vergleicht Corruption-Schweregrade
über game.i18n.localize() - das funktioniert nur zufällig auf
Englisch. Da unsere CORRUPTION.Minor/Moderate/Major bereits korrekt
als "Leicht"/"Mittel"/"Schwer" übersetzt sind, wurden Corruption-
Punkte aus fehlgeschlagenen Corruption-Proben nie korrekt
angewendet. Patch von fr-fr (commit c54a625a) übernommen und auf
unsere deutschen CORRUPTION-Keys angepasst.
modules/loadScripts.js neu gepackt (npm run build / scriptPacker.js).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
scripts/ was missing 621 of FR's 2114 effect scripts (referenced via
game.wfrp4e.config.effectScripts by Foundry item id). Copied them all
over so the registry is complete, then translated the 129 that still
contained French user-facing text: skill/talent/trapping name arrays
in NPC-statblock-building scripts, chat/notification messages, and
dialog prompts. Skill/talent/trait names were cross-checked against
the already-translated core compendium rather than translated ad hoc,
since Foundry looks these up by exact document name.
Also fixed real bugs found along the way (present in FR's originals
too, just inherited via the copy):
- Two "let x / let x" duplicate-declaration scripts (SyntaxError)
- A "0rgs.actor" typo (ReferenceError) for "args.actor"
- Two "effet.update(...)" typos for "effect.update(...)"
- A corrupted ui.notifications.warn(...) template literal in 3 of the
NPC-statblock scripts, mangled into stray leftover code text
- 19 scripts across the whole scripts/ folder (not just the 621) using
the wrong game.i18n.localize() key (NAME.Résistance/Démoniaque/
Mort-vivant instead of the actual English key names NAME.Endurance/
Daemonic/Undead), which silently failed to resolve in any language
Rebuilt modules/loadScripts.js via `npm run build` (2114 scripts).
Known follow-up (out of scope here, pre-existing in the scripts DE
already had before this sync): 7 scripts elsewhere in scripts/ have
unrelated syntax bugs, and one has a lingering French accent.