Skip to content
Snippets Groups Projects
Commit 353820ac authored by dg's avatar dg
Browse files

Strike and Dig have switch places

Strike now deals more damage


git-svn-id: http://svn.net-core.org/repos/t-engine4@3264 51575b47-30f0-44d4-a5cc-537603b46e54
parent 16eaf0e4
No related branches found
No related tags found
No related merge requests found
......@@ -50,60 +50,60 @@ newTalent{
}
newTalent{
name = "Dig",
name = "Strike",
type = {"spell/earth",2},
require = spells_req2,
points = 5,
random_ego = "utility",
mana = 40,
random_ego = "attack",
mana = 18,
cooldown = 6,
tactical = { ATTACK = 1, DISABLE = 2, ESCAPE = 2 },
range = 10,
reflectable = true,
proj_speed = 6,
requires_target = true,
no_npc_use = true,
getRange = function(self, t) return self:getTalentLevelRaw(t) end,
getDamage = function(self, t) return self:combatTalentSpellDamage(t, 8, 230) end,
action = function(self, t)
local tg = {type="bolt", range=self:getTalentRange(t), nolock=true, talent=t, display={particle="bolt_earth", trail="earthtrail"}}
local tg = {type="bolt", range=self:getTalentRange(t), talent=t, display={particle="bolt_earth", trail="earthtrail"}}
local x, y = self:getTarget(tg)
if not x or not y then return nil end
for i = 1, t.getRange(self, t) do
self:project(tg, x, y, DamageType.DIG, 1)
end
self:projectile(tg, x, y, DamageType.SPELLKNOCKBACK, self:spellCrit(t.getDamage(self, t)))
game:playSoundNear(self, "talents/earth")
return true
end,
info = function(self, t)
local range = t.getRange(self, t)
return ([[Digs up to %d grids into walls, trees or other impassable terrain]]):
format(range)
local damage = t.getDamage(self, t)
return ([[Conjures up a fist of stone doing %0.2f physical damage and knocking the target back.
The damage will increase with the Magic stat]]):format(damDesc(self, DamageType.PHYSICAL, damage))
end,
}
newTalent{
name = "Strike",
name = "Dig",
type = {"spell/earth",3},
require = spells_req3,
points = 5,
random_ego = "attack",
mana = 18,
cooldown = 6,
tactical = { ATTACK = 1, DISABLE = 2, ESCAPE = 2 },
random_ego = "utility",
mana = 40,
range = 10,
reflectable = true,
proj_speed = 6,
requires_target = true,
getDamage = function(self, t) return self:combatTalentSpellDamage(t, 8, 170) end,
no_npc_use = true,
getRange = function(self, t) return self:getTalentLevelRaw(t) end,
action = function(self, t)
local tg = {type="bolt", range=self:getTalentRange(t), talent=t, display={particle="bolt_earth", trail="earthtrail"}}
local tg = {type="bolt", range=self:getTalentRange(t), nolock=true, talent=t, display={particle="bolt_earth", trail="earthtrail"}}
local x, y = self:getTarget(tg)
if not x or not y then return nil end
self:projectile(tg, x, y, DamageType.SPELLKNOCKBACK, self:spellCrit(t.getDamage(self, t)))
for i = 1, t.getRange(self, t) do
self:project(tg, x, y, DamageType.DIG, 1)
end
game:playSoundNear(self, "talents/earth")
return true
end,
info = function(self, t)
local damage = t.getDamage(self, t)
return ([[Conjures up a fist of stone doing %0.2f physical damage and knocking the target back.
The damage will increase with the Magic stat]]):format(damDesc(self, DamageType.PHYSICAL, damage))
local range = t.getRange(self, t)
return ([[Digs up to %d grids into walls, trees or other impassable terrain]]):
format(range)
end,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment