Debian Codegraph @

units/rocksfield/unit-rocksfield.lua

raw
1 -- ____ _ __
2 -- / __ )____ _____ | | / /___ ___________
3 -- / __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
4 -- / /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
5 -- /_____/\____/____/ |__/|__/\__,_/_/ /____/
6 --
7 -- A futuristic real-time strategy game.
8 -- This file is part of Bos Wars.
9 --
10 -- unit-rocksfield.lua - Define the rocks-field.
11 --
12 -- (c) Copyright 1998 - 2007 by Lutz Sammer, Crestez Leonard, Francois Beerten
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
29 DefineIcon({
30 Name = "icon-rocks_field",
31 Size = {46, 38},
32 Frame = 0,
33 File = "units/rocksfield/ico_rocks_field.png"})
34
35 DefineConstruction("construction-rocksfield", {
36 Constructions = {
37 {Percent = 0, File = "main", Frame = 0},
38 }
39 })
40
41 DefineUnitType("unit-rocksfield", {
42 Name = "Rocks Field",
43 Image = {"file", "units/rocksfield/rocks_field.png", "size", {128, 128}},
44 Shadow = {"file", "units/rocksfield/rocks_field_s.png", "size", {128, 128}, "offset", {0, 0}},
45 Animations = "animations-building",
46 Icon = "icon-rocks_field",
47 MagmaValue = 9000,
48 VisibleUnderFog = true,
49 Construction = "construction-rocksfield",
50 NeutralMinimapColor = {196, 196, 196},
51 DrawLevel = 40,
52 TileSize = {4, 4},
53 BoxSize = {96, 96},
54 SightRange = 1,
55 HitPoints = 25500,
56 Priority = 0,
57 Armor = 20,
58 BasicDamage = 0,
59 PiercingDamage = 0,
60 Missile = "missile-none",
61 Corpse = "unit-destroyed-4x4-place",
62 ExplodeWhenKilled = "missile-explosion",
63 Type = "land",
64 Building = true,
65 NumDirections = 1,
66 CanHarvestFrom = true,
67 Neutral = true
68 })
69