mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
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.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user