Sync to v7.2.0

This commit is contained in:
2024-06-06 21:09:27 +02:00
parent 90214619d6
commit da6fe66887
218 changed files with 2680 additions and 131 deletions

View File

@ -6,13 +6,16 @@ if (!currentCareer) return
let inCurrentCareer = currentCareer.system.skills.includes(skill);
if (existingSkill && inCurrentCareer)
let perfectPitchAdded = this.actor.getFlag("wfrp4e", "perfectPitchAdded") || {};
if (existingSkill && inCurrentCareer && !perfectPitchAdded[existingSkill.name])
{
existingSkill.system.advances.costModifier = -5;
}
else
{
perfectPitchAdded[skill] = true;
currentCareer.system.skills.push(skill);
setProperty(this.actor, "flags.wfrp4e.perfectPitchAdded", perfectPitchAdded)
}