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

Left pane now shows the kind and status of temporary effects in the tooltips

git-svn-id: http://svn.net-core.org/repos/t-engine4@3419 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0c244490
No related branches found
No related tags found
No related merge requests found
......@@ -299,7 +299,7 @@ function _M:display()
local dur = p.dur + 1
local name = e.desc
if e.display_desc then name = e.display_desc(self, p) end
local desc = e.long_desc(player, p)
local desc = ("#{bold}##GOLD#%s (%s / %s)#WHITE##{normal}#\n"):format(name, e.type, e.status)..e.long_desc(player, p)
if e.status == "detrimental" then
self:mouseTooltip(desc, self:makeTexture(("#LIGHT_RED#%s(%d)"):format(name, dur), x, h, 255, 255, 255)) h = h + self.font_h
else
......
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