/usr/share/games/colobot/ai/tradar2.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::Sow( )
{
while ( true )
{
float x, y;
x = 8+rand()*24;
y = -89.5+rand()*24;
goto(x,y,0);
produce(position, 0, WayPoint, "");
while ( Compte(WayPoint) >= 20 )
{
wait(2);
}
}
}
int Compte(int cat)
{
int i, total;
object p;
total = 0;
for ( i=0 ; i<10000 ; i++ )
{
p = retobject(i);
if ( p == null ) break;
if ( p.category == cat ) total ++;
}
return total;
}
|