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

@@ -2,14 +2,14 @@ let location = (Math.ceil(CONFIG.Dice.randomUniform() * 2) == 2 ? "r" : "l") + "
if (location == "lArm")
{
this.script.scriptNotification("Résultat : gauche")
this.script.notification("Bras Gauche")
}
else if (location == "rArm")
{
this.script.scriptNotification("Résultat : Droite")
this.script.notification("Bras Droit")
}
this.effect.updateSource({"flags.wfrp4e.location" : location});
this.effet.updateSource({"flags.wfrp4e.location" : location});
if (location)
{
@@ -17,7 +17,7 @@ if (location)
if (dropped.length)
{
this.script.scriptNotification(`Laché ${dropped.map(i => i.name).join(", ")}!`)
this.script.notification(`Lâche ${dropped.map(i => i.name).join(", ")}!`)
for(let weapon of dropped)
{
await weapon.system.toggleEquip();
@@ -27,6 +27,6 @@ if (location)
let roll = await new Roll("1d10").roll()
roll.toMessage(this.script.getChatData({flavor : `${this.effect.name} (Durée)`}));
roll.toMessage(this.script.getChatData({flavor : `Lâche ${dropped.map(i => i.name).join(", ")}!`}));
this.effect.updateSource({"duration.rounds" : roll.total})
this.effet.updateSource({"duration.rounds" : roll.total})