Prodigious Mind
Mage_Talent_ProdigiousMind in SkillsYour [WeaponSkill]s have a 0.25 chance to recover 25% of their [Spark] cost.
- id
- Mage_Talent_ProdigiousMind
- type
- 21
- flags
- 0
- nature
- 5
- script
- function onSkillProc(ctx) { if (ctx.baseSkill.isWeaponSkill() && checkProba(vars.chance)) { var cost = getCustom(ctx, Skill.Mage_SparkMaster); if (cost != null && cost > 0) { addResource(Attribute.Spark, cost * vars.var1); } } }
- status
- 2
Raw data
{
"id": "Mage_Talent_ProdigiousMind",
"gfx": {
"x": 16,
"y": 0,
"file": "UI/icons/Mage_talent.png",
"size": 48,
"width": 2,
"height": 2
},
"anim": {},
"type": 21,
"vars": {
"var1": 0.25,
"chance": 0.25
},
"flags": 0,
"props": {
"talent": {
"maxPoints": 2
},
"rankOverride": [
{
"vars": {
"var1": 0.5
},
"minRank": 2
}
]
},
"steps": [],
"texts": {
"desc": "Your [WeaponSkill]s have a ::chance:: chance to recover ::var1%:: of their [Spark] cost.",
"name": "Prodigious Mind"
},
"nature": 5,
"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}",
"status": 2,
"mastery": []
}