Fix 7 pre-existing syntax bugs in item-effect scripts

These predate today's script sync (not among the 621 copied files) --
stale/corrupted copies that had already diverged from FR's own fixed
versions, so a syntax error would have crashed the moment the item's
effect actually ran in Foundry:

- E7D4bxz8gy4e1wL7.js: whole condition had no body/return at all
- FAB12eLcSCAOOQwk.js: "scirptMessage" typo + missing closing paren
- Me1wS5XdqUEy7OGt.js: missing paren/brace in a template literal,
  and a literal "{this.actor.name}" instead of "${this.actor.name}"
- Na7Nanl9YmxZlTo7.js: stray unmatched closing paren
- nGTxNWBUBgTr87wU.js: loose "speaker : {...}" args instead of being
  part of the single options object
- sPvfYQEnyAYNpIhF.js: missing comma between two object properties
- vvVhAqreedtmOR9b.js: missing closing brace before the closing paren

Rebuilt modules/loadScripts.js; all 2114 scripts now parse cleanly.
This commit is contained in:
2026-07-21 15:54:43 +02:00
parent a7f30267fd
commit 69a69e2ce4
8 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
let loc = (await game.wfrp4e.tables.rollTable("hitloc")).result;
let critTable = `crit${this.generalizeTable(loc)`;
let critTable = `crit${this.generalizeTable(loc)}`;
let crit = (await game.wfrp4e.tables.rollTable(critTable)).result;
this.script.scriptMessage(`{this.actor.name} suffers a ${crit} (location : ${loc}). Do not apply bleeding or any additonnal wounds.`);
this.script.message(`${this.actor.name} suffers a ${crit} (location : ${loc}). Do not apply bleeding or any additonnal wounds.`);