Add all systems effects scripts

This commit is contained in:
2024-05-16 17:57:51 +02:00
parent b42df99b27
commit 0b286ac994
1282 changed files with 9990 additions and 384 deletions

View File

@ -0,0 +1,25 @@
if (this.item.system.isEquipped)
{
let removeRepeater = false
if(!this.item.system.offhand.value) // main
{
let offhandUsed = this.actor.itemTypes.weapon.find(i => i.system.isEquipped && i.system.offhand.value)
if (offhandUsed)
{
removeRepeater = true;
}
}
else // offhand
{
let mainhandUsed = this.actor.itemTypes.weapon.find(i => i.system.isEquipped && !i.system.offhand.value)
if (mainhandUsed)
{
removeRepeater = true;
}
}
if (removeRepeater)
{
this.item.system.qualities.value = this.item.system.qualities.value.filter(i => i.name != "repeater")
}
}