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

Inscriptions are now displayed in character sheet and dump

git-svn-id: http://svn.net-core.org/repos/t-engine4@2017 51575b47-30f0-44d4-a5cc-537603b46e54
parent 097108a0
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,11 @@ Each object you carry has an encumberance value, your maximun carrying capacity
You can not move while encumbered, drop some items.
]]
TOOLTIP_INSCRIPTIONS = [[#GOLD#Inscriptions#LAST#
The people of Eyal have found a way to create herbal infusions and runes that can be inscribed on the skin of a creature.
Those inscriptions give the bearer always accessible powers. Usualy most people have a simple regeneration infusion, but there are other kind of potion inscriptions.
]]
-------------------------------------------------------------
-- Stats
-------------------------------------------------------------
......
......@@ -103,6 +103,16 @@ function _M:drawDialog(s)
self:mouseTooltip(self.TOOLTIP_CUN, s:drawColorStringBlended(self.font, ("CUN: #00ff00#%3d"):format(player:getCun()), w, h, 255, 255, 255)) h = h + self.font_h
self:mouseTooltip(self.TOOLTIP_CON, s:drawColorStringBlended(self.font, ("CON: #00ff00#%3d"):format(player:getCon()), w, h, 255, 255, 255)) h = h + self.font_h
h = h + self.font_h
local nb_inscriptions = 0
for i = 1, player.max_inscriptions do if player.inscriptions[i] then nb_inscriptions = nb_inscriptions + 1 end end
self:mouseTooltip(self.TOOLTIP_INSCRIPTIONS, s:drawColorStringBlended(self.font, ("#AQUAMARINE#Inscriptions (%d/%d)"):format(nb_inscriptions, player.max_inscriptions), w, h, 255, 255, 255)) h = h + self.font_h
for i = 1, player.max_inscriptions do if player.inscriptions[i] then
local t = player:getTalentFromId("T_"..player.inscriptions[i])
local desc = player:getTalentFullDescription(t)
self:mouseTooltip("#GOLD##{bold}#"..t.name.."#{normal}##WHITE#\n"..tostring(desc), s:drawColorStringBlended(self.font, ("#LIGHT_GREEN#%s"):format(t.name), w, h, 255, 255, 255)) h = h + self.font_h
end end
h = 0
w = 200
-- All weapons in main hands
......@@ -388,7 +398,6 @@ function _M:dump()
nl()
nl(" [Talents Chart]")
nl()
for i, tt in ipairs(player.talents_types_def) do
local ttknown = player:knowTalentType(tt.type)
if not (player.talents_types[tt.type] == nil) and ttknown then
......@@ -410,6 +419,18 @@ function _M:dump()
end
end
-- Inscriptins
local nb_inscriptions = 0
for i = 1, player.max_inscriptions do if player.inscriptions[i] then nb_inscriptions = nb_inscriptions + 1 end end
nl()
nl((" [Inscriptions (%d/%d)]"):format(nb_inscriptions, player.max_inscriptions))
nl()
for i = 1, player.max_inscriptions do if player.inscriptions[i] then
local t = player:getTalentFromId("T_"..player.inscriptions[i])
local desc = player:getTalentFullDescription(t)
nl(("%s"):format(t.name))
end end
-- Current Effects
nl()
......
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