| 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 | }
|
|---|