Debian Codegraph @

units/morels/unit-morels.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-morels.lua - Define the morels units.
11 --
12 -- (c) Copyright 2005-2007 by Lo�s Taulelle, Graphics by TimberDragon.
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-morels.lua 85 2005-04-23 23:03:50Z jim4 $
29
30 -- Define, Animation and Construction for all morels
31
32 DefineAnimations("animations-morels", {
33 Still = {"frame 0", "wait 1", },
34 })
35
36 DefineConstruction("construction-morels", {
37 Constructions = {
38 {Percent = 0, File = "main", Frame = 0},
39 }
40 })
41
42 -- morel-1
43
44 DefineUnitType("unit-morel-1", {
45 Name = "morel-1",
46 Image = {"file", "units/morels/morel_1.png", "size", {64, 128}},
47 Shadow = {"file", "units/morels/morel_1s.png", "size", {64, 128}},
48 Offset = {0, -20},
49 Animations = "animations-morels",
50 Icon = "icon-morel-1",
51 Construction = "construction-morels",
52 HitPoints = 50,
53 DrawLevel = 25,
54 VisibleUnderFog = true,
55 NeutralMinimapColor = {196, 196, 196},
56 TileSize = {1, 1},
57 BoxSize = {48, 48},
58 Armor = 10,
59 Missile = "missile-none",
60 Priority = 0,
61 ExplodeWhenKilled = "missile-explosion",
62 Corpse = "unit-destroyed-1x1-place",
63 Type = "land",
64 Building = true,
65 EnergyValue = 5000,
66 CanHarvestFrom = true,
67 Neutral = true,
68 NumDirections = 1,
69 Sounds = {}
70 })
71
72 DefineIcon({
73 Name = "icon-morel-1",
74 Size = {46, 38},
75 Frame = 0,
76 File = "units/morels/morel_1i.png"})
77
78 DefineAllow("unit-morel-1", AllowAll)
79
80 -- morel-2
81
82 DefineUnitType("unit-morel-2", {
83 Name = "morel-2",
84 Image = {"file", "units/morels/morel_2.png", "size", {64, 128}},
85 Shadow = {"file", "units/morels/morel_2s.png", "size", {64, 128}},
86 Offset = {0, -22},
87 Animations = "animations-morels",
88 Icon = "icon-morel-2",
89 Construction = "construction-morels",
90 HitPoints = 50,
91 DrawLevel = 25,
92 VisibleUnderFog = true,
93 NeutralMinimapColor = {196, 196, 196},
94 TileSize = {1, 1},
95 BoxSize = {48, 48},
96 Armor = 10,
97 Missile = "missile-none",
98 Priority = 0,
99 ExplodeWhenKilled = "missile-explosion",
100 Corpse = "unit-destroyed-1x1-place",
101 Type = "land",
102 Building = true,
103 EnergyValue = 5000,
104 CanHarvestFrom = true,
105 Neutral = true,
106 NumDirections = 1,
107 Sounds = {}
108 })
109
110 DefineIcon({
111 Name = "icon-morel-2",
112 Size = {46, 38},
113 Frame = 0,
114 File = "units/morels/morel_2i.png"})
115
116 DefineAllow("unit-morel-2", AllowAll)
117
118 -- morel-3
119
120 DefineUnitType("unit-morel-3", {
121 Name = "morel-3",
122 Image = {"file", "units/morels/morel_3.png", "size", {64, 128}},
123 Shadow = {"file", "units/morels/morel_3s.png", "size", {64, 128}},
124 Offset = {0, -22},
125 Animations = "animations-morels",
126 Icon = "icon-morel-3",
127 Construction = "construction-morels",
128 HitPoints = 50,
129 DrawLevel = 25,
130 VisibleUnderFog = true,
131 NeutralMinimapColor = {196, 196, 196},
132 TileSize = {1, 1},
133 BoxSize = {48, 48},
134 Armor = 10,
135 Missile = "missile-none",
136 Priority = 0,
137 ExplodeWhenKilled = "missile-explosion",
138 Corpse = "unit-destroyed-1x1-place",
139 Type = "land",
140 Building = true,
141 EnergyValue = 5000,
142 CanHarvestFrom = true,
143 Neutral = true,
144 NumDirections = 1,
145 Sounds = {}
146 })
147
148 DefineIcon({
149 Name = "icon-morel-3",
150 Size = {46, 38},
151 Frame = 0,
152 File = "units/morels/morel_3i.png"})
153
154 DefineAllow("unit-morel-3", AllowAll)
155
156 -- morel-4
157
158 DefineUnitType("unit-morel-4", {
159 Name = "morel-4",
160 Image = {"file", "units/morels/morel_4.png", "size", {64, 128}},
161 Shadow = {"file", "units/morels/morel_4s.png", "size", {64, 128}},
162 Offset = {0, -19},
163 Animations = "animations-morels",
164 Icon = "icon-morel-4",
165 Construction = "construction-morels",
166 HitPoints = 50,
167 DrawLevel = 25,
168 VisibleUnderFog = true,
169 NeutralMinimapColor = {196, 196, 196},
170 TileSize = {1, 1},
171 BoxSize = {48, 48},
172 Armor = 10,
173 Missile = "missile-none",
174 Priority = 0,
175 ExplodeWhenKilled = "missile-explosion",
176 Corpse = "unit-destroyed-1x1-place",
177 Type = "land",
178 Building = true,
179 EnergyValue = 5000,
180 CanHarvestFrom = true,
181 Neutral = true,
182 NumDirections = 1,
183 Sounds = {}
184 })
185
186 DefineIcon({
187 Name = "icon-morel-4",
188 Size = {46, 38},
189 Frame = 0,
190 File = "units/morels/morel_4i.png"})
191
192 DefineAllow("unit-morel-4", AllowAll)
193
194 -- morel-5
195
196 DefineUnitType("unit-morel-5", {
197 Name = "morel-5",
198 Image = {"file", "units/morels/morel_5.png", "size", {64, 128}},
199 Shadow = {"file", "units/morels/morel_5s.png", "size", {64, 128}},
200 Offset = {0, -16},
201 Animations = "animations-morels",
202 Icon = "icon-morel-5",
203 Construction = "construction-morels",
204 HitPoints = 50,
205 DrawLevel = 25,
206 VisibleUnderFog = true,
207 NeutralMinimapColor = {196, 196, 196},
208 TileSize = {1, 1},
209 BoxSize = {32, 32},
210 Armor = 10,
211 Missile = "missile-none",
212 Priority = 0,
213 ExplodeWhenKilled = "missile-explosion",
214 Corpse = "unit-destroyed-1x1-place",
215 Type = "land",
216 Building = true,
217 EnergyValue = 5000,
218 CanHarvestFrom = true,
219 Neutral = true,
220 NumDirections = 1,
221 Sounds = {}
222 })
223
224 DefineIcon({
225 Name = "icon-morel-5",
226 Size = {46, 38},
227 Frame = 0,
228 File = "units/morels/morel_5i.png"})
229
230 DefineAllow("unit-morel-5", AllowAll)
231
232 -- morel-6
233
234 DefineUnitType("unit-morel-6", {
235 Name = "morel-6",
236 Image = {"file", "units/morels/morel_6.png", "size", {64, 128}},
237 Shadow = {"file", "units/morels/morel_6s.png", "size", {64, 128}},
238 Offset = {0, -23},
239 Animations = "animations-morels",
240 Icon = "icon-morel-6",
241 Construction = "construction-morels",
242 HitPoints = 50,
243 DrawLevel = 25,
244 VisibleUnderFog = true,
245 NeutralMinimapColor = {196, 196, 196},
246 TileSize = {1, 1},
247 BoxSize = {32, 32},
248 Armor = 10,
249 Missile = "missile-none",
250 Priority = 0,
251 ExplodeWhenKilled = "missile-explosion",
252 Corpse = "unit-destroyed-1x1-place",
253 Type = "land",
254 Building = true,
255 EnergyValue = 5000,
256 CanHarvestFrom = true,
257 Neutral = true,
258 NumDirections = 1,
259 Sounds = {}
260 })
261
262 DefineIcon({
263 Name = "icon-morel-6",
264 Size = {46, 38},
265 Frame = 0,
266 File = "units/morels/morel_6i.png"})
267
268 DefineAllow("unit-morel-6", AllowAll)
269
270 -- morel-7
271
272 DefineUnitType("unit-morel-7", {
273 Name = "morel-7",
274 Image = {"file", "units/morels/morel_7.png", "size", {64, 128}},
275 Shadow = {"file", "units/morels/morel_7s.png", "size", {64, 128}},
276 Offset = {0, -24},
277 Animations = "animations-morels",
278 Icon = "icon-morel-7",
279 Construction = "construction-morels",
280 HitPoints = 50,
281 DrawLevel = 25,
282 VisibleUnderFog = true,
283 NeutralMinimapColor = {196, 196, 196},
284 TileSize = {1, 1},
285 BoxSize = {32, 32},
286 Armor = 10,
287 Missile = "missile-none",
288 Priority = 0,
289 ExplodeWhenKilled = "missile-explosion",
290 Corpse = "unit-destroyed-1x1-place",
291 Type = "land",
292 Building = true,
293 EnergyValue = 5000,
294 CanHarvestFrom = true,
295 Neutral = true,
296 NumDirections = 1,
297 Sounds = {}
298 })
299
300 DefineIcon({
301 Name = "icon-morel-7",
302 Size = {46, 38},
303 Frame = 0,
304 File = "units/morels/morel_7i.png"})
305
306 DefineAllow("unit-morel-7", AllowAll)
307