From e39fa587fd8cfe9bf3300d04b79197054a930fcf Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Tue, 25 Dec 2012 17:36:43 +0000 Subject: [PATCH] fix git-svn-id: http://svn.net-core.org/repos/t-engine4@6220 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/dialogs/CharacterSheet.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/dialogs/CharacterSheet.lua b/game/modules/tome/dialogs/CharacterSheet.lua index d36edba185..ec8a3d0dd8 100644 --- a/game/modules/tome/dialogs/CharacterSheet.lua +++ b/game/modules/tome/dialogs/CharacterSheet.lua @@ -873,7 +873,8 @@ function _M:drawDialog(kind, actor_to_compare) for i, t in ipairs(DamageType.dam_def) do if player.on_melee_hit[DamageType[t.type]] and player.on_melee_hit[DamageType[t.type]] ~= 0 then - self:mouseTooltip(self.TOOLTIP_ON_HIT_DAMAGE, s:drawColorStringBlended(self.font, ("%s%-10s#LAST#: #00ff00#%.2f"):format((t.text_color or "#WHITE#"), t.name:capitalize(), player.on_melee_hit[DamageType[t.type]]), w, h, 255, 255, 255, true)) h = h + self.font_h + local dval = player.on_melee_hit[DamageType[t.type]] + self:mouseTooltip(self.TOOLTIP_ON_HIT_DAMAGE, s:drawColorStringBlended(self.font, ("%s%-10s#LAST#: #00ff00#%.2f"):format((t.text_color or "#WHITE#"), t.name:capitalize(), (type(dval)=="number") and dval or dval.dam), w, h, 255, 255, 255, true)) h = h + self.font_h end end -- GitLab