Skip to content
Snippets Groups Projects
Commit 51226bd4 authored by dg's avatar dg
Browse files

spell ideas

git-svn-id: http://svn.net-core.org/repos/t-engine4@115 51575b47-30f0-44d4-a5cc-537603b46e54
parent 383a6a2f
No related branches found
No related tags found
No related merge requests found
newTalent{
name = "Noxious Cloud",
type = {"spell/air",1},
mana = 45,
cooldown = 8,
tactical = {
ATTACKAREA = 10,
},
action = function(self)
local duration = 5 + self:getMag(10)
local radius = 3
local t = {type="ball", range=15, radius=radius}
local x, y = self:getTarget(t)
if not x or not y then return nil end
x, y = game.target:pointAtRange(self.x, self.y, x, y, 15)
-- Add a lasting map effect
game.level.map:addEffect(self,
x, y, duration,
DamageType.NATURE, 4 + self:getMag(30),
radius,
5, nil,
engine.Entity.new{alpha=100, display='', color_br=30, color_bg=180, color_bb=60}
)
return true
end,
require = { stat = { mag=16 }, },
info = function(self)
return ([[Noxious fumes raises from the ground doing %0.2f nature damage in a radius of 3 each turns for %d turns.
Cooldown: 8 turns
The damage and duration will increase with the Magic stat]]):format(4 + self:getMag(30), 5 + self:getMag(10))
end,
}
newTalent{
name = "Blink",
name = "Phase Door",
type = {"spell/conveyance",1},
message = "@Source@ blinks.",
mana = 15,
......
newTalent{
name = "Noxious Cloud",
type = {"spell/earth",1},
mana = 45,
cooldown = 8,
tactical = {
ATTACKAREA = 10,
},
action = function(self)
local duration = 5 + self:getMag(10)
local radius = 3
local t = {type="ball", range=15, radius=radius}
local x, y = self:getTarget(t)
if not x or not y then return nil end
x, y = game.target:pointAtRange(self.x, self.y, x, y, 15)
-- Add a lasting map effect
game.level.map:addEffect(self,
x, y, duration,
DamageType.NATURE, 4 + self:getMag(30),
radius,
5, nil,
engine.Entity.new{alpha=100, display='', color_br=30, color_bg=180, color_bb=60}
)
return true
end,
require = { stat = { mag=16 }, },
info = function(self)
return ([[Noxious fumes raises from the ground doing %0.2f nature damage in a radius of 3 each turns for %d turns.
Cooldown: 8 turns
The damage and duration will increase with the Magic stat]]):format(4 + self:getMag(30), 5 + self:getMag(10))
end,
}
newTalent{
name = "Stone Skin",
type = {"spell/earth", 1},
......
......@@ -15,7 +15,7 @@ newTalentType{ type="spell/necromancy", name = "necromancy", description = "Necr
load("/data/talents/spells/arcane.lua")
load("/data/talents/spells/fire.lua")
load("/data/talents/spells/earth.lua")
load("/data/talents/spells/cold.lua")
load("/data/talents/spells/water.lua")
load("/data/talents/spells/air.lua")
load("/data/talents/spells/conveyance.lua")
load("/data/talents/spells/nature.lua")
......
File added
File added
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