| 1 |
-- _________ __ __ |
| 2 |
-- / _____// |_____________ _/ |______ ____ __ __ ______ |
| 3 |
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ |
| 4 |
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ |
| 5 |
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > |
| 6 |
-- \/ \/ \//_____/ \/ |
| 7 |
-- ______________________ ______________________ |
| 8 |
-- T H E W A R B E G I N S |
| 9 |
-- Stratagus - A free fantasy real time strategy game engine |
| 10 |
-- |
| 11 |
-- unit-weakhotspot.lua - Define the hot spot unit. |
| 12 |
-- |
| 13 |
-- (c) Copyright 2007 by Francois Beerten. |
| 14 |
-- |
| 15 |
-- This program is free software; you can redistribute it and/or modify |
| 16 |
-- it under the terms of the GNU General Public License as published by |
| 17 |
-- the Free Software Foundation; either version 2 of the License, or |
| 18 |
-- (at your option) any later version. |
| 19 |
-- |
| 20 |
-- This program is distributed in the hope that it will be useful, |
| 21 |
-- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 |
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23 |
-- GNU General Public License for more details. |
| 24 |
-- |
| 25 |
-- You should have received a copy of the GNU General Public License |
| 26 |
-- along with this program; if not, write to the Free Software |
| 27 |
-- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 28 |
-- |
| 29 |
-- $Id: unit-tree02.lua 8696 2007-04-07 18:14:35Z feb $ |
| 30 |
|
| 31 |
DefineAnimations("animations-weakhotspot", { |
| 32 |
Still = {"frame 0", "wait 100"}, |
| 33 |
Death = {"unbreakable begin", "frame 0", "unbreakable end", "wait 1", }, |
| 34 |
}) |
| 35 |
|
| 36 |
DefineIcon({ |
| 37 |
Name = "icon-weakhotspot", |
| 38 |
Size = {46, 38}, |
| 39 |
Frame = 0, |
| 40 |
File = "units/weakhotspot/hotspot_i.png"}) |
| 41 |
|
| 42 |
DefineConstruction("construction-weakhotspot", { |
| 43 |
Constructions = { |
| 44 |
{Percent = 0, File = "main", Frame = 0}, |
| 45 |
} |
| 46 |
}) |
| 47 |
|
| 48 |
DefineUnitType("unit-weakhotspot", { |
| 49 |
Name = "Hot Spot", |
| 50 |
Image = {"file", "units/weakhotspot/hotspot.png", "size", {64, 64}}, |
| 51 |
Offset = {0, 0}, |
| 52 |
Animations = "animations-weakhotspot", |
| 53 |
Icon = "icon-weakhotspot", |
| 54 |
Construction = "construction-weakhotspot", |
| 55 |
HitPoints = 1, |
| 56 |
Indestructible = 1, |
| 57 |
DrawLevel = 2, |
| 58 |
TileSize = {2, 2}, |
| 59 |
BoxSize = {64, 64}, |
| 60 |
NeutralMinimapColor = {175, 9, 149}, |
| 61 |
SightRange = 0, |
| 62 |
Armor = 0, |
| 63 |
BasicDamage = 0, |
| 64 |
PiercingDamage = 0, |
| 65 |
Missile = "missile-none", |
| 66 |
Priority = 0, |
| 67 |
AnnoyComputerFactor = 0, |
| 68 |
Points = 0, |
| 69 |
ExplodeWhenKilled = "missile-64x64-explosion", |
| 70 |
Corpse = "unit-destroyed-1x1-place", |
| 71 |
Type = "land", |
| 72 |
Building = true, |
| 73 |
VisibleUnderFog = true, |
| 74 |
Neutral = true, |
| 75 |
NumDirections = 1, |
| 76 |
ProductionEfficiency = 50, |
| 77 |
Sounds = {} |
| 78 |
}) |
| 79 |
|
| 80 |
DefineAllow("unit-weakhotspot", AllowAll) |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|