Code: Select all
newTalent{
name = "Sudden Growth",
type = {"wild-gift/fungus", 4},
require = gifts_req4,
points = 5,
equilibrium = 22,
cooldown = 25,
tactical = { HEAL = function(self, t, target) return self.life_regen * 10 end },
getMult = function(self, t) return util.bound(5 + self:getTalentLevel(t), 3, 12) end,
action = function(self, t)
local amt = self.life_regen * t.getMult(self, t)
self:heal(amt)
game:playSoundNear(self, "talents/heal")
return true
end,
info = function(self, t)
local mult = t.getMult(self, t)
return ([[A wave of energy passes through your fungus, making it release immediate healing energies on you, healing you for %d%% of your current life regeneration rate.]]):
format(mult * 100)
end,
}