Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
11
scripts/AvRbjpBfTX3mn3bz.js
Normal file
11
scripts/AvRbjpBfTX3mn3bz.js
Normal file
@@ -0,0 +1,11 @@
|
||||
if (this.actor.effects.contents.filter(e => e.name === "Liquid Fortification").length === 0) {
|
||||
let effectData = this.item.effects.contents[0].convertToApplied();
|
||||
effectData.duration.seconds = 3600
|
||||
this.actor.applyEffect({effectData : [effectData]});
|
||||
this.script.notification("Durée de l'effet Liquid Fortification réglée à 1 heure.");
|
||||
}
|
||||
else {
|
||||
let effect = this.actor.effects.contents.filter(e => e.name === "Liquid Fortification")[0];
|
||||
effect.update({duration: {seconds: 3600}});
|
||||
this.script.notification("Durée de l'effet Liquid Fortification réinitialisée à 1 heure.");
|
||||
}
|
||||
Reference in New Issue
Block a user