mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 20:13:07 +01:00
Convert S4 scenarios to JSON patches
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
#include "../peep/RideUseSystem.h"
|
||||
#include "../rct12/CSStringConverter.h"
|
||||
#include "../rct12/EntryList.h"
|
||||
#include "../rct12/ScenarioPatcher.h"
|
||||
#include "../ride/RideData.h"
|
||||
#include "../ride/Station.h"
|
||||
#include "../ride/Track.h"
|
||||
@@ -2515,92 +2516,8 @@ namespace OpenRCT2::RCT1
|
||||
|
||||
void FixLandOwnership()
|
||||
{
|
||||
switch (_s4.ScenarioSlotIndex)
|
||||
{
|
||||
case SC_DYNAMITE_DUNES:
|
||||
FixLandOwnershipTiles({ { 97, 18 }, { 99, 19 }, { 83, 34 } });
|
||||
break;
|
||||
case SC_LEAFY_LAKE:
|
||||
FixLandOwnershipTiles({ { 49, 66 }, { 74, 96 } });
|
||||
break;
|
||||
case SC_TRINITY_ISLANDS:
|
||||
FixLandOwnershipTilesWithOwnership({ { 80, 60 } }, OWNERSHIP_CONSTRUCTION_RIGHTS_OWNED);
|
||||
break;
|
||||
case SC_KATIES_DREAMLAND:
|
||||
FixLandOwnershipTiles({ { 74, 70 }, { 75, 70 }, { 76, 70 }, { 77, 73 }, { 80, 77 } });
|
||||
FixLandOwnershipTilesWithOwnership(
|
||||
{ { 115, 63 }, { 105, 66 }, { 109, 66 }, { 118, 67 } }, OWNERSHIP_CONSTRUCTION_RIGHTS_OWNED);
|
||||
FixLandOwnershipTilesWithOwnership({ { 45, 69 }, { 59, 74 } }, OWNERSHIP_OWNED);
|
||||
break;
|
||||
case SC_POKEY_PARK:
|
||||
FixLandOwnershipTiles({ { 84, 71 }, { 64, 102 } });
|
||||
break;
|
||||
case SC_WHITE_WATER_PARK:
|
||||
FixLandOwnershipTilesWithOwnership({ { 42, 85 }, { 89, 42 } }, OWNERSHIP_OWNED);
|
||||
break;
|
||||
case SC_MELS_WORLD:
|
||||
FixLandOwnershipTilesWithOwnership({ { 93, 76 }, { 93, 77 } }, OWNERSHIP_OWNED);
|
||||
break;
|
||||
case SC_MYSTIC_MOUNTAIN:
|
||||
FixLandOwnershipTiles({ { 98, 69 }, { 98, 70 }, { 103, 64 }, { 53, 79 }, { 86, 93 }, { 87, 93 } });
|
||||
break;
|
||||
case SC_PACIFIC_PYRAMIDS:
|
||||
FixLandOwnershipTiles({ { 93, 105 }, { 63, 34 }, { 76, 25 }, { 85, 31 }, { 96, 47 }, { 96, 48 } });
|
||||
break;
|
||||
case SC_THREE_MONKEYS_PARK:
|
||||
FixLandOwnershipTilesWithOwnership({ { 89, 92 } }, OWNERSHIP_UNOWNED);
|
||||
FixLandOwnershipTilesWithOwnership({ { 46, 22 } }, OWNERSHIP_OWNED);
|
||||
break;
|
||||
case SC_HAUNTED_HARBOUR:
|
||||
FixLandOwnershipTiles({ { 49, 42 } });
|
||||
break;
|
||||
case SC_COASTER_CANYON:
|
||||
FixLandOwnershipTilesWithOwnership({ { 21, 55 } }, OWNERSHIP_OWNED);
|
||||
break;
|
||||
case SC_UTOPIA_PARK:
|
||||
FixLandOwnershipTiles({ { 85, 73 }, { 71, 75 }, { 90, 73 } });
|
||||
break;
|
||||
case SC_ROTTING_HEIGHTS:
|
||||
FixLandOwnershipTilesWithOwnership({ { 35, 20 } }, OWNERSHIP_OWNED);
|
||||
break;
|
||||
case SC_URBAN_PARK:
|
||||
FixLandOwnershipTiles({ { 64, 77 }, { 61, 66 }, { 61, 67 }, { 39, 20 } });
|
||||
FixLandOwnershipTilesWithOwnership({ { 46, 47 } }, OWNERSHIP_CONSTRUCTION_RIGHTS_AVAILABLE);
|
||||
break;
|
||||
case SC_GRAND_GLACIER:
|
||||
FixLandOwnershipTilesWithOwnership({ { 99, 58 } }, OWNERSHIP_OWNED);
|
||||
break;
|
||||
case SC_WOODWORM_PARK:
|
||||
FixLandOwnershipTilesWithOwnership({ { 62, 105 }, { 101, 55 } }, OWNERSHIP_OWNED);
|
||||
break;
|
||||
case SC_PLEASURE_ISLAND:
|
||||
FixLandOwnershipTilesWithOwnership({ { 37, 66 } }, OWNERSHIP_CONSTRUCTION_RIGHTS_OWNED);
|
||||
break;
|
||||
case SC_NEVERMORE_PARK:
|
||||
FixLandOwnershipTilesWithOwnership({ { 9, 74 } }, OWNERSHIP_OWNED);
|
||||
break;
|
||||
case SC_ALTON_TOWERS:
|
||||
FixLandOwnershipTilesWithOwnership({ { 11, 31 }, { 68, 112 }, { 72, 118 } }, OWNERSHIP_OWNED);
|
||||
break;
|
||||
case SC_BLACKPOOL_PLEASURE_BEACH:
|
||||
FixLandOwnershipTilesWithOwnership(
|
||||
{ { 93, 23 },
|
||||
{ 94, 23 },
|
||||
{ 95, 23 },
|
||||
{ 95, 24 },
|
||||
{ 96, 24 },
|
||||
{ 96, 25 },
|
||||
{ 97, 25 },
|
||||
{ 97, 26 },
|
||||
{ 97, 27 },
|
||||
{ 96, 28 } },
|
||||
OWNERSHIP_OWNED);
|
||||
FixLandOwnershipTilesWithOwnership({ { 94, 24 }, { 95, 25 } }, OWNERSHIP_CONSTRUCTION_RIGHTS_OWNED);
|
||||
break;
|
||||
case SC_FORT_ANACHRONISM:
|
||||
FixLandOwnershipTiles({ { 36, 87 }, { 54, 29 }, { 53, 88 } });
|
||||
break;
|
||||
}
|
||||
RCT12::FetchAndApplyScenarioPatch(_s4.ScenarioName);
|
||||
// TODO: investigate why Katie's Dreamland.s4 and .sea have different patches
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user