forked from public/foundryvtt-wh4-lang-fr-fr
Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
11
scripts/AI7iVbQMPzXMP5on.js
Normal file
11
scripts/AI7iVbQMPzXMP5on.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const hours = new Roll("2d10");
|
||||
await hours.toMessage({flavor: this.effect.name + " (heures)"});
|
||||
|
||||
const bonus = new Roll("2d10");
|
||||
await bonus.toMessage({flavor: this.effect.name + " (heures)"});
|
||||
|
||||
|
||||
await this.effect.update({
|
||||
"duration.seconds": hours.total * 3600
|
||||
});
|
||||
await this.effect.setFlag("wfrp4e-tribes", "bonus", bonus.total);
|
||||
Reference in New Issue
Block a user