From d0ec5e95f81a258fcd3798a55138ff6062eef493 Mon Sep 17 00:00:00 2001 From: TELK Date: Sun, 7 Jan 2018 06:00:29 +0900 Subject: [PATCH] Add park and company value to console 'get' command This allows getting the park and company value in scenario that don't display them such as Bumbly Bazaar. --- src/openrct2/interface/console.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/openrct2/interface/console.c b/src/openrct2/interface/console.c index 610a24e812..403a7834fb 100644 --- a/src/openrct2/interface/console.c +++ b/src/openrct2/interface/console.c @@ -728,6 +728,12 @@ static sint32 cc_get(const utf8 **argv, sint32 argc) if (strcmp(argv[0], "park_rating") == 0) { console_printf("park_rating %d", gParkRating); } + else if (strcmp(argv[0], "park_value") == 0) { + console_printf("park_value %d", gParkValue / 10); + } + else if (strcmp(argv[0], "company_value") == 0) { + console_printf("company_value %d", gCompanyValue / 10); + } else if (strcmp(argv[0], "money") == 0) { console_printf("money %d.%d0", gCash / 10, gCash % 10); } @@ -1327,6 +1333,8 @@ typedef struct console_command { static const utf8* console_variable_table[] = { "park_rating", + "park_value", + "company_value", "money", "scenario_initial_cash", "current_loan",