Commit 04d96091f39e4bd7da8b70dd4e509b165389af12
1 parent
be0fc3a1
Revise Mercy
% of max life converted to flat values is basically not allowed as a mechanic now. - Proc now deals flat damage increased by % of life lost on target
Showing
1 changed file
with
3 additions
and
3 deletions
... | ... | @@ -1170,7 +1170,6 @@ newEntity{ base = "BASE_KNIFE", -- Thanks Grayswandir! |
1170 | 1170 | }, |
1171 | 1171 | } |
1172 | 1172 | |
1173 | --- Fix me | |
1174 | 1173 | newEntity{ base = "BASE_KNIFE", --Razakai's idea, slightly modified |
1175 | 1174 | power_source = {psionic=true}, |
1176 | 1175 | unique = true, |
... | ... | @@ -1189,9 +1188,10 @@ newEntity{ base = "BASE_KNIFE", --Razakai's idea, slightly modified |
1189 | 1188 | apr = 9, |
1190 | 1189 | physcrit = 15, |
1191 | 1190 | dammod = {str=0.45, dex=0.55}, |
1192 | - special_on_hit = {desc="deals physical damage equal to 3% of the target's missing health", fct=function(combat, who, target) | |
1191 | + special_on_hit = {desc="deals 60 physical damage increased by 1% for each 1% life the target has lost", fct=function(combat, who, target) | |
1193 | 1192 | local tg = {type="ball", range=10, radius=0, selffire=false} |
1194 | - who:project(tg, target.x, target.y, engine.DamageType.PHYSICAL, (target.max_life - target.life)*0.03) | |
1193 | + local bonus = 1 + (1 - target.life / target.max_life) | |
1194 | + who:project(tg, target.x, target.y, engine.DamageType.PHYSICAL, 60*bonus) | |
1195 | 1195 | end}, |
1196 | 1196 | }, |
1197 | 1197 | wielder = { | ... | ... |
-
Please register or login to post a comment