From 00b85389dd142039ffcdb8087e06ba8ed16ef514 Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Wed, 18 Sep 2013 01:09:23 +0200 Subject: [PATCH] Clarification to Heightened Senses/Infravision tooltips --- game/modules/tome/class/interface/TooltipsData.lua | 4 ++-- game/modules/tome/dialogs/CharacterSheet.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/game/modules/tome/class/interface/TooltipsData.lua b/game/modules/tome/class/interface/TooltipsData.lua index ba0768a95e..2ebc2da609 100644 --- a/game/modules/tome/class/interface/TooltipsData.lua +++ b/game/modules/tome/class/interface/TooltipsData.lua @@ -381,8 +381,8 @@ The maximum distance your lite can light up. Anything further cannot be seen by TOOLTIP_VISION_SIGHT = [[#GOLD#Sight range#LAST# How far you can see. This only works within your lite radius, or in lit areas. ]] -TOOLTIP_VISION_INFRA = [[#GOLD#Infravision#LAST# -A secondary sight that allows you to see even in the dark, but only creatures can be seen this way. +TOOLTIP_VISION_INFRA = [[#GOLD#Heightened Senses#LAST# +Special vision (including infravision) that works even in the dark, but only creatures can be seen this way. Only the best ability is used. ]] TOOLTIP_VISION_STEALTH = [[#GOLD#Stealth#LAST# To use stealth one must possess the 'Stealth' talent. diff --git a/game/modules/tome/dialogs/CharacterSheet.lua b/game/modules/tome/dialogs/CharacterSheet.lua index f848da9e9a..92526959dc 100644 --- a/game/modules/tome/dialogs/CharacterSheet.lua +++ b/game/modules/tome/dialogs/CharacterSheet.lua @@ -419,7 +419,7 @@ function _M:drawDialog(kind, actor_to_compare) end text = compare_fields(player, actor_to_compare, function(actor) return (actor:attr("infravision") or actor:attr("heightened_senses")) and math.max((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 + self:mouseTooltip(self.TOOLTIP_VISION_INFRA, s:drawColorStringBlended(self.font, ("Heighten Senses: #00ff00#%s"):format(text), w, h, 255, 255, 255, true)) h = h + self.font_h end text = compare_fields(player, actor_to_compare, function(who) return who:attr("stealth") and who.stealth + (who:attr("inc_stealth") or 0) end, "%.1f", "%+.1f") if text then -- GitLab