1 |
woooo success!!
|
1 |
woooo success!!
|
2 |
\n
|
2 |
\n
|
3 |
when placed in tweak defs this removes all unit wrecks
|
3 |
when placed in tweak defs this removes all unit wrecks
|
4 |
\n
|
4 |
\n
|
5 |
Zm9yIG5hbWUsIHVkIGluIHBhaXJzKFVuaXREZWZzKSBkbwogIGlmIHVkLmZlYXR1cmVkZWZzIHRoZW4KICAgIGZvciBfLCB3ZCBpbiBwYWlycyh1ZC5mZWF0dXJlZGVmcykgZG8KICAgICAgaWYgd2Qub2JqZWN0IHRoZW4KICAgICAgICB3ZC5vYmplY3QgPSBbW11dCiAgICAgIGVuZAogICAgZW5kCiAgZW5kCmVuZA==
|
5 |
Zm9yIG5hbWUsIHVkIGluIHBhaXJzKFVuaXREZWZzKSBkbwogIGlmIHVkLmZlYXR1cmVkZWZzIHRoZW4KICAgIGZvciBfLCB3ZCBpbiBwYWlycyh1ZC5mZWF0dXJlZGVmcykgZG8KICAgICAgaWYgd2Qub2JqZWN0IHRoZW4KICAgICAgICB3ZC5vYmplY3QgPSBbW11dCiAgICAgIGVuZAogICAgZW5kCiAgZW5kCmVuZA==
|
6 |
\n
|
6 |
\n
|
7 |
the original code:
|
7 |
the original code:
|
8 |
\n
|
8 |
\n
|
9 |
for name, ud in pairs(UnitDefs) do
|
9 |
for name, ud in pairs(UnitDefs) do
|
10 |
if ud.featuredefs then
|
10 |
if ud.featuredefs then
|
11 |
for
_,
wd
in
pairs(
ud.
featuredefs)
do
|
11 |
for
_,
fd
in
pairs(
ud.
featuredefs)
do
|
12 |
if
wd.
object
then
|
12 |
if
fd.
object
then
|
13 |
wd.
object
=
[[]]
|
13 |
fd.
object
=
[[]]
|
14 |
end
|
14 |
end
|
15 |
end
|
15 |
end
|
16 |
end
|
16 |
end
|
17 |
end
|
17 |
end
|
18 |
\n
|
18 |
\n
|
19 |
@sprung thanks for the help.. only took me 3 days to reverse engineer it O.o
|
19 |
@sprung thanks for the help.. only took me 3 days to reverse engineer it O.o
|