Skip to content
Snippets Groups Projects
Commit b42f46f1 authored by dg's avatar dg
Browse files

Missing tooltips in the character sheet

git-svn-id: http://svn.net-core.org/repos/t-engine4@3476 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4370b3af
No related merge requests found
...@@ -254,6 +254,10 @@ TOOLTIP_SPELL_SPEED = [[#GOLD#Spellcasting speed#LAST# ...@@ -254,6 +254,10 @@ TOOLTIP_SPELL_SPEED = [[#GOLD#Spellcasting speed#LAST#
Spellcasting speed represents how fast your spellcasting is compared to a normal turn. Spellcasting speed represents how fast your spellcasting is compared to a normal turn.
The lower it is the faster it is. The lower it is the faster it is.
]] ]]
TOOLTIP_MINDPOWER = [[#GOLD#Mindpower#LAST#
Your mindpower value represents how effective/powerful your mental effects are.
It is improved by both Willpower and Cunning, some talents can change the stats that affect it.
]]
------------------------------------------------------------- -------------------------------------------------------------
-- Damage and resists -- Damage and resists
...@@ -265,6 +269,9 @@ This stacks with individual damage type increases. ...@@ -265,6 +269,9 @@ This stacks with individual damage type increases.
TOOLTIP_INC_DAMAGE = [[#GOLD#Damage increase: specific#LAST# TOOLTIP_INC_DAMAGE = [[#GOLD#Damage increase: specific#LAST#
All damage of this type that you deal, through any means, is increased by this percentage. All damage of this type that you deal, through any means, is increased by this percentage.
]] ]]
TOOLTIP_INC_CRIT_POWER = [[#GOLD#Critical multiplicator#LAST#
All critical damage (melee, spells, ...) do this much damage.
]]
TOOLTIP_RESIST_ALL = [[#GOLD#Damage resistance: all#LAST# TOOLTIP_RESIST_ALL = [[#GOLD#Damage resistance: all#LAST#
All damage you receive, through any means, is decreased by this percentage. All damage you receive, through any means, is decreased by this percentage.
This stacks with individual damage type resistances. This stacks with individual damage type resistances.
......
...@@ -347,13 +347,13 @@ function _M:drawDialog(kind) ...@@ -347,13 +347,13 @@ function _M:drawDialog(kind)
self:mouseTooltip(self.TOOLTIP_SPELL_CRIT, s:drawColorStringBlended(self.font, ("Crit. chance: #00ff00#%d%%"):format(player:combatSpellCrit()), w, h, 255, 255, 255)) h = h + self.font_h self:mouseTooltip(self.TOOLTIP_SPELL_CRIT, s:drawColorStringBlended(self.font, ("Crit. chance: #00ff00#%d%%"):format(player:combatSpellCrit()), w, h, 255, 255, 255)) h = h + self.font_h
self:mouseTooltip(self.TOOLTIP_SPELL_SPEED, s:drawColorStringBlended(self.font, ("Spell speed : #00ff00#%.2f%%"):format(player:combatSpellSpeed()*100), w, h, 255, 255, 255)) h = h + self.font_h self:mouseTooltip(self.TOOLTIP_SPELL_SPEED, s:drawColorStringBlended(self.font, ("Spell speed : #00ff00#%.2f%%"):format(player:combatSpellSpeed()*100), w, h, 255, 255, 255)) h = h + self.font_h
h = h + self.font_h h = h + self.font_h
self:mouseTooltip(self.TOOLTIP_STR, s:drawColorStringBlended(self.font, ("Mindpower: #00ff00#%3d"):format(player:combatMindpower()), w, h, 255, 255, 255)) h = h + self.font_h self:mouseTooltip(self.TOOLTIP_MINDPOWER, s:drawColorStringBlended(self.font, ("Mindpower: #00ff00#%3d"):format(player:combatMindpower()), w, h, 255, 255, 255)) h = h + self.font_h
h = 0 h = 0
w = 400 w = 400
s:drawColorStringBlended(self.font, "#LIGHT_BLUE#Damage mods.:", w, h, 255, 255, 255) h = h + self.font_h s:drawColorStringBlended(self.font, "#LIGHT_BLUE#Damage mods.:", w, h, 255, 255, 255) h = h + self.font_h
self:mouseTooltip(self.TOOLTIP_STR , s:drawColorStringBlended(self.font, ("Critical mult.: #00ff00#%3d%%"):format(150 + (player.combat_critical_power or 0)), w, h, 255, 255, 255)) h = h + self.font_h self:mouseTooltip(self.TOOLTIP_INC_CRIT_POWER , s:drawColorStringBlended(self.font, ("Critical mult.: #00ff00#%3d%%"):format(150 + (player.combat_critical_power or 0)), w, h, 255, 255, 255)) h = h + self.font_h
if player.inc_damage.all then self:mouseTooltip(self.TOOLTIP_INC_DAMAGE_ALL, s:drawColorStringBlended(self.font, ("All damage: #00ff00#%3d%%"):format(player.inc_damage.all), w, h, 255, 255, 255)) h = h + self.font_h end if player.inc_damage.all then self:mouseTooltip(self.TOOLTIP_INC_DAMAGE_ALL, s:drawColorStringBlended(self.font, ("All damage: #00ff00#%3d%%"):format(player.inc_damage.all), w, h, 255, 255, 255)) h = h + self.font_h end
for i, t in ipairs(DamageType.dam_def) do for i, t in ipairs(DamageType.dam_def) do
if player.inc_damage[DamageType[t.type]] and player.inc_damage[DamageType[t.type]] ~= 0 then if player.inc_damage[DamageType[t.type]] and player.inc_damage[DamageType[t.type]] ~= 0 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