Grace of the Eternals (SVN)

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Grace of the Eternals (SVN)

#1 Post by edge2054 »

The grace of the eternals tooltip and the speed timed effect aren't matching up, one says 17% and the other 14%.

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,
}

Post Reply