forked from rosebudai/OpenRCT2-Web
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:
1 parent
c3e79b1948
commit
d0ec5e95f8
1 file changed
+8
@@ -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