1 |
cant seem to find why this wont work
|
1 |
cant seem to find why this wont work
|
2 |
[spoiler]
|
2 |
[spoiler]
|
3 |
{
{
{
[q]
|
3 |
{
{
{
|
4 |
for name, ud in pairs(UnitDefs) do
|
4 |
for name, ud in pairs(UnitDefs) do
|
5 |
if
ud.
name
==
"Glaive"
or
ud.
name
==
"Ronin"
then
|
5 |
if
ud.
name
==
"glaive"
or
ud.
name
==
"ronin"
then
|
6 |
if ud.weapons then
|
6 |
if ud.weapons then
|
7 |
table.insert(ud.weapons, {
|
7 |
table.insert(ud.weapons, {
|
8 |
def
=
"SHIELD",
|
8 |
def
=
"shield",
|
9 |
})
|
9 |
})
|
10 |
else
|
10 |
else
|
11 |
ud.weapons = {
|
11 |
ud.weapons = {
|
12 |
{
|
12 |
{
|
13 |
def
=
"SHIELD",
|
13 |
def
=
"shield",
|
14 |
},
|
14 |
},
|
15 |
}
|
15 |
}
|
16 |
end
|
16 |
end
|
17 |
if
ud.
weaponDefs
then
|
17 |
if
ud.
weapondefs
then
|
18 |
ud.
weaponDefs.
SHIELD
=
{
|
18 |
ud.
weapondefs.
shield
=
{
|
19 |
name
=
[[Energy
Shield]],
|
19 |
name
=
[[energy
shield]],
|
20 |
damage = {
|
20 |
damage = {
|
21 |
default = 10,
|
21 |
default = 10,
|
22 |
},
|
22 |
},
|
23 |
exteriorShield
=
true,
|
23 |
exteriorshield
=
true,
|
24 |
shieldAlpha
=
0.
2,
|
24 |
shieldalpha
=
0.
2,
|
25 |
shieldBadColor
=
[[1
0.
1
0.
1
1]],
|
25 |
shieldbadcolor
=
[[1
0.
1
0.
1
1]],
|
26 |
shieldGoodColor
=
[[0.
1
0.
1
1
1]],
|
26 |
shieldgoodcolor
=
[[0.
1
0.
1
1
1]],
|
27 |
shieldInterceptType
=
3,
|
27 |
shieldintercepttype
=
3,
|
28 |
shieldPower
=
900,
|
28 |
shieldpower
=
900,
|
29 |
shieldPowerRegen
=
11,
|
29 |
shieldpowerregen
=
11,
|
30 |
shieldPowerRegenEnergy
=
0,
|
30 |
shieldpowerregenenergy
=
0,
|
31 |
shieldRadius
=
80,
|
31 |
shieldradius
=
80,
|
32 |
shieldRepulser
=
false,
|
32 |
shieldrepulser
=
false,
|
33 |
shieldStartingPower
=
900,
|
33 |
shieldstartingpower
=
900,
|
34 |
smartShield
=
true,
|
34 |
smartshield
=
true,
|
35 |
visibleShield
=
false,
|
35 |
visibleshield
=
false,
|
36 |
visibleShieldRepulse
=
false,
|
36 |
visibleshieldrepulse
=
false,
|
37 |
weaponType
=
[[Shield]],
|
37 |
weapontype
=
[[shield]],
|
38 |
}
|
38 |
}
|
39 |
else
|
39 |
else
|
40 |
ud.
weaponDefs
=
{
|
40 |
ud.
weapondefs
=
{
|
41 |
SHIELD
=
{
|
41 |
shield
=
{
|
42 |
name
=
[[Energy
Shield]],
|
42 |
name
=
[[energy
shield]],
|
43 |
damage = {
|
43 |
damage = {
|
44 |
default = 10,
|
44 |
default = 10,
|
45 |
},
|
45 |
},
|
46 |
exteriorShield
=
true,
|
46 |
exteriorshield
=
true,
|
47 |
shieldAlpha
=
0.
2,
|
47 |
shieldalpha
=
0.
2,
|
48 |
shieldBadColor
=
[[1
0.
1
0.
1
1]],
|
48 |
shieldbadcolor
=
[[1
0.
1
0.
1
1]],
|
49 |
shieldGoodColor
=
[[0.
1
0.
1
1
1]],
|
49 |
shieldgoodcolor
=
[[0.
1
0.
1
1
1]],
|
50 |
shieldInterceptType
=
3,
|
50 |
shieldintercepttype
=
3,
|
51 |
shieldPower
=
900,
|
51 |
shieldpower
=
900,
|
52 |
shieldPowerRegen
=
11,
|
52 |
shieldpowerregen
=
11,
|
53 |
shieldPowerRegenEnergy
=
0,
|
53 |
shieldpowerregenenergy
=
0,
|
54 |
shieldRadius
=
80,
|
54 |
shieldradius
=
80,
|
55 |
shieldRepulser
=
false,
|
55 |
shieldrepulser
=
false,
|
56 |
shieldStartingPower
=
900,
|
56 |
shieldstartingpower
=
900,
|
57 |
smartShield
=
true,
|
57 |
smartshield
=
true,
|
58 |
visibleShield
=
false,
|
58 |
visibleshield
=
false,
|
59 |
visibleShieldRepulse
=
false,
|
59 |
visibleshieldrepulse
=
false,
|
60 |
weaponType
=
[[Shield]],
|
60 |
weapontype
=
[[shield]],
|
61 |
},
|
61 |
},
|
62 |
}
|
62 |
}
|
63 |
end
|
63 |
end
|
64 |
end
|
64 |
end
|
65 |
end
|
65 |
end
|
66 |
}
}
}
[/q]
|
66 |
}
}
}
|
67 |
[/spoiler]
|
67 |
[/spoiler]
|