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

@ -0,0 +1,15 @@
let {added, removed} = this.effect.getFlag("wfrp4e", "propertiesChanged");
for(let property of (added || []))
{
let hasValue = game.wfrp4e.config.propertyHasValue[property];
if (!args.item.system.qualities.value.find(i => i.name == property))
{
args.item.system.qualities.value.push({name : property, value : (hasValue ? 2 : null)})
}
}
for(let property of (removed || []))
{
args.item.system.flaws.value = args.item.system.flaws.value.filter(i => i.name != property)
}