Files
wfrp-4e-de/scripts/Me1wS5XdqUEy7OGt.js
T
alzer 69a69e2ce4 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.
2026-07-21 15:54:43 +02:00

5 lines
314 B
JavaScript

let loc = (await game.wfrp4e.tables.rollTable("hitloc")).result;
let critTable = `crit${this.generalizeTable(loc)}`;
let crit = (await game.wfrp4e.tables.rollTable(critTable)).result;
this.script.message(`${this.actor.name} suffers a ${crit} (location : ${loc}). Do not apply bleeding or any additonnal wounds.`);