Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
let test = await this.actor.setupCharacteristic("t", {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "hard"}})
|
||||
await test.roll();
|
||||
if (test.failed)
|
||||
let test = await this.actor.setupCharacteristic("t", {skipTargets: true, appendTitle : ` - ${this.effet.name}`, fields : {difficulty : "hard"}})
|
||||
await Test.roll();
|
||||
if (Test.Échoué)
|
||||
{
|
||||
let roll = await new Roll("1d10").roll();
|
||||
let roll = await new Roll("1d10").roll({allowInteractive : false});
|
||||
roll.toMessage(this.script.getChatData())
|
||||
|
||||
this.script.scriptMessage(await this.actor.applyBasicDamage(roll.total, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg : true}))
|
||||
this.script.message(await this.actor.applyBasicDamage(roll.total, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg : true}))
|
||||
}
|
||||
Reference in New Issue
Block a user