| 1 |
-- ____ _ __ |
| 2 |
-- / __ )____ _____ | | / /___ ___________ |
| 3 |
-- / __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/ |
| 4 |
-- / /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ ) |
| 5 |
-- /_____/\____/____/ |__/|__/\__,_/_/ /____/ |
| 6 |
-- |
| 7 |
-- A futuristic real-time strategy game. |
| 8 |
-- This file is part of Bos Wars. |
| 9 |
-- |
| 10 |
-- unit-rocks.lua - Define the rocks units. |
| 11 |
-- |
| 12 |
-- (c) Copyright 2005 - 2007 by Lo� Taulelle. |
| 13 |
-- |
| 14 |
-- This program is free software; you can redistribute it and/or modify |
| 15 |
-- it under the terms of the GNU General Public License as published by |
| 16 |
-- the Free Software Foundation; either version 2 of the License, or |
| 17 |
-- (at your option) any later version. |
| 18 |
-- |
| 19 |
-- This program is distributed in the hope that it will be useful, |
| 20 |
-- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 |
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 |
-- GNU General Public License for more details. |
| 23 |
-- |
| 24 |
-- You should have received a copy of the GNU General Public License |
| 25 |
-- along with this program; if not, write to the Free Software |
| 26 |
-- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 27 |
-- |
| 28 |
-- $Id: unit-rocks.lua 85 2005-04-23 23:03:50Z jim4 $ |
| 29 |
|
| 30 |
-- Define, Animation and Construction for all rocks |
| 31 |
|
| 32 |
DefineAnimations("animations-rocks", { |
| 33 |
Still = {"frame 0", "wait 1", }, |
| 34 |
}) |
| 35 |
|
| 36 |
DefineConstruction("construction-rocks", { |
| 37 |
Constructions = { |
| 38 |
{Percent = 0, File = "main", Frame = 0}, |
| 39 |
} |
| 40 |
}) |
| 41 |
|
| 42 |
-- rock-1 |
| 43 |
|
| 44 |
DefineUnitType("unit-rock-1", { |
| 45 |
Name = "rock-1", |
| 46 |
Image = {"file", "units/rocks/rock_1.png", "size", {96, 96}}, |
| 47 |
Shadow = {"file", "units/rocks/rock_1s.png", "size", {96, 96}}, |
| 48 |
Animations = "animations-rocks", |
| 49 |
Icon = "icon-rock-1", |
| 50 |
Construction = "construction-rocks", |
| 51 |
MagmaValue = 5000, |
| 52 |
HitPoints = 3000, |
| 53 |
DrawLevel = 25, |
| 54 |
VisibleUnderFog = true, |
| 55 |
NeutralMinimapColor = {196, 196, 196}, |
| 56 |
TileSize = {1, 1}, |
| 57 |
BoxSize = {48, 48}, |
| 58 |
Armor = 999, |
| 59 |
Missile = "missile-none", |
| 60 |
Priority = 0, |
| 61 |
ExplodeWhenKilled = "missile-explosion", |
| 62 |
Corpse = "unit-destroyed-1x1-place", |
| 63 |
Type = "land", |
| 64 |
Building = true, |
| 65 |
NumDirections = 1, |
| 66 |
CanHarvestFrom = true, |
| 67 |
Neutral = true, |
| 68 |
Sounds = {} |
| 69 |
}) |
| 70 |
|
| 71 |
DefineIcon({ |
| 72 |
Name = "icon-rock-1", |
| 73 |
Size = {46, 38}, |
| 74 |
Frame = 0, |
| 75 |
File = "units/rocks/rock_1i.png"}) |
| 76 |
|
| 77 |
DefineAllow("unit-rock-1", AllowAll) |
| 78 |
|
| 79 |
-- rock-2 |
| 80 |
|
| 81 |
DefineUnitType("unit-rock-2", { |
| 82 |
Name = "rock-2", |
| 83 |
Image = {"file", "units/rocks/rock_2.png", "size", {96, 96}}, |
| 84 |
Shadow = {"file", "units/rocks/rock_2s.png", "size", {96, 96}}, |
| 85 |
Animations = "animations-rocks", |
| 86 |
Icon = "icon-rock-2", |
| 87 |
Construction = "construction-rocks", |
| 88 |
MagmaValue = 4000, |
| 89 |
HitPoints = 2500, |
| 90 |
DrawLevel = 25, |
| 91 |
VisibleUnderFog = true, |
| 92 |
NeutralMinimapColor = {196, 196, 196}, |
| 93 |
TileSize = {1, 1}, |
| 94 |
BoxSize = {48, 48}, |
| 95 |
Armor = 999, |
| 96 |
Missile = "missile-none", |
| 97 |
Priority = 0, |
| 98 |
ExplodeWhenKilled = "missile-explosion", |
| 99 |
Corpse = "unit-destroyed-1x1-place", |
| 100 |
Type = "land", |
| 101 |
Building = true, |
| 102 |
NumDirections = 1, |
| 103 |
CanHarvestFrom = true, |
| 104 |
Neutral = true, |
| 105 |
Sounds = {} |
| 106 |
}) |
| 107 |
|
| 108 |
DefineIcon({ |
| 109 |
Name = "icon-rock-2", |
| 110 |
Size = {46, 38}, |
| 111 |
Frame = 0, |
| 112 |
File = "units/rocks/rock_2i.png"}) |
| 113 |
|
| 114 |
DefineAllow("unit-rock-2", AllowAll) |
| 115 |
|
| 116 |
-- rock-3 |
| 117 |
|
| 118 |
DefineUnitType("unit-rock-3", { |
| 119 |
Name = "rock-3", |
| 120 |
Image = {"file", "units/rocks/rock_3.png", "size", {96, 96}}, |
| 121 |
Shadow = {"file", "units/rocks/rock_3s.png", "size", {96, 96}}, |
| 122 |
Animations = "animations-rocks", |
| 123 |
Icon = "icon-rock-3", |
| 124 |
Construction = "construction-rocks", |
| 125 |
MagmaValue = 3000, |
| 126 |
HitPoints = 2500, |
| 127 |
DrawLevel = 25, |
| 128 |
VisibleUnderFog = true, |
| 129 |
NeutralMinimapColor = {196, 196, 196}, |
| 130 |
TileSize = {1, 1}, |
| 131 |
BoxSize = {48, 48}, |
| 132 |
Armor = 999, |
| 133 |
Missile = "missile-none", |
| 134 |
Priority = 0, |
| 135 |
ExplodeWhenKilled = "missile-explosion", |
| 136 |
Corpse = "unit-destroyed-1x1-place", |
| 137 |
Type = "land", |
| 138 |
Building = true, |
| 139 |
NumDirections = 1, |
| 140 |
CanHarvestFrom = true, |
| 141 |
Neutral = true, |
| 142 |
Sounds = {} |
| 143 |
}) |
| 144 |
|
| 145 |
DefineIcon({ |
| 146 |
Name = "icon-rock-3", |
| 147 |
Size = {46, 38}, |
| 148 |
Frame = 0, |
| 149 |
File = "units/rocks/rock_3i.png"}) |
| 150 |
|
| 151 |
DefineAllow("unit-rock-3", AllowAll) |
| 152 |
|
| 153 |
-- rock-4 |
| 154 |
|
| 155 |
DefineUnitType("unit-rock-4", { |
| 156 |
Name = "rock-4", |
| 157 |
Image = {"file", "units/rocks/rock_4.png", "size", {96, 96}}, |
| 158 |
Shadow = {"file", "units/rocks/rock_4s.png", "size", {96, 96}}, |
| 159 |
Animations = "animations-rocks", |
| 160 |
Icon = "icon-rock-4", |
| 161 |
Construction = "construction-rocks", |
| 162 |
MagmaValue = 2000, |
| 163 |
HitPoints = 2500, |
| 164 |
DrawLevel = 25, |
| 165 |
VisibleUnderFog = true, |
| 166 |
NeutralMinimapColor = {196, 196, 196}, |
| 167 |
TileSize = {1, 1}, |
| 168 |
BoxSize = {48, 48}, |
| 169 |
Armor = 999, |
| 170 |
Missile = "missile-none", |
| 171 |
Priority = 0, |
| 172 |
ExplodeWhenKilled = "missile-explosion", |
| 173 |
Corpse = "unit-destroyed-1x1-place", |
| 174 |
Type = "land", |
| 175 |
Building = true, |
| 176 |
NumDirections = 1, |
| 177 |
CanHarvestFrom = true, |
| 178 |
Neutral = true, |
| 179 |
Sounds = {} |
| 180 |
}) |
| 181 |
|
| 182 |
DefineIcon({ |
| 183 |
Name = "icon-rock-4", |
| 184 |
Size = {46, 38}, |
| 185 |
Frame = 0, |
| 186 |
File = "units/rocks/rock_4i.png"}) |
| 187 |
|
| 188 |
DefineAllow("unit-rock-4", AllowAll) |
| 189 |
|
| 190 |
-- rock-5 |
| 191 |
|
| 192 |
DefineUnitType("unit-rock-5", { |
| 193 |
Name = "rock-5", |
| 194 |
Image = {"file", "units/rocks/rock_5.png", "size", {96, 96}}, |
| 195 |
Shadow = {"file", "units/rocks/rock_5s.png", "size", {96, 96}}, |
| 196 |
Animations = "animations-rocks", |
| 197 |
Icon = "icon-rock-5", |
| 198 |
Construction = "construction-rocks", |
| 199 |
MagmaValue = 1000, |
| 200 |
HitPoints = 1500, |
| 201 |
DrawLevel = 25, |
| 202 |
VisibleUnderFog = true, |
| 203 |
NeutralMinimapColor = {196, 196, 196}, |
| 204 |
TileSize = {1, 1}, |
| 205 |
BoxSize = {32, 32}, |
| 206 |
Armor = 999, |
| 207 |
Missile = "missile-none", |
| 208 |
Priority = 0, |
| 209 |
ExplodeWhenKilled = "missile-explosion", |
| 210 |
Corpse = "unit-destroyed-1x1-place", |
| 211 |
Type = "land", |
| 212 |
Building = true, |
| 213 |
NumDirections = 1, |
| 214 |
CanHarvestFrom = true, |
| 215 |
Neutral = true, |
| 216 |
Sounds = {} |
| 217 |
}) |
| 218 |
|
| 219 |
DefineIcon({ |
| 220 |
Name = "icon-rock-5", |
| 221 |
Size = {46, 38}, |
| 222 |
Frame = 0, |
| 223 |
File = "units/rocks/rock_5i.png"}) |
| 224 |
|
| 225 |
DefineAllow("unit-rock-5", AllowAll) |
| 226 |
|
| 227 |
-- rock-6 |
| 228 |
|
| 229 |
DefineUnitType("unit-rock-6", { |
| 230 |
Name = "rock-6", |
| 231 |
Image = {"file", "units/rocks/rock_6.png", "size", {96, 96}}, |
| 232 |
Shadow = {"file", "units/rocks/rock_6s.png", "size", {96, 96}}, |
| 233 |
Animations = "animations-rocks", |
| 234 |
Icon = "icon-rock-6", |
| 235 |
Construction = "construction-rocks", |
| 236 |
MagmaValue = 1200, |
| 237 |
HitPoints = 1500, |
| 238 |
DrawLevel = 25, |
| 239 |
VisibleUnderFog = true, |
| 240 |
NeutralMinimapColor = {196, 196, 196}, |
| 241 |
TileSize = {1, 1}, |
| 242 |
BoxSize = {32, 32}, |
| 243 |
Armor = 999, |
| 244 |
Missile = "missile-none", |
| 245 |
Priority = 0, |
| 246 |
ExplodeWhenKilled = "missile-explosion", |
| 247 |
Corpse = "unit-destroyed-1x1-place", |
| 248 |
Type = "land", |
| 249 |
Building = true, |
| 250 |
NumDirections = 1, |
| 251 |
CanHarvestFrom = true, |
| 252 |
Neutral = true, |
| 253 |
Sounds = {} |
| 254 |
}) |
| 255 |
|
| 256 |
DefineIcon({ |
| 257 |
Name = "icon-rock-6", |
| 258 |
Size = {46, 38}, |
| 259 |
Frame = 0, |
| 260 |
File = "units/rocks/rock_6i.png"}) |
| 261 |
|
| 262 |
DefineAllow("unit-rock-6", AllowAll) |
| 263 |
|
| 264 |
|