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,9 +1,14 @@
if (this.item.system.specification.value == "Size")
if (this.item.system.specification.value == "Taille")
{
let choice = await ItemDialog.create(ItemDialog.objectToArray(game.wfrp4e.config.actorSizes, this.item.img), 1, "Choisissez Size");
if (choice[0])
let size = this.item.specifier;
if (!size)
{
this.item.updateSource({"system.specification.value" : choice[0].name})
this.effect.updateSource({name : this.effect.name + ` (${choice[0].name})`})
let choice = await ItemDialog.create(ItemDialog.objectToArray(game.wfrp4e.config.actorTailles, this.item.img), 1, "Choisir Taille");
if (choice[0])
{
size = choice[0]?.name;
}
}
this.item.updateSource({"system.specification.value" : size, name : this.item.baseName})
this.effect.updateSource({name : this.effect.name + ` (${size})`})
}