Debian Codegraph @

units/antharus/unit-antharus.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-antharus.lua - Define the antharus unit.
11 --
12 -- (c) Copyright 2005-2007 by 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 DefineAnimations("animations-antharus", {
30 Still = {"frame 0","wait 10",},
31 Death = {"unbreakable begin", "frame 0", "unbreakable end", "wait 10", },
32 })
33
34 DefineIcon({
35 Name = "icon-antharus",
36 Size = {46, 38},
37 Frame = 0,
38 File = "units/antharus/icon.png"})
39
40 DefineConstruction("construction-antharus", {
41 Constructions = {
42 {Percent = 0, File = "main", Frame = 0},
43 }
44 })
45
46 DefineUnitType("unit-antharus", {
47 Name = "Antharus",
48 Image = {"file", "units/antharus/antharus.png", "size", {132, 100}},
49 Animations = "animations-antharus",
50 Icon = "icon-antharus",
51 Construction = "construction-antharus",
52 HitPoints = 50,
53 DrawLevel = 25,
54 EnergyValue = 5000,
55 TileSize = {2, 2},
56 BoxSize = {64, 64},
57 SightRange = 1,
58 Armor = 0,
59 BasicDamage = 0,
60 PiercingDamage = 0,
61 Missile = "missile-none",
62 Priority = 0,
63 AnnoyComputerFactor = 0,
64 Points = 10,
65 ExplodeWhenKilled = "missile-64x64-explosion",
66 Corpse = "unit-destroyed-2x2-place",
67 Type = "land",
68 Building = true,
69 VisibleUnderFog = false,
70 CanHarvestFrom = true,
71 NumDirections = 1,
72 Sounds = {},
73 Neutral = true
74 })
75
76 DefineAllow("unit-antharus", ForbidAll)
77
78
79
80
81
82