-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNAutoRecycle.txt
More file actions
29 lines (27 loc) · 900 Bytes
/
NAutoRecycle.txt
File metadata and controls
29 lines (27 loc) · 900 Bytes
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
extern void object::NukeAutoRecycler()
{
point start; // variable for initial pos.
object item; // info. about power station
start = position; // stores initial position
while(true) // while wrecks exsist
{
item = radar(Wreck); // looks for wrecks
goto(item.position); // goes to the wreck
recycle(); //recycles wreck
if (energyCell.energyLevel < 0.25) //check power remaining >50%
{
//item = radar(PowerStation); // looks for station
//goto(item.position); // goes to the power station
while ( energyCell.energyLevel < 1 ) //if PowerCell less than 100%
{
//wait(1); // waits until recharged
//}
message("Please recharge me with a Nuclear Cell");
wait(10);
}
}
}
goto(start); // comes back to initial pos.
message("All wrecks recycled"); //Ack all wrecks cleared
//Nexus
}