From a39985fe37cdfd228b158e352317ff7d5ba8c6d9 Mon Sep 17 00:00:00 2001 From: Shibari <ShibariTOME@Gmail.com> Date: Tue, 20 Nov 2018 19:31:42 -0500 Subject: [PATCH] Add life regen to Actor tooltips --- game/modules/tome/class/Actor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua index 2058729d5e..a495a8b2d2 100644 --- a/game/modules/tome/class/Actor.lua +++ b/game/modules/tome/class/Actor.lua @@ -1899,7 +1899,7 @@ function _M:tooltip(x, y, seen_by) if self.hide_level_tooltip then ts:add({"color", 0, 255, 255}, "Level: unknown", {"color", "WHITE"}, true) else ts:add({"color", 0, 255, 255}, ("Level: %d"):format(self.level), {"color", "WHITE"}, true) end if self:attr("invulnerable") then ts:add({"color", "PURPLE"}, "INVULNERABLE!", true) end - ts:add({"color", 255, 0, 0}, ("HP: %d (%d%%)"):format(self.life, self.life * 100 / self.max_life), {"color", "WHITE"}) + ts:add({"color", 255, 0, 0}, ("HP: %d (%d%%) #GREEN#+%0.2f#LAST#"):format(self.life, self.life * 100 / self.max_life, self.life_regen * util.bound(self.healing_factor or 1)), {"color", "WHITE"}) if self:knowTalent(self.T_SOLIPSISM) then local psi_percent = 100*self.psi/self.max_psi -- GitLab