forked from Quezler/mindustry__nydus--script-pool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
killunit.js
56 lines (50 loc) · 2.91 KB
/
killunit.js
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// totally original, not stolen from a better programmer
(function(){
const args = parseArguments(argument);
if (args.length === 0) return "specify a unit cheesehead";
switch (args[0].toLowerCase()) {
case 'flare':
Groups.unit.each(u => u.type == UnitTypes.flare ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.flare ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.flare ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.flare ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.flare ? u.kill() : 0);
return "flares dead, probably"
case 'dagger':
Groups.unit.each(u => u.type == UnitTypes.dagger ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.dagger ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.dagger ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.dagger ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.dagger ? u.kill() : 0);
return "daggers dead, maybe"
case 'nova':
Groups.unit.each(u => u.type == UnitTypes.nova ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.nova ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.nova ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.nova ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.nova ? u.kill() : 0);
return "novas gone, hopefully"
case 'crawler':
Groups.unit.each(u => u.type == UnitTypes.crawler ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.crawler ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.crawler ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.crawler ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.crawler ? u.kill() : 0);
return "crawlers dead, made them attack lol"
case 'mace':
Groups.unit.each(u => u.type == UnitTypes.mace ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.mace ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.mace ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.mace ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.mace ? u.kill() : 0);
return "fire bad"
case 'pulsar':
Groups.unit.each(u => u.type == UnitTypes.pulsar ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.pulsar ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.pulsar ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.pulsar ? u.kill() : 0);
Groups.unit.each(u => u.type == UnitTypes.pulsar ? u.kill() : 0);
return "alternative to fire also bad"
}
return "not a unit/not implemented(yet)"
})();