Ajout de la commande /voyage et grosse MAJK de la commande /auberge

This commit is contained in:
2026-01-07 15:04:49 +01:00
parent c8119601d8
commit f525b6c07a
1329 changed files with 24138 additions and 4397 deletions

View File

@@ -0,0 +1,22 @@
const bloodyFluxUUID = "Compendium.wfrp4e-core.items.Item.herUmN51D9TiL2Vn";
const test = await this.actor.setupSkill(game.i18n.localize("NAME.Résistance"), {
skipTargets: true,
appendTitle: `${this.effect.name}`,
fields: {difficulty: "easy"},
context: {
success: `Butcher est soigné.`,
failure: `Butcher contracte @UUID[${bloodyFluxUUID}].`
}
});
await Test.roll();
if (Test.Échoué) {
await this.actor.addEffectItems(bloodyFluxUUID, this.effet);
} else {
const SL = Test.result.SL;
const heal = 1 + SL;
await this.actor.modifyWounds(heal);
this.script.message(`Butcher a soigné ${heal} Blessures.`);
}