summaryrefslogtreecommitdiff
path: root/src/script/api/ai
diff options
context:
space:
mode:
authorSamu <dj_samu@hotmail.com>2018-09-14 13:03:52 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2018-11-01 18:06:08 +0100
commit1e68b9b3e6487c8c95c5d8dac89c04ea06d1d9b5 (patch)
treeef4e425dd7241c0b230feba91dfba9b4267157c2 /src/script/api/ai
parent4703cd433d18c8c6d144a0e279891cf039add6e1 (diff)
downloadopenttd-1e68b9b3e6487c8c95c5d8dac89c04ea06d1d9b5.tar.xz
Add: AI/GS GetMonthlyMaintenanceCost (#6897)
API addition which allows AI/GS scripts to retrieve the monthly maintenance cost of an airport type.
Diffstat (limited to 'src/script/api/ai')
-rw-r--r--src/script/api/ai/ai_airport.hpp.sq1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/api/ai/ai_airport.hpp.sq b/src/script/api/ai/ai_airport.hpp.sq
index 63ee13098..89e7ba125 100644
--- a/src/script/api/ai/ai_airport.hpp.sq
+++ b/src/script/api/ai/ai_airport.hpp.sq
@@ -52,6 +52,7 @@ void SQAIAirport_Register(Squirrel *engine)
SQAIAirport.DefSQStaticMethod(engine, &ScriptAirport::GetNoiseLevelIncrease, "GetNoiseLevelIncrease", 3, ".ii");
SQAIAirport.DefSQStaticMethod(engine, &ScriptAirport::GetNearestTown, "GetNearestTown", 3, ".ii");
SQAIAirport.DefSQStaticMethod(engine, &ScriptAirport::GetMaintenanceCostFactor, "GetMaintenanceCostFactor", 2, ".i");
+ SQAIAirport.DefSQStaticMethod(engine, &ScriptAirport::GetMonthlyMaintenanceCost, "GetMonthlyMaintenanceCost", 2, ".i");
SQAIAirport.PostRegister(engine);
}