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

talent icons in map menu

git-svn-id: http://svn.net-core.org/repos/t-engine4@4056 51575b47-30f0-44d4-a5cc-537603b46e54
parent 868e118b
No related branches found
No related tags found
No related merge requests found
......@@ -153,10 +153,11 @@ function _M:generateList()
end
if t_avail then
local rt = util.getval(t.requires_target, player, t)
local e = t.display_entity
if self.on_player and not rt then
tals[#tals+1] = {name=t.name, talent=t, action="talent", color=colors.simple(colors.GOLD)}
tals[#tals+1] = {name=e:getDisplayString()..t.name, dname=t.name, talent=t, action="talent", color=colors.simple(colors.GOLD)}
elseif not self.on_player and rt then
tals[#tals+1] = {name=t.name, talent=t, action="talent", set_target=tg or default_tg, color=colors.simple(colors.GOLD)}
tals[#tals+1] = {name=e:getDisplayString()..t.name, dname=t.name, talent=t, action="talent", set_target=tg or default_tg, color=colors.simple(colors.GOLD)}
end
end
end
......@@ -168,7 +169,7 @@ function _M:generateList()
if ha and hb then return ha < hb
elseif ha and not hb then return ha < 999999
elseif hb and not ha then return hb > 999999
else return a.talent.name < b.talent.name
else return a.talent.dname < b.talent.dname
end
end)
for i = 1, #tals do list[#list+1] = tals[i] end
......
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