/usr/share/games/colobot/ai/tower1.txt is in colobot-common 0.1.6-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | extern void object::ServiceTower1()
{
object tower; // info. about tower
object station; // info. about station
// 1) go to the defense tower
tower = radar(DefenseTower); // look for tower
goto(tower.position); // go there
while ( true ) // repeat forever
{
// 2) wait until power cell is empty
while ( tower.energyCell.energyLevel > 0.2 )
{
wait(2);
}
grab(); // grab the power cell
// 3) go to the power station to recharge
station = radar(PowerStation);
goto(station.position); // go there
while ( load.energyLevel < 1 )
{
wait(1); // wait until recharged
}
// 4) go back to defense tower
goto(tower.position); // go to tower
drop(); // drop the power cell
}
}
|