foundryvtt-wh4-lang-fr-fr/reference_scripts/gOm8utR3HLQBT5hA.js

6 lines
205 B
JavaScript
Raw Permalink Normal View History

2024-06-06 21:09:27 +02:00
let {value} = this.effect.getFlag("wfrp4e-soc", "m4result") || {};
if (value === 0)
args.actor.system.status.mood.value = 0;
else if (value !== undefined)
args.actor.system.status.mood.value += value;