Ajout de la commande /voyage et grosse MAJK de la commande /auberge

This commit is contained in:
2026-01-07 15:04:49 +01:00
parent c8119601d8
commit f525b6c07a
1329 changed files with 24138 additions and 4397 deletions

View File

@@ -1,6 +1,6 @@
if (this.actor.system.status.advantage.value == 0)
{
return this.script.scriptNotification("Pas assez d'Avantages!", "error")
return this.script.notification("Avantage retiré", "error")
}
let hatred = await fromUuid("Compendium.wfrp4e-core.items.Item.aE3pyW20Orvdjzj0")
@@ -8,15 +8,15 @@ let frenzy = await fromUuid("Compendium.wfrp4e-core.items.Item.yRhhOlt18COq4e1q"
if (this.actor.system.status.advantage.value >= 3)
{
this.script.scriptNotification(`Ajout de ${frenzy.name}`)
this.script.notification(`Ajout de ${frenzy.name}`)
this.actor.setAdvantage(0)
this.actor.createEmbeddedDocuments("Item", [frenzy])
}
else if (this.actor.system.status.advantage.value >= 1)
{
let data = hatred.toObject();
data.system.specification.value = "Combatants au corps à corps"
this.script.scriptNotification(`Ajout de ${hatred.name}`)
data.system.specification.value = "Opposants au corps à corps"
this.script.notification(`Ajout de ${hatred.name}`)
this.actor.setAdvantage(0)
this.actor.createEmbeddedDocuments("Item", [data])
}