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:
@@ -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})`})
|
||||
}
|
||||
Reference in New Issue
Block a user