I think this is because the divisors on the effect aren't being applied to the description.
Maybe this would work better so the description and the effect pull the same value every time.
Code: Select all
newTalent{
short_name = "SHALOREN_SPEED",
name = "Grace of the Eternals",
type = {"base/race", 1},
no_energy = true,
cooldown = 50,
tactical = { DEFEND = 1 },
getPower = function(self, t) return 1 - 1/ (1 + (0.1 + self:getDex() /210)) end,
action = function(self, t)
self:setEffect(self.EFF_SPEED, 8, {power=t.getPower(self, t)})
return true
end,
info = function(self, t)
local power = t.getPower(self, t)
return ([[Call upon the grace of the Eternals to increase your general speed by %d%% for 8 turns.
The speed bonus will increase with the Dexterity stat]]):format(power * 100)
end,
}