Skip to content
Snippets Groups Projects

update Eye of the tiger:

1 file
+ 25
4
Compare changes
  • Side-by-side
  • Inline
@@ -371,22 +371,36 @@ uberTalent{
eye_of_the_tiger_data = {
physical = {
desc = _t"All physical criticals reduce the remaining cooldown of a random technique or cunning talent by 2.",
types_desc = { _t("technique", "talent type"), _t("cunning", "talent type") },
types = { "^technique/", "^cunning/" },
reduce = 2,
},
spell = {
desc = _t"All spell criticals reduce the remaining cooldown of a random spell/corruption/celestial/chronomancy talent by 2.",
types_desc = { _t("spell", "talent type"), _t("corruption", "talent type"),
_t("celestial", "talent type"), _t("chronomancy", "talent type")},
types = { "^spell/", "^corruption/", "^celestial/", "^chronomancy/" },
reduce = 2,
},
mind = {
desc = _t"All mind criticals reduce the remaining cooldown of a random wild gift/psionic/afflicted talent by 2.",
types_desc = { _t("wild-gift", "talent type"), _t("psionic", "talent type"), _t("cursed", "talent type")},
types = { "^wild%-gift/", "^cursed/", "^psionic/" },
reduce = 2,
},
}
eye_of_the_tiger_data.physical.desc = function()
return ("All physical criticals reduce the remaining cooldown of a random %s talent by %d.")
:tformat(table.concat(eye_of_the_tiger_data.physical.types_desc, _t("/")), eye_of_the_tiger_data.physical.reduce)
end
eye_of_the_tiger_data.spell.desc = function()
return ("All spell criticals reduce the remaining cooldown of a random %s talent by %d.")
:tformat(table.concat(eye_of_the_tiger_data.spell.types_desc, _t("/")), eye_of_the_tiger_data.spell.reduce)
end
eye_of_the_tiger_data.mind.desc = function()
return ("All mind criticals reduce the remaining cooldown of a random %s talent by %d.")
:tformat(table.concat(eye_of_the_tiger_data.mind.types_desc, _t("/")), eye_of_the_tiger_data.mind.reduce)
end
uberTalent{
name = "Eye of the Tiger",
mode = "passive",
@@ -416,10 +430,17 @@ uberTalent{
if self.talents_cd[tid] <= 0 then self.talents_cd[tid] = nil end
self.changed = true
self:setProc(kind_str)
game.log("%s reduces the cooldown of %s by %d turns!", self:getTalentFromId(self.T_EYE_OF_THE_TIGER).name, self:getTalentFromId(tid).name, d and d.reduce or 1)
end,
info = function(self, t)
local list = {}
for _, d in pairs(eye_of_the_tiger_data) do list[#list+1] = d.desc end
for _, d in pairs(eye_of_the_tiger_data) do
if type(d.desc) == "function" then
list[#list+1] = d.desc(self, t)
else
list[#list+1] = d.desc
end
end
return ([[%s
This can only happen once per turn per type, and cannot affect the talent that triggers it.]])
:tformat(table.concat(list, "\n"))
Loading