Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
11
scripts/m4eagTrVOXtotonR.js
Normal file
11
scripts/m4eagTrVOXtotonR.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// Get the size
|
||||
let size = this.actor.sizeNum
|
||||
let diff = "difficult";
|
||||
if (size < 5) { // 5 = Monstrous
|
||||
diff = "hard";
|
||||
}
|
||||
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {fields : {difficulty : diff}, appendTitle : ` - ${this.effect.name}`})
|
||||
await test.roll();
|
||||
if (test.failed) {
|
||||
this.actor.addSystemEffect("fear")
|
||||
}
|
||||
Reference in New Issue
Block a user