Newer
Older
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
name = "Glacial Vapour",
tactical = { ATTACKAREA = { COLD = 2 } },
range = 8,
radius = 3,
dg
committed
direct_hit = true,
target = function(self, t)
return {type="ball", range=self:getTalentRange(t), radius=self:getTalentRadius(t)}
end,
getDamage = function(self, t) return self:combatTalentSpellDamage(t, 4, 50) end,
getDuration = function(self, t) return self:getTalentLevel(t) + 2 end,
local tg = self:getTalentTarget(t)
local x, y = self:getTarget(tg)
dg
committed
local _ _, _, _, x, y = self:canProject(tg, x, y)
DamageType.COLD, t.getDamage(self, t),
self:getTalentRadius(t),
return ([[Glacial fumes rise from the ground doing %0.2f cold damage in a radius of 3 each turn for %d turns.
format(damDesc(self, DamageType.COLD, damage), duration)
tactical = { ATTACK = { COLD = 1 }, DISABLE = { stun = 3 } },
range = 10,
dg
committed
direct_hit = true,
getDamage = function(self, t) return self:combatTalentSpellDamage(t, 12, 180) * (5 + self:getTalentLevelRaw(t)) / 5 end,
local tg = {type="hit", range=self:getTalentRange(t), talent=t}
local x, y = self:getTarget(tg)
if not x or not y then return nil end
local dam = self:spellCrit(t.getDamage(self, t))
self:project(tg, x, y, DamageType.COLD, dam, {type="freeze"})
self:project(tg, x, y, DamageType.FREEZE, {dur=2+math.ceil(self:getTalentLevelRaw(t)), hp=70 + dam * 1.5})
return ([[Condenses ambient water on a target, freezing it for %d turns and damaging it for %0.2f.
The damage will increase with your Spellpower.]]):format(2+math.ceil(self:getTalentLevelRaw(t)), damDesc(self, DamageType.COLD, damage))
tactical = { ESCAPE = { knockback = 2 }, ATTACKAREA = { COLD = 0.5, PHYSICAL = 0.5 }, DISABLE = { knockback = 1 } },
dg
committed
direct_hit = true,
range = 0,
radius = function(self, t)
return 1 + 0.5 * t.getDuration(self, t)
end,
target = function(self, t)
return {type="ball", range=self:getTalentRange(t), radius=self:getTalentRadius(t)}
end,
getDamage = function(self, t) return self:combatTalentSpellDamage(t, 5, 90) end,
getDuration = function(self, t) return 3 + self:combatTalentSpellDamage(t, 5, 5) end,
DamageType.WAVE, {dam=t.getDamage(self, t), x=self.x, y=self.y},
5, nil,
engine.Entity.new{alpha=100, display='', color_br=30, color_bg=60, color_bb=200},
function(e)
local damage = t.getDamage(self, t)
local duration = t.getDuration(self, t)
local radius = self:getTalentRadius(t)
return ([[A wall of water rushes out from the caster with radius 1, increasing 1 per turn to a maximum eventual radius of %d, doing %0.2f cold damage and %0.2f physical damage as well as knocking back targets each turn for %d turns.
format(radius, damDesc(self, DamageType.COLD, damage/2), damDesc(self, DamageType.PHYSICAL, damage/2), duration)
mana = 25,
cooldown = 20,
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
tactical = { BUFF = 3, ATTACKAREA = { COLD = 0.5, PHYSICAL = 0.5 }, DISABLE = { knockback = 1 } },
direct_hit = true,
range = 10,
requires_target = true,
getDuration = function(self, t) return 4 + math.ceil(self:getTalentLevel(t)) end,
getPower = function(self, t) return util.bound(50 + self:combatTalentSpellDamage(t, 50, 450), 0, 500) / 500 end,
action = function(self, t)
self:setEffect(self.EFF_SHIVGOROTH_FORM, t.getDuration(self, t), {power=t.getPower(self, t), lvl=self:getTalentLevelRaw(t)})
game:playSoundNear(self, "talents/tidalwave")
return true
end,
info = function(self, t)
local power = t.getPower(self, t)
local dur = t.getDuration(self, t)
return ([[You absorb latent cold around you, turning into an ice elemental - a shivgoroth - for %d turns.
While transformed you gain access to the Ice Storm talent level %d, %d%% resistance to cuts and stuns, %d%% cold resistance, you do not need to breath and all cold damage heals you for %d%% of the damage done.
The power will increase with your Spellpower.]]):
format(dur, self:getTalentLevelRaw(t), power * 100, power * 100 / 2, 50 + power * 100)
end,
}
newTalent{
name = "Ice Storm",
type = {"spell/other",1},
points = 5,
random_ego = "attack",
mana = 25,
cooldown = 20,
tactical = { ATTACKAREA = { COLD = 2, stun = 1 } },
range = 0,
radius = 3,
target = function(self, t)
return {type="ball", range=self:getTalentRange(t), radius=self:getTalentRadius(t), selffire=false}
end,
getDamage = function(self, t) return self:combatTalentSpellDamage(t, 5, 90) end,
getDuration = function(self, t) return 5 + self:combatSpellpower(0.05) + self:getTalentLevel(t) end,
self.x, self.y, t.getDuration(self, t),
DamageType.ICE, t.getDamage(self, t),
3,
local damage = t.getDamage(self, t)
local duration = t.getDuration(self, t)
return ([[A furious ice storm rages around the caster doing %0.2f cold damage in a radius of 3 each turn for %d turns.
The damage and duration will increase with your Spellpower.]]):format(damDesc(self, DamageType.COLD, damage), duration)