Add all systems effects scripts
This commit is contained in:
18
scripts/HrOBAXsEX073ReKl.js
Normal file
18
scripts/HrOBAXsEX073ReKl.js
Normal file
@ -0,0 +1,18 @@
|
||||
let skill = `Entertain (Singing)`
|
||||
let currentCareer = this.actor.system.currentCareer;
|
||||
let existingSkill = this.actor.itemTypes.skill.find(i => i.name == skill);
|
||||
|
||||
if (!currentCareer) return
|
||||
|
||||
|
||||
let inCurrentCareer = currentCareer.system.skills.includes(skill);
|
||||
if (existingSkill && inCurrentCareer)
|
||||
{
|
||||
existingSkill.system.advances.costModifier = -5;
|
||||
}
|
||||
else
|
||||
{
|
||||
currentCareer.system.skills.push(skill);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user