diff options
author | Pavel Stupnikov <dp@dpointer.org> | 2021-01-22 12:28:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 10:28:26 +0100 |
commit | 4b42ecb0f64c0044786412c15fb31b3705016375 (patch) | |
tree | 316d7c36b2522d2b7022b259f3165fbb6b0d109b /src/script/api/script_company.hpp | |
parent | 3345d54ad932773b74171a7ae6c00a3ec3c8556b (diff) | |
download | openttd-4b42ecb0f64c0044786412c15fb31b3705016375.tar.xz |
Feature: Add tile parameter for GSCompany.ChangeBankBalance to show text effect if needed (#8573)
Diffstat (limited to 'src/script/api/script_company.hpp')
-rw-r--r-- | src/script/api/script_company.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/api/script_company.hpp b/src/script/api/script_company.hpp index ea2f0cdd1..635b6fdee 100644 --- a/src/script/api/script_company.hpp +++ b/src/script/api/script_company.hpp @@ -242,6 +242,7 @@ public: * @param company The company to change the bank balance of. * @param delta Amount of money to give or take from the bank balance. A positive value adds money to the bank balance. * @param expenses_type The account in the finances window that will register the cost. + * @param tile The tile to show text effect on or ScriptMap::TILE_INVALID * @return True, if the bank balance was changed. * @game @pre No ScriptCompanyMode active in scope. * @pre ResolveCompanyID(company) != COMPANY_INVALID. @@ -250,7 +251,7 @@ public: * @note You need to create your own news message to inform about costs/gifts that you create using this command. * @api -ai */ - static bool ChangeBankBalance(CompanyID company, Money delta, ExpensesType expenses_type); + static bool ChangeBankBalance(CompanyID company, Money delta, ExpensesType expenses_type, TileIndex tile); /** * Get the income of the company in the given quarter. |