Skip to content
Snippets Groups Projects
Commit 00b85389 authored by DarkGod's avatar DarkGod
Browse files

Clarification to Heightened Senses/Infravision tooltips

parent b96c7e6c
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment