Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
17
scripts/V4PcjtHde941wv6J.js
Normal file
17
scripts/V4PcjtHde941wv6J.js
Normal file
@@ -0,0 +1,17 @@
|
||||
await this.actor.addCondition("prone");
|
||||
const SL = this.effect.sourceTest.result.slOver;
|
||||
const stunned = 1 + SL;
|
||||
await this.actor.addCondition("stunned", stunned);
|
||||
|
||||
if (stunned > this.actor.system.characteristics.t.bonus) {
|
||||
const crit = `<a data-action="clickTable" class="action-link critical" data-table="crithead" data-modifier="0"><i class="fas fa-list"></i> Critique</a>`;
|
||||
|
||||
const Test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {
|
||||
skipTargets: true,
|
||||
appendTitle: ` - ${this.effet.name}`,
|
||||
fields: {difficulty: "average"},
|
||||
context: {failure: `Encaisse ${crit} à la tête.`}
|
||||
})
|
||||
|
||||
await test.roll();
|
||||
}
|
||||
Reference in New Issue
Block a user