Loading

Revision differences

Old revision #prif7bcczNew revision #pdfyikkqi
26  local myRef = refineries.Begin();  26  local myRef = refineries.Begin();  
27  AISign.BuildSign(AIIndustry.GetLocation(myRef), "destination");  27  AISign.BuildSign(AIIndustry.GetLocation(myRef), "destination");  
28  28  
29  AILog.Info(AITile.GetSlope(0x418E));  29  local accepting = AITileList_IndustryAccepting(myRef, 4);
30  AILog.Info(AITile.IsCoastTile(0x418E));  30  AILog.Info("I found " + accepting.Count() + " tiles for the initial candidate");
31  AIMarine.BuildDock(0x418E, AIStation.STATION_NEW);  31  accepting.Valuate(AITile.IsCoastTile);
   32  accepting.KeepValue(1);
   33  AILog.Info("I found " + accepting.Count() + " coast tiles.");
   34
   35  foreach(myTile, value in accepting) {
   36    local slope = AITile.GetSlope(myTile);
   37    AILog.Info("Slope at tile " + myTile + " is " + slope + ".");
   38    if (AIMarine.BuildDock(myTile, AIStation.STATION_NEW)) {
   39      break;
   40    }
   41  }
32  42  
33  while (true) {  43  while (true) {  
34    this.Sleep(50);  44    this.Sleep(50);