Skip to content
Snippets Groups Projects
Commit 40492ca8 authored by Hachem_Muche's avatar Hachem_Muche
Browse files

Talent descriptions automatically note talents that won't break stealth.

parent dfa77176
No related branches found
No related tags found
No related merge requests found
......@@ -5667,6 +5667,19 @@ function _M:getTalentFullDescription(t, addlevel, config, fake_mastery)
uspeed = ("%s (#LIGHT_GREEN#%d%%#LAST# of a turn)"):format(speed_type, speed * 100)
end
d:add({"color",0x6f,0xff,0x83}, "Usage Speed: ", {"color",0xFF,0xFF,0xFF}, uspeed, true)
if t.no_break_stealth ~= nil and no_energy ~= true and self:knowTalent(self.T_STEALTH) then
local nbs, chance = t.no_break_stealth
if type(t.no_break_stealth) == "function" then
nbs, chance = t.no_break_stealth(self, t)
if type(chance) ~= "number" then
chance = nbs and 100 or 0
end
else chance = nbs and 100 or 0
end
if chance > 0 then
d:add({"color",0x6f,0xff,0x83}, "Won't Break Stealth: ", {"color",0xFF,0xFF,0xFF}, ("%d%%"):format(chance), true)
end
end
end
local is_a = {}
for is, desc in pairs(engine.interface.ActorTalents.is_a_type) do
......
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