Home · skill · Mage_Talent_ProdigiousMind
Your Weapon Skills have a 0.25 chance to recover 25% of their Spark cost.
Properties
- status
- Done
- type
- Talent
- nature
- Passive
Referenced by
unit (1)
Raw data
{
"status": "Done",
"gfx": {
"file": "UI/icons/Mage_talent.png",
"size": 48,
"x": 16,
"y": 0,
"width": 2,
"height": 2
},
"id": "Mage_Talent_ProdigiousMind",
"type": "Talent",
"nature": "Passive",
"texts": {
"desc": "Your [WeaponSkill]s have a ::chance:: chance to recover ::var1%:: of their [Spark] cost.",
"name": "Prodigious Mind"
},
"anim": {},
"steps": [],
"flags": [],
"mastery": [],
"props": {
"talent": {
"maxPoints": 2
},
"rankOverride": [
{
"minRank": 2,
"vars": {
"var1": 0.5
}
}
]
},
"vars": {
"chance": 0.25,
"var1": 0.25
},
"script": "function onSkillProc(ctx) {\n\tif (ctx.baseSkill.isWeaponSkill() && checkProba(vars.chance)) {\n\t\tvar cost = getCustom(ctx, Skill.Mage_SparkMaster);\n\t\tif (cost != null && cost > 0) {\n\t\t\taddResource(Attribute.Spark, cost * vars.var1);\n\t\t}\n\t}\n}",
"_xrefs": [
{
"from_sheet": "unit",
"from_id": "Mage",
"via_field": "talentTrees"
}
]
}