[1.0.0] Congeal Time - Slow amount less than advertised

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
johnnyzero
Thalore
Posts: 148
Joined: Tue Feb 28, 2012 6:36 am

[1.0.0] Congeal Time - Slow amount less than advertised

#1 Post by johnnyzero »

The Congeal Time talent currently has a mismatch between the talent description's slow value and the actual slow applied to enemies hit by the ball of purple goo. I'm not sure which slow value should actually be applied, but the description's slow value is considerably greater than the actual effect value.

In game/modules/tome/data/talents/temporal.lua:

Code: Select all

newTalent{
	name = "Congeal Time",
	type = {"spell/temporal",1},
	require = spells_req1,
	points = 5,
	random_ego = "utility",
	mana = 20,
	cooldown = 30,
	tactical = { DISABLE = 2 },
	reflectable = true,
	proj_speed = 2,
	range = 6,
	direct_hit = true,
	requires_target = true,
	getSlow = function(self, t) return math.min(self:getTalentLevel(t) * 0.08, 0.6) end,                         -- DISPLAYED VALUE IN TALENT DESCRIPTION
	getProj = function(self, t) return math.min(90, 5 + self:combatTalentSpellDamage(t, 5, 700) / 10) end,
	action = function(self, t)
		local tg = {type="beam", range=self:getTalentRange(t), talent=t, display={particle="bolt_arcane"}}
		local x, y = self:getTarget(tg)
		if not x or not y then return nil end
		self:projectile(tg, x, y, DamageType.CONGEAL_TIME, {
			slow = 1 - 1 / (1 + t.getSlow(self, t)),                                                               -- ACTUAL VALUE OF CONGEAL EFFECT
			proj = t.getProj(self, t),
		}, {type="manathrust"})
		game:playSoundNear(self, "talents/spell_generic")
		return true
	end,
	info = function(self, t)
		[b]local slow = t.getSlow(self, t)
		local proj = t.getProj(self, t)
		return ([[Project a bolt of time distortion, decreasing the target's global speed by %d%% and all projectiles it fires by %d%% for 7 turns.]]):
		format(100 * slow, proj)
	end,
}

Post Reply