1 |
i see..
|
1 |
i see..
|
2 |
\n
|
2 |
\n
|
3 |
[spoiler]i
|
3 |
[spoiler]i
|
4 |
[spoiler]s
|
4 |
[spoiler]s
|
5 |
[spoiler]e
|
5 |
[spoiler]e
|
6 |
[spoiler]e
|
6 |
[spoiler]e
|
7 |
{{{
|
7 |
{{{
|
8 |
old_echo=Spring.Echo
|
8 |
old_echo=Spring.Echo
|
9 |
local function Echo_hijack(string)
|
9 |
local function Echo_hijack(string)
|
10 |
old_echo(string)
|
10 |
old_echo(string)
|
11 |
local qwe=FeatureDefs==nil
|
11 |
local qwe=FeatureDefs==nil
|
12 |
if not qwe then
|
12 |
if not qwe then
|
13 |
|
13 |
|
14 |
for name, fd in pairs(FeatureDefs) do
|
14 |
for name, fd in pairs(FeatureDefs) do
|
15 |
if name:find("egg") then
|
15 |
if name:find("egg") then
|
16 |
fd.customparams.fromunit=true
|
16 |
fd.customparams.fromunit=true
|
17 |
old_echo(tostring(fd.customparams.fromunit))
|
17 |
old_echo(tostring(fd.customparams.fromunit))
|
18 |
end
|
18 |
end
|
19 |
end
|
19 |
end
|
20 |
Spring.Echo=old_echo
|
20 |
Spring.Echo=old_echo
|
21 |
end
|
21 |
end
|
22 |
end
|
22 |
end
|
23 |
Spring.Echo=Echo_hijack
|
23 |
Spring.Echo=Echo_hijack
|
24 |
}}}
|
24 |
}}}
|
25 |
[/spoiler]
|
25 |
[/spoiler]
|
26 |
[/spoiler]
|
26 |
[/spoiler]
|
27 |
[/spoiler]
|
27 |
[/spoiler]
|
28 |
[/spoiler]
|
28 |
[/spoiler]
|
29 |
\n
|
29 |
\n
|
30 |
i didnt know i could edit feature defs and other files =)
|
30 |
i didnt know i could edit feature defs and other files =)
|
|
|
31 |
thanks
|