Skip to content
Snippets Groups Projects
Commit 8785b1ed authored by dg's avatar dg
Browse files

Resists of 0 will not be shown in the tooltips

git-svn-id: http://svn.net-core.org/repos/t-engine4@5363 51575b47-30f0-44d4-a5cc-537603b46e54
parent d7bc3641
No related branches found
No related tags found
No related merge requests found
......@@ -1292,7 +1292,7 @@ function _M:tooltip(x, y, seen_by)
local resists = {}
for t, v in pairs(self.resists) do
if t ~= "all" then v = self:combatGetResist(t) end
resists[#resists+1] = string.format("%d%% %s", v, t == "all" and "all" or DamageType:get(t).name)
if v ~= 0 then resists[#resists+1] = string.format("%d%% %s", v, t == "all" and "all" or DamageType:get(t).name) end
end
local ts = tstring{}
......
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