Mise àjour vers 9.6.0
Validation JSON / validate (push) Successful in 13s

This commit is contained in:
2026-05-18 07:23:40 +02:00
parent 52939af8c8
commit 38d88c2f19
204 changed files with 4123 additions and 3343 deletions
+33
View File
@@ -0,0 +1,33 @@
let ingredients = this.actor.itemTypes.trapping.filter(i => i.system.trappingType.value == "ingredient");
if (ingredients.length == 0)
{
return this.script.notification("Aucun ingrédient !");
}
this.script.notification("Affecté : " + ingredients.map(i => i.name).join(", "));
for(let i of ingredients)
{
await i.update({
name: i.setSpecifier("Souillé"),
effects: [{
name: "Souillé",
img: i.img,
system: {
transferData :{
documentType: "Item"
},
scriptData: [
{
label: "Influence Maléfique",
script: "args.fields.malignantInfluence = true;",
trigger: "dialog",
options: {
activateScript: "return true;"
}
}
]
}
}]
});
}