Debian Codegraph @

units/tree03/unit-tree03.lua

raw
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-tree.lua - Define the tree unit.
12 --
13 -- (c) Copyright 2005-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
30 DefineAnimations("animations-tree03", {
31 Still = {"frame 0", "random-wait 255 5000", "frame 1", "wait 6",
32 "frame 2", "wait 6", "frame 3", "wait 6", "frame 2", "wait 6",
33 "frame 1", "wait 6", },
34 Death = {"unbreakable begin", "frame 0", "unbreakable end", "wait 10", },
35 })
36
37 DefineUnitType("unit-tree03", {
38 Name = "tree03",
39 Image = {"file", "units/tree03/tree03.png", "size", {128, 128}},
40 Offset = {0, -24},
41 Shadow = {"file", "units/tree03/tree03_s.png", "size", {128, 128}},
42 Animations = "animations-tree03",
43 Icon = "icon-tree",
44 Construction = "construction-tree",
45 EnergyValue = 5000,
46 HitPoints = 50,
47 DrawLevel = 25,
48 TileSize = {1, 1},
49 BoxSize = {32, 32},
50 NeutralMinimapColor = {73, 159, 9},
51 SightRange = 1,
52 Armor = 0,
53 BasicDamage = 0,
54 PiercingDamage = 0,
55 Missile = "missile-none",
56 Priority = 0,
57 AnnoyComputerFactor = 0,
58 Points = 10,
59 ExplodeWhenKilled = "missile-64x64-explosion",
60 Corpse = "unit-destroyed-1x1-place",
61 Type = "land",
62 Building = true,
63 VisibleUnderFog = true,
64 NumDirections = 1,
65 CanHarvestFrom = true,
66 Neutral = true,
67 Sounds = {}
68 })
69
70 DefineAllow("unit-tree03", AllowAll)
71
72
73
74
75
76