Home · skill · Thrown_Seeds_Passive
Your damage and healing done to a target increase by 2% for each different periodic effect on them, up to 6%.
Properties
- status
- Bug
- type
- WeaponPassive
- nature
- Passive
Referenced by
item (1)
Raw data
{
"status": "Bug",
"gfx": {
"file": "UI/icons/atlas_weapon_Thrown_96PX.png",
"size": 48,
"x": 8,
"y": 0,
"width": 2,
"height": 2
},
"id": "Thrown_Seeds_Passive",
"type": "WeaponPassive",
"nature": "Passive",
"texts": {
"name": "Natural Ascendancy",
"desc": "Your damage and healing done to a target increase by ::var1%:: for each different periodic effect on them, up to ::var2%::.",
"rankDescs": [
{
"rank": 2,
"desc": "Damage and healing increased to ::var1%::, up to ::var2%::.",
"flags": 1
},
{
"rank": 3,
"desc": "Increases your chance to critically strike the target by the same amount.",
"flags": 0
}
]
},
"anim": {},
"steps": [],
"flags": [],
"mastery": [],
"props": {
"rankOverride": [
{
"minRank": 2,
"vars": {
"var1": 0.03,
"var2": 0.09
}
}
]
},
"vars": {
"var1": 0.02,
"var2": 0.06
},
"script": "function onInflictDamageEval(dmg) {\n\tapplyBonus(dmg);\n}\n\nfunction onInflictHealEval(dmg) {\n\tapplyBonus(dmg);\n}\n\nfunction applyBonus(dmg) {\n\tvar bonus = getBonus(dmg.target);\n\tdmg.dmgMult += bonus;\n\tif (rank >= 3) {\n\t\tdmg.critChance += bonus;\n\t}\n}\n\nfunction getBonus(unit) {\n\tvar bonus = clamp(getEffectCount(unit) * vars.var1, 0, vars.var2);\n\treturn bonus;\n}\n\nfunction getEffectCount(target) {\n\tvar count = target.getStatusesCount(s -> s.isPeriodic());\n\treturn count;\n}",
"_xrefs": [
{
"from_sheet": "item",
"from_id": "Thrown_Seeds",
"via_field": "skills"
}
]
}