mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-23 10:51:58 -05:00
Implement "Finish 5 rollercoaster..:" objective check and some fixups
This commit is contained in:
parent
0669525fdc
commit
7403ef68d7
1 changed files with 15 additions and 2 deletions
|
@ -624,7 +624,7 @@ void check_objectives()
|
|||
return;
|
||||
|
||||
switch (objective_type) {
|
||||
case OBJECTIVE_GUESTS_BY:
|
||||
case OBJECTIVE_GUESTS_BY://1
|
||||
|
||||
if (cur_month_year == 8 * objective_year){
|
||||
if (park_rating < 600 || guests_in_park < objective_guests)
|
||||
|
@ -665,7 +665,18 @@ void check_objectives()
|
|||
case OBJECTIVE_10_ROLLERCOASTERS_LENGTH://8
|
||||
break;
|
||||
case OBJECTIVE_FINISH_5_ROLLERCOASTERS://9
|
||||
{
|
||||
rct_ride* ride;
|
||||
int rcs = 0;
|
||||
for (int i = 0; i < 255; i++) {
|
||||
ride = &(RCT2_ADDRESS(RCT2_ADDRESS_RIDE_LIST, rct_ride)[i]);
|
||||
if (ride->status && ride->intensity > objective_currency)
|
||||
rcs++;
|
||||
}
|
||||
if (rcs >= 5)
|
||||
scenario_success();
|
||||
break;
|
||||
}
|
||||
case OBJECTIVE_REPLAY_LOAN_AND_PARK_VALUE://A
|
||||
{
|
||||
sint32 current_loan = RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_LOAN, sint32);
|
||||
|
@ -686,7 +697,9 @@ void check_objectives()
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* rct2: 0x006C44B1
|
||||
**/
|
||||
void scenario_update()
|
||||
{
|
||||
uint8 screen_flags = RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8);
|
||||
|
|
Loading…
Add table
Reference in a new issue