/
rand0adbush.lua
39 lines (34 loc) · 1.2 KB
/
rand0adbush.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
-- UNITDEF -- ZEONMINOVSKY --
--------------------------------------------------------------------------------
local unitName = "rand0adbush"
--------------------------------------------------------------------------------
local unitDef = {
bmcode = "0",
buildCostEnergy = 0,
buildCostMetal = 0,
buildPic = "rand0adbush.png",
description = "Spawns a random 0ad bush",
explodeAs = "ELECTRIC_EXPLOSION",
footprintX = 2,
footprintZ = 2,
levelGround = false,
maxslope = 255,
maxwaterdepth = 255,
maxDamage = 1000,
name = "Spawns a random 0ad bush",
objectName = "features/0ad/bushes/ad0_bush_4_l.s3o",
power = 1,
reclaimable = false,
selfDestructAs = "ELECTRIC_EXPLOSION",
script = "default.cob",
shootme = "1",
unitname = unitName,
yardMap = "oo oo",
customparams = {
armortype = "building",
factionname = "randm",
},
}
--------------------------------------------------------------------------------
return lowerkeys({ [unitName] = unitDef })
--------------------------------------------------------------------------------