Skip to content
Snippets Groups Projects
Commit 79955389 authored by DarkGod's avatar DarkGod
Browse files

stuff

parent fffe0ce6
No related branches found
No related tags found
No related merge requests found
......@@ -655,7 +655,7 @@ function _M:getTextualDesc(compare_with, use_actor)
end
if combat.crushing_blow then
desc:add({"color", "YELLOW"}, "Crushing Blows: ", {"color", "LAST"}, "Damage dealt by this weapon is increased by your critical multiplier, if doing so would kill the target.", true)
desc:add({"color", "YELLOW"}, "Crushing Blows: ", {"color", "LAST"}, "Damage dealt by this weapon is increased by half your critical multiplier, if doing so would kill the target.", true)
end
compare_fields(combat, compare_with, field, "travel_speed", "%+d%%", "Travel speed: ", 100, false, false, add_table)
......
......@@ -127,6 +127,7 @@ setDefaultProjector(function(src, x, y, type, dam, tmp, no_martyr)
local inc
if src.combatGetDamageIncrease then inc = src:combatGetDamageIncrease(type)
else inc = (src.inc_damage.all or 0) + (src.inc_damage[type] or 0) end
if src.getVim and src:attr("demonblood_dam") then inc = inc + ((src.demonblood_dam or 0) * (src:getVim() or 0)) end
-- Increases damage for the entity type (Demon, Undead, etc)
if target.type and src.inc_damage_actor_type then
......@@ -289,6 +290,13 @@ setDefaultProjector(function(src, x, y, type, dam, tmp, no_martyr)
print("[PROJECTOR] after self-resists dam", dam)
end
--Vim based defence
if target:attr("demonblood_def") and target.getVim then
local demon_block = math.min(dam*0.5,target.demonblood_def*(target:getVim() or 0))
dam= dam - demon_block
target:incVim((-demon_block)/20)
end
-- Static reduce damage
if dam > 0 and target.isTalentActive and target:isTalentActive(target.T_ANTIMAGIC_SHIELD) then
local t = target:getTalentFromId(target.T_ANTIMAGIC_SHIELD)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment