summaryrefslogtreecommitdiff
path: root/src/script/api/script_town.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/script_town.hpp')
-rw-r--r--src/script/api/script_town.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/script/api/script_town.hpp b/src/script/api/script_town.hpp
index 518eb7002..a52932a3c 100644
--- a/src/script/api/script_town.hpp
+++ b/src/script/api/script_town.hpp
@@ -313,6 +313,17 @@ public:
static bool PerformTownAction(TownID town_id, TownAction town_action);
/**
+ * Expand the town.
+ * @param town_id The town to expand.
+ * @param houses The amount of houses to grow the town with.
+ * @pre IsValidTown(town_id).
+ * @pre houses > 0.
+ * @return True if the action succeeded.
+ * @api -ai
+ */
+ static bool ExpandTown(TownID town_id, int houses);
+
+ /**
* Get the rating of a company within a town.
* @param town_id The town to get the rating for.
* @param company_id The company to get the rating for.