Neuanfang mit französischem Modul

This commit is contained in:
2025-05-05 23:25:00 +02:00
parent cf24ef97df
commit 3f74b8dfdd
3135 changed files with 38383 additions and 93206 deletions
-21
View File
@@ -1,21 +0,0 @@
let skills = this.actor.itemTypes.skill.filter(i => i.name.includes(game.i18n.localize("NAME.Melee")))
let skill = await ItemDialog.create(skills, 1, "Sélectionnez la compétence à utiliser avec l'arme")
let group = game.wfrp4e.utility.extractParenthesesText(skill[0]?.name)
let groupKey = game.wfrp4e.utility.findKey(group, game.wfrp4e.config.weaponGroups)
let weapon = {
name : this.effect.name,
type : "weapon",
img : this.effect.img,
system : {
"damage.value" : this.actor.system.characteristics.wp.bonus,
"weaponGroup.value" : groupKey || "basic",
"twohanded.value" : ["polearm", "twohanded"].includes(groupKey),
"reach.value" : "average",
"qualities.value" : [{name : "magical"}]
},
}
Item.implementation.create(foundry.utils.expandObject(weapon), {parent : this.actor, fromEffect : this.effect.id})
this.script.scriptNotification("Item créé. Les modifications supplémentaires doivent être réalisées manuellement sur la fiche de l'objet.");