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

wormhole!

git-svn-id: http://svn.net-core.org/repos/t-engine4@3436 51575b47-30f0-44d4-a5cc-537603b46e54
parent e9b88959
No related branches found
No related tags found
No related merge requests found
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010, 2011 Nicolas Casalini
--
-- 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
base_size = 64
return {
system_rotation = 0, system_rotationv = 0.5,
base = 1000,
angle = { 0, 0 }, anglev = { 0, 0 }, anglea = { 0, 0 },
life = { 10000, 10000 },
size = { 64, 64 }, sizev = {0, 0}, sizea = {0, 0},
r = {255, 255}, rv = {0, 0}, ra = {0, 0},
g = {255, 255}, gv = {0, 0}, ga = {0, 0},
b = {255, 255}, bv = {0, 0}, ba = {0, 0},
a = {255, 255}, av = {0, 0}, aa = {0, 0},
}, function(self)
self.ps:emit(1)
end, 1, "shockbolt/terrain/wormhole", true
......@@ -25,7 +25,6 @@ load("/data/general/grids/void.lua")
newEntity{ base="FLOATING_ROCKS", define_as = "WORMHOLE", nice_tiler = false,
name = "unstable wormhole",
display = '*', color = colors.GREY,
add_mos = {{image="terrain/wormhole.png"}},
damage_project = function(self, src, x, y, type, dam)
if type ~= engine.DamageType.PHYSICAL and game.party:hasMember(src) and not self.change_level then
self.change_level = 1
......@@ -35,4 +34,5 @@ newEntity{ base="FLOATING_ROCKS", define_as = "WORMHOLE", nice_tiler = false,
if q then q:stabilized() end
end
end,
resolvers.generic(function(e) e:addParticles(engine.Particles.new("wormhole", 1, {})) 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