Skip to content
Snippets Groups Projects
Commit ea627534 authored by Tawny Harte's avatar Tawny Harte
Browse files

soothing darkness only lists damage reduction if it's applicable

parent 57626e70
No related branches found
No related tags found
1 merge request!5601.6b4 typos n misc
...@@ -3423,7 +3423,14 @@ newEffect{ ...@@ -3423,7 +3423,14 @@ newEffect{
newEffect{ newEffect{
name = "SOOTHING_DARKNESS", image = "talents/soothing_darkness.png", name = "SOOTHING_DARKNESS", image = "talents/soothing_darkness.png",
desc = "Soothing Darkness", desc = "Soothing Darkness",
long_desc = function(self, eff) return ("The target is wreathed in shadows, increasing life regeneration by %0.1f, stamina regeneration by %0.1f, and all damage resistance by %d%%."):format(eff.life, eff.stamina, eff.shadowguard) end, long_desc = function(self, eff)
local desc = ("The target is wreathed in shadows, increasing life regeneration by %0.1f"):format(eff.life)
if eff.shadowguard > 0 then
desc = desc..(", stamina regeneration by %0.1f and all damage resistance by %d%%."):format(eff.stamina, eff.shadowguard)
else
desc = desc..(" and stamina regeneration by %0.1f."):format(eff.stamina) end
return desc
end,
type = "physical", type = "physical",
subtype = { darkness=true, healing=true, regeneration=true }, subtype = { darkness=true, healing=true, regeneration=true },
status = "beneficial", status = "beneficial",
......
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