Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
Paste #pjfxbqdcs
Show paste
function
WrightAI
::
GetBestRouteEngine
(
tile_1
,
tile_2
)
{
local
engine_list
=
AIEngineList
(
AIVehicle
.
VT_AIR
)
;
engine_list
.
Valuate
(
AIEngine
.
CanRefitCargo
,
this
.
cargoId
)
;
engine_list
.
KeepValue
(
1
)
;
Paste #pg2rkpgsq
Show paste
/* Aircraft too old? Sell it. */
if
(
AIVehicle
.
GetAgeLeft
(
i
)
<
365
)
{
/* Send the vehicle to depot if we didn't do so yet */
if
(
!
vehicle_to_depot
.
rawin
(
i
)
||
vehicle_to_depot
.
rawget
(
i
)
!=
true
)
{
AILog
.
Info
(
"Sending "
+
AIVehicle
.
GetName
(
i
)
+
" to hangar to be sold
,
due to its old age
.
"
)
;
Paste #pyr4ojjgt
Show paste
function
WrightAI
::
checkAdjacentStation
(
airportTile
,
airport_type
)
{
if
(
!
AIController
.
GetSetting
(
"station_spread"
)
)
{
return
AIStation
.
STATION_NEW
;
}
Paste #pqdtmtd9t
Show paste
/**
* Find a suitable spot for an airport, walking all towns hoping to find one.
* When a town is used, it is marked as such and not re-used.
*/
function
WrightAI
::
FindSuitableAirportSpot
(
airportTypes
,
airport1_tile
,
large_aircraft
,
small_aircraft
,
helicopter
,
triedTowns
)
Paste #p5kqrevhb
Show paste
ingo@aeolus:~/hg-test$ echo bb > bb
ingo@aeolus:~/hg-test$ hg add bb
ingo@aeolus:~/hg-test$ hg ci -m "Add bb"
neuer Kopf erzeugt
ingo@aeolus:~/hg-test$ echo cc > cc
Paste #pfj0tj2nl
Show paste
Ă„nderung: 3:c20825fedab5
Marke: tip
Nutzer: planetmaker <planetmaker@openttd.org>
Datum: Wed Aug 22 16:09:35 2018 +0200
Zusammenfassung: Add d
Paste #p1najb3xj
Show paste
/**
* Build an airport route. Find 2 cities that are big enough and try to build airport in both cities.
* Then we can build an aircraft and make some money.
*/
function
WrightAI
::
BuildAirportRoute
(
)
Paste #pqyzjd7sx
Show paste
//check whether adjacent tiles are opposite
local adjTile = Utils.getOffsetTile(tile, -1, 0);
local nextAdjTile = Utils.getOffsetTile(tile, 1, 0);
if (!(adjRoadTiles.HasItem(adjTile) && adjRoadTiles.HasItem(nextAdjTile))) {
adjTile = Utils.getOffsetTile(tile, 0, -1);
Paste #peyued1ot
Show paste
//check whether adjacent tiles are opposite
local
adjTile;
local
nextAdjTile;
local
adjRoadTiles2
=
AITileList
(
)
;
adjRoadTiles2
.
AddList
(
adjRoadTiles
)
;
Paste #pgzotajof
Show paste
function
Utils
::
AreOtherStationsNearby
(
tile
,
stationId
)
{
//check if there are other stations squareSize squares nearby
local
square
=
AITileList
(
)
;
local
squareSize
=
0
;
Paste #p4rtxmvyh
Show paste
function
Utils
::
AreOtherStationsNearby
(
tile
,
stationId
)
{
//check if there are other stations squareSize squares nearby
local
square
=
AITileList
(
)
;
local
squareSize
=
0
;
Paste #pyzhscwft
Show paste
function
sendLowProfitVehiclesToDepot
(
)
{
local
roadVehicleList
=
AIVehicleList
(
)
;
roadVehicleList
.
Valuate
(
AIVehicle
.
GetVehicleType
)
;
roadVehicleList
.
KeepValue
(
AIVehicle
.
VT_ROAD
)
;
Paste #pyxd59mk8
Show paste
require
(
"BuildManager
.
nut"
)
;
class
RouteManager
{
MAX_STATION_COUNT
=
2
;
Paste #po4hqnzmp
Show paste
/// valuateTruckStopTile
///
/// @param tile - The starting tile to valuate.
/// @param cargoClass - should be either AICargo.CC_MAIL, or AICargo.CC_PASSENGERS to get correct cargo acceptance.
/// @return - The tile value.
Paste #phnoopups
Show paste
diff --git a/nml/actions/action0properties.py b/nml/actions/action0properties.py
index eebfd95..53da8c3 100644
--- a/nml/actions/action0properties.py
+++ b/nml/actions/action0properties.py
@@ -751,7 +751,7 @@ def industry_prod_multiplier(value):
«
1
2
...
30
31
32
33
34
35
36
...
133
134
»