foundryvtt-wh4-lang-fr-fr/scripts/g4t56A09yrpZaJQ2.js

21 lines
886 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let amberTalons = foundry.utils.deepClone(game.wfrp4e.config.systemItems.unarmed);
amberTalons.name = "Amber Talons";
amberTalons.img = this.effect.img;
amberTalons.system.damage.value = "SB + WPB"
amberTalons.system.equipped = true;
amberTalons.system.qualities.value.push({name : "magical"})
amberTalons.effects.push({
2024-10-08 20:52:09 +02:00
name : "Amber Talons",
2024-05-16 17:57:51 +02:00
transfer: false,
2024-10-08 20:52:09 +02:00
img : "modules/wfrp4e-core/icons/spells/amber-talons.png" ,
system: {
transferData : {
2024-05-16 17:57:51 +02:00
documentType : "Item"
},
scriptData : [{
trigger : "applyDamage",
script : "if (args.totalWoundLoss >= 1)\n{ \n args.actor.addCondition(\"bleeding\")\n}"
}]
}
})
this.actor.createEmbeddedDocuments("Item", [amberTalons], {fromEffect: this.effect.id})