summaryrefslogtreecommitdiff
path: root/src/script/api/script_rail.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/script_rail.hpp')
-rw-r--r--src/script/api/script_rail.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/script/api/script_rail.hpp b/src/script/api/script_rail.hpp
index b7d7db923..96d673af6 100644
--- a/src/script/api/script_rail.hpp
+++ b/src/script/api/script_rail.hpp
@@ -464,6 +464,14 @@ public:
* To get km/h multiply this number by 1.00584.
*/
static int32 GetMaxSpeed(RailType railtype);
+
+ /**
+ * Get the maintenance cost factor of a railtype.
+ * @param railtype The railtype to get the maintenance factor of.
+ * @pre IsRailTypeAvailable(railtype)
+ * @return Maintenance cost factor of the railtype.
+ */
+ static uint16 GetMaintenanceCostFactor(RailType railtype);
};
#endif /* SCRIPT_RAIL_HPP */