Files
foundryvtt-wh4-lang-fr-fr/scripts/EC8cZmqrE095cDc2.js

31 lines
960 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const actor = args.actor;
if (actor.itemTypes.skill.find(s => s.name === "Savoir (Voies fluviales)")) {
const loreTest = await actor.setupSkill('Savoir (Voies fluviales)', {
appendTitle: ` ${this.effect.name}`,
skipTargets: true,
fields: {difficulty: 'hard'},
characteristic: 'int',
});
await loreTest.roll();
if (loreTest.succeeded) {
loreTest.result.other.push(`<b>${actor.name}</b> reconnaît les leurres des Lurkerfish.`);
loreTest.renderRollCard();
return;
}
}
let Test = await actor.setupSkill('Calme', {
appendTitle: ` ${this.effect.name}`,
skipTargets: true,
fields: {difficulty: 'easy'},
characteristic: 'wp',
});
await Test.roll();
if (!Test.succeeded) {
Test.result.other.push(`<b>${actor.name}</b> est devenu fasciné par la vue et incapable d'effectuer une quelconque action autre que de se déplacer vers la lumière.`);
Test.renderRollCard();
actor.addCondition("unconscious");
}