Loading

Paste #pjfxbqdcs

  1. function WrightAI::GetBestRouteEngine(tile_1, tile_2) {
  2.     local engine_list = AIEngineList(AIVehicle.VT_AIR);
  3.     engine_list.Valuate(AIEngine.CanRefitCargo, this.cargoId);
  4.     engine_list.KeepValue(1);

Paste #pg2rkpgsq

  1.         /* Aircraft too old? Sell it. */
  2.         if (AIVehicle.GetAgeLeft(i) < 365) {
  3.             /* Send the vehicle to depot if we didn't do so yet */
  4.             if (!vehicle_to_depot.rawin(i) || vehicle_to_depot.rawget(i) != true) {
  5.                 AILog.Info("Sending " + AIVehicle.GetName(i) + " to hangar to be sold, due to its old age.");

Paste #pyr4ojjgt

  1. function WrightAI::checkAdjacentStation(airportTile, airport_type) {
  2.     if (!AIController.GetSetting("station_spread")) {
  3.         return AIStation.STATION_NEW;
  4.     }

Paste #pqdtmtd9t

  1. /**
  2.  * Find a suitable spot for an airport, walking all towns hoping to find one.
  3.  * When a town is used, it is marked as such and not re-used.
  4.  */
  5. function WrightAI::FindSuitableAirportSpot(airportTypes, airport1_tile, large_aircraft, small_aircraft, helicopter, triedTowns)

Paste #p5kqrevhb

  1. ingo@aeolus:~/hg-test$ echo bb > bb
  2. ingo@aeolus:~/hg-test$ hg add bb
  3. ingo@aeolus:~/hg-test$ hg ci -m "Add bb"
  4. neuer Kopf erzeugt
  5. ingo@aeolus:~/hg-test$ echo cc > cc

Paste #pfj0tj2nl

  1. Ă„nderung:        3:c20825fedab5
  2. Marke:           tip
  3. Nutzer:          planetmaker <planetmaker@openttd.org>
  4. Datum:           Wed Aug 22 16:09:35 2018 +0200
  5. Zusammenfassung: Add d

Paste #p1najb3xj

  1. /**
  2.  * Build an airport route. Find 2 cities that are big enough and try to build airport in both cities.
  3.  *  Then we can build an aircraft and make some money.
  4.  */
  5. function WrightAI::BuildAirportRoute()

Paste #pqyzjd7sx

  1.                     //check whether adjacent tiles are opposite
  2.                     local adjTile = Utils.getOffsetTile(tile, -1, 0);
  3.                     local nextAdjTile = Utils.getOffsetTile(tile, 1, 0);
  4.                     if (!(adjRoadTiles.HasItem(adjTile) && adjRoadTiles.HasItem(nextAdjTile))) {
  5.                         adjTile = Utils.getOffsetTile(tile, 0, -1);

Paste #peyued1ot

  1.                     //check whether adjacent tiles are opposite
  2.                     local adjTile;
  3.                     local nextAdjTile;
  4.                     local adjRoadTiles2 = AITileList();
  5.                     adjRoadTiles2.AddList(adjRoadTiles);

Paste #pgzotajof

  1. function Utils::AreOtherStationsNearby(tile, stationId) {
  2.     //check if there are other stations squareSize squares nearby
  3.     local square = AITileList();
  4.     local squareSize = 0;

Paste #p4rtxmvyh

  1. function Utils::AreOtherStationsNearby(tile, stationId) {
  2.     //check if there are other stations squareSize squares nearby
  3.     local square = AITileList();
  4.     local squareSize = 0;

Paste #pyzhscwft

  1.     function sendLowProfitVehiclesToDepot() {
  2.         local roadVehicleList = AIVehicleList();
  3.         roadVehicleList.Valuate(AIVehicle.GetVehicleType);
  4.         roadVehicleList.KeepValue(AIVehicle.VT_ROAD);

Paste #pyxd59mk8

  1. require("BuildManager.nut");
  2.  
  3. class RouteManager {
  4.     MAX_STATION_COUNT = 2;

Paste #po4hqnzmp

  1. /// valuateTruckStopTile
  2. ///
  3. /// @param tile - The starting tile to valuate.
  4. /// @param cargoClass - should be either AICargo.CC_MAIL, or AICargo.CC_PASSENGERS to get correct cargo acceptance.
  5. /// @return - The tile value.

Paste #phnoopups

  1. diff --git a/nml/actions/action0properties.py b/nml/actions/action0properties.py
  2. index eebfd95..53da8c3 100644
  3. --- a/nml/actions/action0properties.py
  4. +++ b/nml/actions/action0properties.py
  5. @@ -751,7 +751,7 @@ def industry_prod_multiplier(value):