Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
18
scripts/hL3JUSY3xMA4zj2Q.js
Normal file
18
scripts/hL3JUSY3xMA4zj2Q.js
Normal file
@@ -0,0 +1,18 @@
|
||||
if (this.sourceActor.uuid === this.actor.uuid) return;
|
||||
|
||||
const test = await this.actor.setupCharacteristic("t", {
|
||||
skipTargets: true,
|
||||
appendTitle: ` — ${this.effet.name}`,
|
||||
fields: {
|
||||
difficulty: "difficult"
|
||||
},
|
||||
context: {
|
||||
success: "Est capable de se relever !",
|
||||
failure: "Est tombé à terre !",
|
||||
}
|
||||
});
|
||||
|
||||
await Test.roll();
|
||||
if (Test.failure) {
|
||||
await this.actor.addCondition("prone");
|
||||
}
|
||||
Reference in New Issue
Block a user