Code: Select all
Index: game/modules/tome/dialogs/CharacterSheet.lua
===================================================================
--- game/modules/tome/dialogs/CharacterSheet.lua (revision 3914)
+++ game/modules/tome/dialogs/CharacterSheet.lua (working copy)
@@ -394,7 +394,7 @@
if text then
self:mouseTooltip(self.TOOLTIP_VISION_SIGHT, s:drawColorStringBlended(self.font, ("Vision range : #00ff00#%s"):format(text), w, h, 255, 255, 255, true)) h = h + self.font_h
end
- text = compare_fields(player, actor_to_compare, "infravision", "%d", "%+.0f")
+ text = compare_fields(player, actor_to_compare, function(actor) return (actor:attr("infravision") or actor:attr("heightened_senses")) and (actor.heightened_senses or 0) + (actor.infravision or 0) end, "%d", "%+.0f")
if text then
self:mouseTooltip(self.TOOLTIP_VISION_INFRA, s:drawColorStringBlended(self.font, ("Infravision : #00ff00#%s"):format(text), w, h, 255, 255, 255, true)) h = h + self.font_h
end