Add all systems effects scripts + translations

This commit is contained in:
2024-05-17 12:46:44 +02:00
parent 039df5c10a
commit a308181834
1421 changed files with 9940 additions and 547 deletions

View File

@ -1,12 +1,12 @@
// This script needs to be separate because equipTransfer is off on the other effect, and thus won't execute when added to an actor
let mainEffect = this.item.effects.contents[0];
if (mainEffect.name.includes("(Lore)"))
if (mainEffect.name.includes("(Savoir)"))
{
let choice = await ItemDialog.create(ItemDialog.objectToArray(game.wfrp4e.config.magicLores, this.item.img), 1, "Choose Lore");
let choice = await ItemDialog.create(ItemDialog.objectToArray(game.wfrp4e.config.magicLores, this.item.img), 1, "Choisissez le Savoir");
if (choice.length)
{
mainEffect.update({name : mainEffect.name.replace("Lore", choice[0].name)})
mainEffect.update({name : mainEffect.name.replace("Savoir", choice[0].name)})
this.item.update({name : this.item.name += ` (${choice[0].name})`})
}
}