From c3feb37fb2c346c0835f8d5206cfec576bc6c0c2 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Thu, 26 May 2011 12:35:46 +0000 Subject: [PATCH] wormhole! git-svn-id: http://svn.net-core.org/repos/t-engine4@3436 51575b47-30f0-44d4-a5cc-537603b46e54 --- .../tome/data/gfx/particles/wormhole.lua | 39 +++++++++++++++++++ .../tome/data/zones/abashed-expanse/grids.lua | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 game/modules/tome/data/gfx/particles/wormhole.lua diff --git a/game/modules/tome/data/gfx/particles/wormhole.lua b/game/modules/tome/data/gfx/particles/wormhole.lua new file mode 100644 index 0000000000..6c1d91a5d8 --- /dev/null +++ b/game/modules/tome/data/gfx/particles/wormhole.lua @@ -0,0 +1,39 @@ +-- 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 diff --git a/game/modules/tome/data/zones/abashed-expanse/grids.lua b/game/modules/tome/data/zones/abashed-expanse/grids.lua index 5a37571f2e..2fb6e15228 100644 --- a/game/modules/tome/data/zones/abashed-expanse/grids.lua +++ b/game/modules/tome/data/zones/abashed-expanse/grids.lua @@ -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), } -- GitLab