-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessage.mnd
30 lines (27 loc) · 1.01 KB
/
message.mnd
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
#set target = ML7AS; // Mindcode Logic version 7 (revision A) standard processors
const date = "2024-12-23"; // Year-month-day
print("[pink]Vela Attack logIc[]\nUnits are ");
isEnabled = switch1.@enabled;
if isEnabled == 0 then
print("[green]idle[]");
else
print("[red]attacking[]");
end;
print($"\n\nPress the [orange]switch[] to toggle [red]attack[]/[green]idle[]. Units are repaired at repair turrets within 1 minute with power > 0. You can control units via the [orange]arc turret[] and change the bomb type in the [orange]sorter[]\n\n made by [orange]testt[] in ${date}\n\nSource code: [cyan]");
print("github.com/limonovthesecond2/vela-ai");
printflush(message1);
i = 0;
do
controlled = arc1.@controlled;
if controlled == 2 then
switch1.enabled = 1;
end;
block = getlink(i);
blockType = block.@type;
case blockType
when @unloader, @item-source then
bombType = sorter1.@config;
block.config = bombType;
end;
i += 1;
loop while i < @links;