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

Sustained talents that are on cooldown show as such in the use talent dialog

git-svn-id: http://svn.net-core.org/repos/t-engine4@2252 51575b47-30f0-44d4-a5cc-537603b46e54
parent 530e5061
No related branches found
No related tags found
No related merge requests found
......@@ -140,8 +140,8 @@ function _M:generateList()
if self.actor:knowTalent(t.id) and t.mode ~= "passive" then
local typename = "talent"
local status = tstring{{"color", "LIGHT_GREEN"}, "Active"}
if self.actor:isTalentCoolingDown(t) then status = tstring{{"color", "LIGHT_RED"}, self.actor:isTalentCoolingDown(t).." turns"} end
if t.mode == "sustained" then status = self.actor:isTalentActive(t.id) and tstring{{"color", "YELLOW"}, "Sustaining"} or tstring{{"color", "LIGHT_GREEN"}, "Sustain"} end
if self.actor:isTalentCoolingDown(t) then status = tstring{{"color", "LIGHT_RED"}, self.actor:isTalentCoolingDown(t).." turns"}
elseif t.mode == "sustained" then status = self.actor:isTalentActive(t.id) and tstring{{"color", "YELLOW"}, "Sustaining"} or tstring{{"color", "LIGHT_GREEN"}, "Sustain"} end
list[#list+1] = { char=self:makeKeyChar(letter), name=t.name.." ("..typename..")", status=status, talent=t.id, desc=self.actor:getTalentFullDescription(t) }
list.chars[self:makeKeyChar(letter)] = list[#list]
if not self.sel then self.sel = #list + 1 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