From ff4dc1f2266b8a83c3320834fb8b2346add4e9b4 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Fri, 20 May 2011 12:40:32 +0000 Subject: [PATCH] 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 --- game/modules/tome/class/PlayerDisplay.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/tome/class/PlayerDisplay.lua b/game/modules/tome/class/PlayerDisplay.lua index e2a150e005..ff62569554 100644 --- a/game/modules/tome/class/PlayerDisplay.lua +++ b/game/modules/tome/class/PlayerDisplay.lua @@ -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 -- GitLab