1-- Copyright (C) 2007, 2010 - Bit-Blot
2--
3-- This file is part of Aquaria.
4--
5-- Aquaria is free software; you can redistribute it and/or
6-- modify it under the terms of the GNU General Public License
7-- as published by the Free Software Foundation; either version 2
8-- of the License, or (at your option) any later version.
9--
10-- This program is distributed in the hope that it will be useful,
11-- but WITHOUT ANY WARRANTY; without even the implied warranty of
12-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13--
14-- See the GNU General Public License for more details.
15--
16-- You should have received a copy of the GNU General Public License
17-- along with this program; if not, write to the Free Software
18-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20if not v then v = {} end
21if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end
22
23function init(me)
24	setupEntity(me, "EnergyOrb")
25	entity_setEntityType(me, ET_NEUTRAL)
26	entity_setProperty(me, EP_MOVABLE, true)
27	entity_setWeight(me, 300)
28	entity_setCollideRadius(me, 32)
29	entity_setMaxSpeed(me, 450)
30	entity_setColor(me, 1, 0, 0)
31	entity_setName(me, "SacrificeVictim")
32	if entity_isFlag(me, 1) then
33		entity_delete(me)
34	end
35end
36
37function update(me, dt)
38	entity_updateMovement(me, dt)
39	--entity_updateCurrents(me)
40end
41
42function enterState(me)
43end
44
45function exitState(me)
46end
47
48function hitSurface(me)
49end
50
51function damage(me, attacker, bone, damageType, dmg)
52	return false
53end
54
55function activate(me)
56end
57