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