forked from rosebudai/OpenRCT2-Web
Merge pull request #24992 from tupaschoal/ride_rating_2
Move MakeRideRating into namespace
This commit is contained in:
95 files changed
+256
-258
No files matched your search
@@ -63,7 +63,7 @@ namespace OpenRCT2::Ui
|
||||
ft.Add<int16_t>(objective.NumGuests);
|
||||
ft.Add<int16_t>(DateGetTotalMonths(MONTH_OCTOBER, objective.Year));
|
||||
if (objective.Type == OBJECTIVE_FINISH_5_ROLLERCOASTERS)
|
||||
ft.Add<ride_rating>(objective.MinimumExcitement);
|
||||
ft.Add<RideRating_t>(objective.MinimumExcitement);
|
||||
else
|
||||
ft.Add<money64>(objective.Currency);
|
||||
}
|
||||
|
||||
@@ -56,9 +56,9 @@ namespace OpenRCT2::Ui::Windows
|
||||
static constexpr uint16_t kObjectiveLengthMin = 1000;
|
||||
static constexpr uint16_t kObjectiveLengthAdjustment = 100;
|
||||
|
||||
static constexpr ride_rating kObjectiveExcitementMax = MakeRideRating(9, 90);
|
||||
static constexpr ride_rating kObjectiveExcitementMin = MakeRideRating(4, 00);
|
||||
static constexpr ride_rating kObjectiveExcitementAdjustment = MakeRideRating(0, 10);
|
||||
static constexpr RideRating_t kObjectiveExcitementMax = RideRating::make(9, 90);
|
||||
static constexpr RideRating_t kObjectiveExcitementMin = RideRating::make(4, 00);
|
||||
static constexpr RideRating_t kObjectiveExcitementAdjustment = RideRating::make(0, 10);
|
||||
|
||||
// The number has to leave a bit of room for other entities like vehicles, litter and balloons.
|
||||
static constexpr uint16_t kObjectiveGuestsMax = 50000;
|
||||
@@ -712,7 +712,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
gameState.scenarioObjective.MinimumLength = 1200;
|
||||
break;
|
||||
case OBJECTIVE_FINISH_5_ROLLERCOASTERS:
|
||||
gameState.scenarioObjective.MinimumExcitement = MakeRideRating(6, 70);
|
||||
gameState.scenarioObjective.MinimumExcitement = RideRating::make(6, 70);
|
||||
break;
|
||||
case OBJECTIVE_REPAY_LOAN_AND_PARK_VALUE:
|
||||
gameState.scenarioObjective.Currency = 50000.00_GBP;
|
||||
|
||||
@@ -5318,7 +5318,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
|
||||
#pragma region Measurements
|
||||
|
||||
static constexpr StringId GetRatingName(ride_rating rating)
|
||||
static constexpr StringId GetRatingName(RideRating_t rating)
|
||||
{
|
||||
int32_t index = std::clamp<int32_t>(rating >> 8, 0, static_cast<int32_t>(std::size(RatingNames)) - 1);
|
||||
return RatingNames[index];
|
||||
@@ -5655,7 +5655,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
stringId = STR_INTENSITY_RATING;
|
||||
if (!RideHasRatings(*ride))
|
||||
stringId = STR_INTENSITY_RATING_NOT_YET_AVAILABLE;
|
||||
else if (ride->ratings.intensity >= MakeRideRating(10, 00))
|
||||
else if (ride->ratings.intensity >= RideRating::make(10, 00))
|
||||
stringId = STR_INTENSITY_RATING_RED;
|
||||
|
||||
DrawTextBasic(rt, screenCoords, stringId, ft);
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
RideFreezeRatingAction::RideFreezeRatingAction(RideId rideIndex, RideRatingType type, ride_rating value)
|
||||
RideFreezeRatingAction::RideFreezeRatingAction(RideId rideIndex, RideRatingType type, RideRating_t value)
|
||||
: _rideIndex(rideIndex)
|
||||
, _type(type)
|
||||
, _value(value)
|
||||
|
||||
@@ -23,11 +23,11 @@ class RideFreezeRatingAction final : public GameActionBase<GameCommand::FreezeRi
|
||||
private:
|
||||
RideId _rideIndex{ RideId::GetNull() };
|
||||
RideRatingType _type{};
|
||||
ride_rating _value{};
|
||||
OpenRCT2::RideRating_t _value{};
|
||||
|
||||
public:
|
||||
RideFreezeRatingAction() = default;
|
||||
RideFreezeRatingAction(RideId rideIndex, RideRatingType type, ride_rating value);
|
||||
RideFreezeRatingAction(RideId rideIndex, RideRatingType type, OpenRCT2::RideRating_t value);
|
||||
|
||||
void AcceptParameters(GameActionParameterVisitor& visitor) override;
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@ static constexpr CoordsXY kWatchingPositionOffsets[] = {
|
||||
{ 0, 7 },
|
||||
};
|
||||
|
||||
static constexpr ride_rating NauseaMaximumThresholds[] = {
|
||||
static constexpr RideRating_t NauseaMaximumThresholds[] = {
|
||||
300,
|
||||
600,
|
||||
800,
|
||||
@@ -436,7 +436,7 @@ static struct
|
||||
};
|
||||
|
||||
// These arrays contain the base minimum and maximum nausea ratings for peeps, based on their nausea tolerance level.
|
||||
static constexpr ride_rating kNauseaMinimumThresholds[] = {
|
||||
static constexpr RideRating_t kNauseaMinimumThresholds[] = {
|
||||
0,
|
||||
0,
|
||||
200,
|
||||
@@ -1920,7 +1920,7 @@ static OpenRCT2::BitSet<OpenRCT2::Limits::kMaxRidesInPark> GuestFindRidesToGoOn(
|
||||
// Always take the tall rides into consideration (realistic as you can usually see them from anywhere in the park)
|
||||
for (auto& ride : GetRideManager())
|
||||
{
|
||||
if (ride.highestDropHeight > 66 || ride.ratings.excitement >= MakeRideRating(8, 00))
|
||||
if (ride.highestDropHeight > 66 || ride.ratings.excitement >= RideRating::make(8, 00))
|
||||
{
|
||||
rideConsideration[ride.id.ToUnderlying()] = true;
|
||||
}
|
||||
@@ -2084,7 +2084,7 @@ bool Guest::ShouldGoOnRide(Ride& ride, StationIndex entranceNum, bool atQueue, b
|
||||
// excitement check and will only do a basic intensity check when they arrive at the ride itself.
|
||||
if (ride.id == GuestHeadingToRideId)
|
||||
{
|
||||
if (ride.ratings.intensity > MakeRideRating(10, 00) && !getGameState().cheats.ignoreRideIntensity)
|
||||
if (ride.ratings.intensity > RideRating::make(10, 00) && !getGameState().cheats.ignoreRideIntensity)
|
||||
{
|
||||
GuestRideIsTooIntense(*this, ride, peepAtRide);
|
||||
return false;
|
||||
@@ -2116,8 +2116,8 @@ bool Guest::ShouldGoOnRide(Ride& ride, StationIndex entranceNum, bool atQueue, b
|
||||
// Intensity calculations. Even though the max intensity can go up to 15, it's capped
|
||||
// at 10.0 (before happiness calculations). A full happiness bar will increase the max
|
||||
// intensity and decrease the min intensity by about 2.5.
|
||||
ride_rating maxIntensity = std::min(Intensity.GetMaximum() * 100, 1000) + Happiness;
|
||||
ride_rating minIntensity = (Intensity.GetMinimum() * 100) - Happiness;
|
||||
RideRating_t maxIntensity = std::min(Intensity.GetMaximum() * 100, 1000) + Happiness;
|
||||
RideRating_t minIntensity = (Intensity.GetMinimum() * 100) - Happiness;
|
||||
if (ride.ratings.intensity < minIntensity)
|
||||
{
|
||||
if (peepAtRide)
|
||||
@@ -2139,7 +2139,7 @@ bool Guest::ShouldGoOnRide(Ride& ride, StationIndex entranceNum, bool atQueue, b
|
||||
}
|
||||
|
||||
// Nausea calculations.
|
||||
ride_rating maxNausea = NauseaMaximumThresholds[(EnumValue(NauseaTolerance) & 3)] + Happiness;
|
||||
RideRating_t maxNausea = NauseaMaximumThresholds[(EnumValue(NauseaTolerance) & 3)] + Happiness;
|
||||
|
||||
if (ride.ratings.nausea > maxNausea)
|
||||
{
|
||||
@@ -2157,7 +2157,7 @@ bool Guest::ShouldGoOnRide(Ride& ride, StationIndex entranceNum, bool atQueue, b
|
||||
}
|
||||
|
||||
// Very nauseous peeps will only go on very gentle rides.
|
||||
if (ride.ratings.nausea >= MakeRideRating(1, 40) && Nausea > 160)
|
||||
if (ride.ratings.nausea >= RideRating::make(1, 40) && Nausea > 160)
|
||||
{
|
||||
ChoseNotToGoOnRide(ride, peepAtRide, false);
|
||||
return false;
|
||||
@@ -2787,8 +2787,8 @@ static int16_t GuestCalculateRideIntensityNauseaSatisfaction(Guest& guest, const
|
||||
|
||||
uint8_t intensitySatisfaction = 3;
|
||||
uint8_t nauseaSatisfaction = 3;
|
||||
ride_rating maxIntensity = guest.Intensity.GetMaximum() * 100;
|
||||
ride_rating minIntensity = guest.Intensity.GetMinimum() * 100;
|
||||
RideRating_t maxIntensity = guest.Intensity.GetMaximum() * 100;
|
||||
RideRating_t minIntensity = guest.Intensity.GetMinimum() * 100;
|
||||
if (minIntensity <= ride.ratings.intensity && maxIntensity >= ride.ratings.intensity)
|
||||
{
|
||||
intensitySatisfaction--;
|
||||
@@ -2808,8 +2808,8 @@ static int16_t GuestCalculateRideIntensityNauseaSatisfaction(Guest& guest, const
|
||||
|
||||
// Although it's not shown in the interface, a peep with Average or High nausea tolerance
|
||||
// has a minimum preferred nausea value. (For peeps with None or Low, this is set to zero.)
|
||||
ride_rating minNausea = kNauseaMinimumThresholds[(EnumValue(guest.NauseaTolerance) & 3)];
|
||||
ride_rating maxNausea = NauseaMaximumThresholds[(EnumValue(guest.NauseaTolerance) & 3)];
|
||||
RideRating_t minNausea = kNauseaMinimumThresholds[(EnumValue(guest.NauseaTolerance) & 3)];
|
||||
RideRating_t maxNausea = NauseaMaximumThresholds[(EnumValue(guest.NauseaTolerance) & 3)];
|
||||
if (minNausea <= ride.ratings.nausea && maxNausea >= ride.ratings.nausea)
|
||||
{
|
||||
nauseaSatisfaction--;
|
||||
@@ -2893,7 +2893,7 @@ static bool GuestShouldGoOnRideAgain(Guest& guest, const Ride& ride)
|
||||
return false;
|
||||
if (!RideHasRatings(ride))
|
||||
return false;
|
||||
if (ride.ratings.intensity > MakeRideRating(10, 00) && !getGameState().cheats.ignoreRideIntensity)
|
||||
if (ride.ratings.intensity > RideRating::make(10, 00) && !getGameState().cheats.ignoreRideIntensity)
|
||||
return false;
|
||||
if (guest.Happiness < 180)
|
||||
return false;
|
||||
@@ -2938,7 +2938,7 @@ static bool GuestReallyLikedRide(Guest& guest, const Ride& ride)
|
||||
return false;
|
||||
if (!RideHasRatings(ride))
|
||||
return false;
|
||||
if (ride.ratings.intensity > MakeRideRating(10, 00) && !getGameState().cheats.ignoreRideIntensity)
|
||||
if (ride.ratings.intensity > RideRating::make(10, 00) && !getGameState().cheats.ignoreRideIntensity)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
@@ -6443,12 +6443,12 @@ static bool PeepShouldWatchRide(TileElement* tileElement)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (ride->ratings.excitement >= MakeRideRating(4, 70))
|
||||
if (ride->ratings.excitement >= RideRating::make(4, 70))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (ride->ratings.intensity >= MakeRideRating(4, 50))
|
||||
if (ride->ratings.intensity >= RideRating::make(4, 50))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -288,7 +288,7 @@ static void ConsoleCommandRides(InteractiveConsole& console, const arguments_t&
|
||||
{
|
||||
bool int_valid[2] = { false };
|
||||
int32_t ride_index = ConsoleParseInt(argv[2], &int_valid[0]);
|
||||
ride_rating excitement = ConsoleParseInt(argv[3], &int_valid[1]);
|
||||
RideRating_t excitement = ConsoleParseInt(argv[3], &int_valid[1]);
|
||||
|
||||
if (ride_index < 0)
|
||||
{
|
||||
@@ -321,7 +321,7 @@ static void ConsoleCommandRides(InteractiveConsole& console, const arguments_t&
|
||||
{
|
||||
bool int_valid[2] = { false };
|
||||
int32_t ride_index = ConsoleParseInt(argv[2], &int_valid[0]);
|
||||
ride_rating intensity = ConsoleParseInt(argv[3], &int_valid[1]);
|
||||
RideRating_t intensity = ConsoleParseInt(argv[3], &int_valid[1]);
|
||||
|
||||
if (ride_index < 0)
|
||||
{
|
||||
@@ -354,7 +354,7 @@ static void ConsoleCommandRides(InteractiveConsole& console, const arguments_t&
|
||||
{
|
||||
bool int_valid[2] = { false };
|
||||
int32_t ride_index = ConsoleParseInt(argv[2], &int_valid[0]);
|
||||
ride_rating nausea = ConsoleParseInt(argv[3], &int_valid[1]);
|
||||
RideRating_t nausea = ConsoleParseInt(argv[3], &int_valid[1]);
|
||||
|
||||
if (ride_index < 0)
|
||||
{
|
||||
|
||||
@@ -475,7 +475,7 @@ static bool AwardIsDeservedBestCustomDesignedRides(int32_t activeAwardTypes)
|
||||
continue;
|
||||
if (ride.lifecycleFlags & RIDE_LIFECYCLE_NOT_CUSTOM_DESIGN)
|
||||
continue;
|
||||
if (ride.ratings.excitement < MakeRideRating(5, 50))
|
||||
if (ride.ratings.excitement < RideRating::make(5, 50))
|
||||
continue;
|
||||
if (ride.status != RideStatus::open || (ride.lifecycleFlags & RIDE_LIFECYCLE_CRASHED))
|
||||
continue;
|
||||
|
||||
@@ -638,7 +638,7 @@ constexpr RideTypeDescriptor kDummyRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(1, 00), MakeRideRating(1, 00), MakeRideRating(1, 00) },
|
||||
{ OpenRCT2::RideRating::make(1, 00), OpenRCT2::RideRating::make(1, 00), OpenRCT2::RideRating::make(1, 00) },
|
||||
1,
|
||||
-1,
|
||||
false,
|
||||
|
||||
@@ -1340,8 +1340,8 @@ static void RideRatingsApplyAdjustments(const Ride& ride, RideRating::Tuple& rat
|
||||
*/
|
||||
static void RideRatingsApplyIntensityPenalty(RideRating::Tuple& ratings)
|
||||
{
|
||||
static constexpr ride_rating intensityBounds[] = { 1000, 1100, 1200, 1320, 1450 };
|
||||
ride_rating excitement = ratings.excitement;
|
||||
static constexpr RideRating_t intensityBounds[] = { 1000, 1100, 1200, 1320, 1450 };
|
||||
RideRating_t excitement = ratings.excitement;
|
||||
for (auto intensityBound : intensityBounds)
|
||||
{
|
||||
if (ratings.intensity >= intensityBound)
|
||||
@@ -1608,8 +1608,8 @@ static RideRating::Tuple GetSpecialTrackElementsRating(uint8_t type, const Ride&
|
||||
int32_t helixesOver5UpTo10 = std::clamp<int32_t>(helixSections - 5, 0, 10);
|
||||
nausea += (helixesOver5UpTo10 * 0x140000) >> 16;
|
||||
|
||||
RideRating::Tuple rating = { static_cast<ride_rating>(excitement), static_cast<ride_rating>(intensity),
|
||||
static_cast<ride_rating>(nausea) };
|
||||
RideRating::Tuple rating = { static_cast<RideRating_t>(excitement), static_cast<RideRating_t>(intensity),
|
||||
static_cast<RideRating_t>(nausea) };
|
||||
return rating;
|
||||
}
|
||||
|
||||
@@ -1646,8 +1646,8 @@ static RideRating::Tuple ride_ratings_get_turns_ratings(const Ride& ride)
|
||||
intensity += inversionsRating.intensity;
|
||||
nausea += inversionsRating.nausea;
|
||||
|
||||
RideRating::Tuple rating = { static_cast<ride_rating>(excitement), static_cast<ride_rating>(intensity),
|
||||
static_cast<ride_rating>(nausea) };
|
||||
RideRating::Tuple rating = { static_cast<RideRating_t>(excitement), static_cast<RideRating_t>(intensity),
|
||||
static_cast<RideRating_t>(nausea) };
|
||||
return rating;
|
||||
}
|
||||
|
||||
@@ -1685,8 +1685,8 @@ static RideRating::Tuple ride_ratings_get_sheltered_ratings(const Ride& ride)
|
||||
lowerVal = std::min<uint8_t>(lowerVal, 11);
|
||||
excitement += (lowerVal * 774516) >> 16;
|
||||
|
||||
RideRating::Tuple rating = { static_cast<ride_rating>(excitement), static_cast<ride_rating>(intensity),
|
||||
static_cast<ride_rating>(nausea) };
|
||||
RideRating::Tuple rating = { static_cast<RideRating_t>(excitement), static_cast<RideRating_t>(intensity),
|
||||
static_cast<RideRating_t>(nausea) };
|
||||
return rating;
|
||||
}
|
||||
|
||||
@@ -1709,12 +1709,12 @@ static RideRating::Tuple ride_ratings_get_gforce_ratings(const Ride& ride)
|
||||
|
||||
// Apply maximum negative G force factor
|
||||
fixed16_2dp gforce = ride.maxNegativeVerticalG;
|
||||
result.excitement += (std::clamp<fixed16_2dp>(gforce, -MakeRideRating(2, 50), MakeRideRating(0, 00)) * -15728) >> 16;
|
||||
result.intensity += ((gforce - MakeRideRating(1, 00)) * -52428) >> 16;
|
||||
result.nausea += ((gforce - MakeRideRating(1, 00)) * -14563) >> 16;
|
||||
result.excitement += (std::clamp<fixed16_2dp>(gforce, -RideRating::make(2, 50), RideRating::make(0, 00)) * -15728) >> 16;
|
||||
result.intensity += ((gforce - RideRating::make(1, 00)) * -52428) >> 16;
|
||||
result.nausea += ((gforce - RideRating::make(1, 00)) * -14563) >> 16;
|
||||
|
||||
// Apply lateral G force factor
|
||||
result.excitement += (std::min<fixed16_2dp>(MakeRideRating(1, 50), ride.maxLateralG) * 26214) >> 16;
|
||||
result.excitement += (std::min<fixed16_2dp>(RideRating::make(1, 50), ride.maxLateralG) * 26214) >> 16;
|
||||
result.intensity += ride.maxLateralG;
|
||||
result.nausea += (ride.maxLateralG * 21845) >> 16;
|
||||
|
||||
@@ -1722,14 +1722,14 @@ static RideRating::Tuple ride_ratings_get_gforce_ratings(const Ride& ride)
|
||||
#ifdef ORIGINAL_RATINGS
|
||||
if (ride.maxLateralG > MakeFixed16_2dp(2, 80))
|
||||
{
|
||||
result.intensity += MakeRideRating(3, 75);
|
||||
result.nausea += MakeRideRating(2, 00);
|
||||
result.intensity += RideRating::make(3, 75);
|
||||
result.nausea += RideRating::make(2, 00);
|
||||
}
|
||||
if (ride.maxLateralG > MakeFixed16_2dp(3, 10))
|
||||
{
|
||||
result.excitement /= 2;
|
||||
result.intensity += MakeRideRating(8, 50);
|
||||
result.nausea += MakeRideRating(4, 00);
|
||||
result.intensity += RideRating::make(8, 50);
|
||||
result.nausea += RideRating::make(4, 00);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1991,11 +1991,11 @@ static void RideRatingsApplyBonusMotionSimulatorMode(RideRating::Tuple& ratings,
|
||||
// Hardcoded until ride mode refactor
|
||||
if (ride.mode == RideMode::filmThrillRiders)
|
||||
{
|
||||
RideRatingsSet(ratings, MakeRideRating(3, 25), MakeRideRating(4, 10), MakeRideRating(3, 30));
|
||||
RideRatingsSet(ratings, RideRating::make(3, 25), RideRating::make(4, 10), RideRating::make(3, 30));
|
||||
}
|
||||
else
|
||||
{
|
||||
RideRatingsSet(ratings, MakeRideRating(2, 90), MakeRideRating(3, 50), MakeRideRating(3, 00));
|
||||
RideRatingsSet(ratings, RideRating::make(2, 90), RideRating::make(3, 50), RideRating::make(3, 00));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2006,13 +2006,13 @@ static void RideRatingsApplyBonus3DCinemaMode(RideRating::Tuple& ratings, const
|
||||
{
|
||||
default:
|
||||
case RideMode::mouseTails3DFilm:
|
||||
RideRatingsSet(ratings, MakeRideRating(3, 50), MakeRideRating(2, 40), MakeRideRating(1, 40));
|
||||
RideRatingsSet(ratings, RideRating::make(3, 50), RideRating::make(2, 40), RideRating::make(1, 40));
|
||||
break;
|
||||
case RideMode::stormChasers3DFilm:
|
||||
RideRatingsSet(ratings, MakeRideRating(4, 00), MakeRideRating(2, 65), MakeRideRating(1, 55));
|
||||
RideRatingsSet(ratings, RideRating::make(4, 00), RideRating::make(2, 65), RideRating::make(1, 55));
|
||||
break;
|
||||
case RideMode::spaceRaiders3DFilm:
|
||||
RideRatingsSet(ratings, MakeRideRating(4, 20), MakeRideRating(2, 60), MakeRideRating(1, 48));
|
||||
RideRatingsSet(ratings, RideRating::make(4, 20), RideRating::make(2, 60), RideRating::make(1, 48));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -2024,13 +2024,13 @@ static void RideRatingsApplyBonusTopSpinMode(RideRating::Tuple& ratings, const R
|
||||
{
|
||||
default:
|
||||
case RideMode::beginners:
|
||||
RideRatingsSet(ratings, MakeRideRating(2, 00), MakeRideRating(4, 80), MakeRideRating(5, 74));
|
||||
RideRatingsSet(ratings, RideRating::make(2, 00), RideRating::make(4, 80), RideRating::make(5, 74));
|
||||
break;
|
||||
case RideMode::intense:
|
||||
RideRatingsSet(ratings, MakeRideRating(3, 00), MakeRideRating(5, 75), MakeRideRating(6, 64));
|
||||
RideRatingsSet(ratings, RideRating::make(3, 00), RideRating::make(5, 75), RideRating::make(6, 64));
|
||||
break;
|
||||
case RideMode::berserk:
|
||||
RideRatingsSet(ratings, MakeRideRating(3, 20), MakeRideRating(6, 80), MakeRideRating(7, 94));
|
||||
RideRatingsSet(ratings, RideRating::make(3, 20), RideRating::make(6, 80), RideRating::make(7, 94));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -2239,8 +2239,8 @@ static RideRating::Tuple ride_ratings_get_excessive_lateral_g_penalty(const Ride
|
||||
RideRating::Tuple result{};
|
||||
if (ride.maxLateralG > MakeFixed16_2dp(2, 80))
|
||||
{
|
||||
result.intensity = MakeRideRating(3, 75);
|
||||
result.nausea = MakeRideRating(2, 00);
|
||||
result.intensity = RideRating::make(3, 75);
|
||||
result.nausea = RideRating::make(2, 00);
|
||||
}
|
||||
|
||||
if (ride.maxLateralG > MakeFixed16_2dp(3, 10))
|
||||
@@ -2250,16 +2250,17 @@ static RideRating::Tuple ride_ratings_get_excessive_lateral_g_penalty(const Ride
|
||||
|
||||
// Apply maximum negative G force factor
|
||||
fixed16_2dp gforce = ride.maxNegativeVerticalG;
|
||||
result.excitement += (std::clamp<fixed16_2dp>(gforce, -MakeRideRating(2, 50), MakeRideRating(0, 00)) * -15728) >> 16;
|
||||
result.excitement += (std::clamp<fixed16_2dp>(gforce, -RideRating::make(2, 50), RideRating::make(0, 00)) * -15728)
|
||||
>> 16;
|
||||
|
||||
// Apply lateral G force factor
|
||||
result.excitement += (std::min<fixed16_2dp>(MakeRideRating(1, 50), ride.maxLateralG) * 26214) >> 16;
|
||||
result.excitement += (std::min<fixed16_2dp>(RideRating::make(1, 50), ride.maxLateralG) * 26214) >> 16;
|
||||
|
||||
// Remove half of the ride_ratings_get_gforce_ratings
|
||||
result.excitement /= 2;
|
||||
result.excitement *= -1;
|
||||
result.intensity = MakeRideRating(12, 25);
|
||||
result.nausea = MakeRideRating(6, 00);
|
||||
result.intensity = RideRating::make(12, 25);
|
||||
result.nausea = RideRating::make(6, 00);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -17,63 +17,62 @@
|
||||
|
||||
struct Ride;
|
||||
|
||||
using ride_rating = fixed16_2dp;
|
||||
namespace OpenRCT2
|
||||
{
|
||||
enum class TrackElemType : uint16_t;
|
||||
}
|
||||
using RideRating_t = fixed16_2dp;
|
||||
namespace RideRating
|
||||
{
|
||||
// Convenience function for writing ride ratings. The result is a 16 bit signed
|
||||
// integer. To create the ride rating 3.65 type MakeRideRating(3, 65).
|
||||
constexpr RideRating_t make(int16_t whole, uint8_t fraction)
|
||||
{
|
||||
return MakeFixed2dp<RideRating_t>(whole, fraction);
|
||||
}
|
||||
|
||||
// Convenience function for writing ride ratings. The result is a 16 bit signed
|
||||
// integer. To create the ride rating 3.65 type MakeRideRating(3, 65).
|
||||
constexpr ride_rating MakeRideRating(int16_t whole, uint8_t fraction)
|
||||
{
|
||||
return MakeFixed2dp<ride_rating>(whole, fraction);
|
||||
}
|
||||
|
||||
namespace OpenRCT2::RideRating
|
||||
{
|
||||
constexpr ride_rating kUndefined = 0xFFFFu;
|
||||
constexpr RideRating_t kUndefined = 0xFFFFu;
|
||||
|
||||
#pragma pack(push, 1)
|
||||
|
||||
// Used for return values, for functions that modify all three.
|
||||
struct Tuple
|
||||
{
|
||||
ride_rating excitement{};
|
||||
ride_rating intensity{};
|
||||
ride_rating nausea{};
|
||||
// Used for return values, for functions that modify all three.
|
||||
struct Tuple
|
||||
{
|
||||
RideRating_t excitement{};
|
||||
RideRating_t intensity{};
|
||||
RideRating_t nausea{};
|
||||
|
||||
bool isNull() const;
|
||||
void setNull();
|
||||
bool isNull() const;
|
||||
void setNull();
|
||||
|
||||
bool operator==(const Tuple& rhs) const = default;
|
||||
};
|
||||
static_assert(sizeof(Tuple) == 6);
|
||||
bool operator==(const Tuple& rhs) const = default;
|
||||
};
|
||||
static_assert(sizeof(Tuple) == 6);
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
struct UpdateState
|
||||
{
|
||||
CoordsXYZ Proximity;
|
||||
CoordsXYZ ProximityStart;
|
||||
RideId CurrentRide;
|
||||
uint8_t State;
|
||||
OpenRCT2::TrackElemType ProximityTrackType;
|
||||
uint8_t ProximityBaseHeight;
|
||||
uint16_t ProximityTotal;
|
||||
uint16_t ProximityScores[26];
|
||||
uint16_t AmountOfBrakes;
|
||||
uint16_t AmountOfReversers;
|
||||
uint16_t StationFlags;
|
||||
};
|
||||
struct UpdateState
|
||||
{
|
||||
CoordsXYZ Proximity;
|
||||
CoordsXYZ ProximityStart;
|
||||
RideId CurrentRide;
|
||||
uint8_t State;
|
||||
OpenRCT2::TrackElemType ProximityTrackType;
|
||||
uint8_t ProximityBaseHeight;
|
||||
uint16_t ProximityTotal;
|
||||
uint16_t ProximityScores[26];
|
||||
uint16_t AmountOfBrakes;
|
||||
uint16_t AmountOfReversers;
|
||||
uint16_t StationFlags;
|
||||
};
|
||||
|
||||
static constexpr size_t kMaxUpdateStates = 4;
|
||||
using UpdateStates = std::array<UpdateState, kMaxUpdateStates>;
|
||||
static constexpr size_t kMaxUpdateStates = 4;
|
||||
using UpdateStates = std::array<UpdateState, kMaxUpdateStates>;
|
||||
|
||||
void ResetUpdateStates();
|
||||
void UpdateRide(const Ride& ride);
|
||||
void UpdateAll();
|
||||
} // namespace OpenRCT2::RideRating
|
||||
void ResetUpdateStates();
|
||||
void UpdateRide(const Ride& ride);
|
||||
void UpdateAll();
|
||||
} // namespace RideRating
|
||||
} // namespace OpenRCT2
|
||||
|
||||
// Special Track Element Adjustment functions for RTDs
|
||||
void SpecialTrackElementRatingsAjustment_Default(const Ride& ride, int32_t& excitement, int32_t& intensity, int32_t& nausea);
|
||||
|
||||
@@ -59,13 +59,13 @@ constexpr RideTypeDescriptor AirPoweredVerticalCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(4, 13), MakeRideRating(2, 50), MakeRideRating(2, 80) },
|
||||
{ RideRating::make(4, 13), RideRating::make(2, 50), RideRating::make(2, 80) },
|
||||
28,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 327, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 60), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 60), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 509724, 364088, 320398 },
|
||||
{ RatingsModifierType::BonusGForces, 0, 24576, 35746, 59578 },
|
||||
{ RatingsModifierType::BonusSheltered, 0, 15420, 21845, 11702 },
|
||||
|
||||
@@ -58,13 +58,13 @@ constexpr RideTypeDescriptor AlpineCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 30), MakeRideRating(2, 10), MakeRideRating(1, 4) },
|
||||
{ RideRating::make(2, 30), RideRating::make(2, 10), RideRating::make(1, 4) },
|
||||
7,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 873, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 75), MakeRideRating(0, 5), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 75), RideRating::make(0, 5), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -58,13 +58,13 @@ constexpr RideTypeDescriptor BobsleighCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 80), MakeRideRating(3, 20), MakeRideRating(2, 50) },
|
||||
{ RideRating::make(2, 80), RideRating::make(3, 20), RideRating::make(2, 50) },
|
||||
16,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 20), MakeRideRating(0, 00), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 20), RideRating::make(0, 00), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -61,13 +61,13 @@ constexpr RideTypeDescriptor ClassicMiniRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 40), MakeRideRating(2, 80), MakeRideRating(1, 90) },
|
||||
{ RideRating::make(2, 40), RideRating::make(2, 80), RideRating::make(1, 90) },
|
||||
13,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -61,13 +61,13 @@ constexpr RideTypeDescriptor ClassicStandUpRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 50), MakeRideRating(3, 00), MakeRideRating(3, 00) },
|
||||
{ RideRating::make(2, 50), RideRating::make(3, 00), RideRating::make(3, 00) },
|
||||
17,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 10), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 10), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 123987, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -59,13 +59,13 @@ constexpr RideTypeDescriptor ClassicWoodenRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 80), MakeRideRating(2, 60), MakeRideRating(2, 00) },
|
||||
{ RideRating::make(2, 80), RideRating::make(2, 60), RideRating::make(2, 00) },
|
||||
19,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 873, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 655360, 0 },
|
||||
|
||||
@@ -61,13 +61,13 @@ constexpr RideTypeDescriptor ClassicWoodenTwisterRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 20), MakeRideRating(2, 60), MakeRideRating(2, 00) },
|
||||
{ RideRating::make(3, 20), RideRating::make(2, 60), RideRating::make(2, 00) },
|
||||
19,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 873, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 655360, 0 },
|
||||
|
||||
@@ -59,13 +59,13 @@ constexpr RideTypeDescriptor CompactInvertedCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 15), MakeRideRating(2, 80), MakeRideRating(3, 20) },
|
||||
{ RideRating::make(3, 15), RideRating::make(2, 80), RideRating::make(3, 20) },
|
||||
21,
|
||||
-1,
|
||||
true,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 42), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 42), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -61,13 +61,13 @@ constexpr RideTypeDescriptor CorkscrewRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 00), MakeRideRating(0, 50), MakeRideRating(0, 20) },
|
||||
{ RideRating::make(3, 00), RideRating::make(0, 50), RideRating::make(0, 20) },
|
||||
16,
|
||||
-1,
|
||||
true,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -70,13 +70,13 @@ constexpr RideTypeDescriptor FlyingRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(4, 35), MakeRideRating(1, 85), MakeRideRating(4, 33) },
|
||||
{ RideRating::make(4, 35), RideRating::make(1, 85), RideRating::make(4, 33) },
|
||||
17,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
@@ -141,13 +141,13 @@ constexpr RideTypeDescriptor FlyingRollerCoasterAltRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(4, 35), MakeRideRating(1, 85), MakeRideRating(4, 33) },
|
||||
{ RideRating::make(4, 35), RideRating::make(1, 85), RideRating::make(4, 33) },
|
||||
17,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -63,13 +63,13 @@ constexpr RideTypeDescriptor GigaCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 85), MakeRideRating(0, 40), MakeRideRating(0, 35) },
|
||||
{ RideRating::make(3, 85), RideRating::make(0, 40), RideRating::make(0, 35) },
|
||||
14,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 819, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 140434, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 51366, 85019, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 400497, 0 },
|
||||
|
||||
@@ -60,13 +60,13 @@ constexpr RideTypeDescriptor HeartlineTwisterCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 00), MakeRideRating(1, 70), MakeRideRating(1, 65) },
|
||||
{ RideRating::make(3, 00), RideRating::make(1, 70), RideRating::make(1, 65) },
|
||||
18,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 20), MakeRideRating(0, 04), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 20), RideRating::make(0, 04), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 97418, 123987, 70849 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -64,13 +64,13 @@ constexpr RideTypeDescriptor HybridCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 80), MakeRideRating(1, 00), MakeRideRating(0, 45) },
|
||||
{ RideRating::make(3, 80), RideRating::make(1, 00), RideRating::make(0, 45) },
|
||||
16,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 400497, 0 },
|
||||
|
||||
@@ -65,13 +65,13 @@ constexpr RideTypeDescriptor HyperTwisterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 50), MakeRideRating(0, 40), MakeRideRating(0, 30) },
|
||||
{ RideRating::make(3, 50), RideRating::make(0, 40), RideRating::make(0, 30) },
|
||||
15,
|
||||
-1,
|
||||
true,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -64,13 +64,13 @@ constexpr RideTypeDescriptor HypercoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 00), MakeRideRating(0, 50), MakeRideRating(0, 20) },
|
||||
{ RideRating::make(3, 00), RideRating::make(0, 50), RideRating::make(0, 20) },
|
||||
16,
|
||||
-1,
|
||||
true,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -57,13 +57,13 @@ constexpr RideTypeDescriptor InvertedHairpinCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 00), MakeRideRating(2, 65), MakeRideRating(2, 25) },
|
||||
{ RideRating::make(3, 00), RideRating::make(2, 65), RideRating::make(2, 25) },
|
||||
14,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 873, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 8), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 8), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 655360, 0 },
|
||||
|
||||
@@ -62,13 +62,13 @@ constexpr RideTypeDescriptor InvertedImpulseCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(4, 00), MakeRideRating(3, 00), MakeRideRating(3, 20) },
|
||||
{ RideRating::make(4, 00), RideRating::make(3, 00), RideRating::make(3, 20) },
|
||||
20,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 42), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 42), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -66,13 +66,13 @@ constexpr RideTypeDescriptor InvertedRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 60), MakeRideRating(2, 80), MakeRideRating(3, 20) },
|
||||
{ RideRating::make(3, 60), RideRating::make(2, 80), RideRating::make(3, 20) },
|
||||
17,
|
||||
-1,
|
||||
true,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 42), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 42), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -62,13 +62,13 @@ constexpr RideTypeDescriptor JuniorRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 40), MakeRideRating(2, 50), MakeRideRating(1, 80) },
|
||||
{ RideRating::make(2, 40), RideRating::make(2, 50), RideRating::make(1, 80) },
|
||||
13,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -63,13 +63,13 @@ constexpr RideTypeDescriptor LIMLaunchedRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 90), MakeRideRating(1, 50), MakeRideRating(2, 20) },
|
||||
{ RideRating::make(2, 90), RideRating::make(1, 50), RideRating::make(2, 20) },
|
||||
25,
|
||||
-1,
|
||||
true,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -62,13 +62,13 @@ constexpr RideTypeDescriptor LSMLaunchedRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 85), MakeRideRating(0, 40), MakeRideRating(0, 35) },
|
||||
{ RideRating::make(3, 85), RideRating::make(0, 40), RideRating::make(0, 35) },
|
||||
14,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -69,13 +69,13 @@ constexpr RideTypeDescriptor LayDownRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 85), MakeRideRating(1, 15), MakeRideRating(2, 75) },
|
||||
{ RideRating::make(3, 85), RideRating::make(1, 15), RideRating::make(2, 75) },
|
||||
18,
|
||||
-1,
|
||||
true,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
@@ -140,13 +140,13 @@ constexpr RideTypeDescriptor LayDownRollerCoasterAltRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 85), MakeRideRating(1, 15), MakeRideRating(2, 75) },
|
||||
{ RideRating::make(3, 85), RideRating::make(1, 15), RideRating::make(2, 75) },
|
||||
18,
|
||||
-1,
|
||||
true,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -65,13 +65,13 @@ constexpr RideTypeDescriptor LoopingRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 00), MakeRideRating(0, 50), MakeRideRating(0, 20) },
|
||||
{ RideRating::make(3, 00), RideRating::make(0, 50), RideRating::make(0, 20) },
|
||||
15,
|
||||
-1,
|
||||
true,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -56,13 +56,13 @@ constexpr RideTypeDescriptor MineRideRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 75), MakeRideRating(1, 00), MakeRideRating(1, 80) },
|
||||
{ RideRating::make(2, 75), RideRating::make(1, 00), RideRating::make(1, 80) },
|
||||
16,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -57,13 +57,13 @@ constexpr RideTypeDescriptor MineTrainCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 90), MakeRideRating(2, 30), MakeRideRating(2, 10) },
|
||||
{ RideRating::make(2, 90), RideRating::make(2, 30), RideRating::make(2, 10) },
|
||||
16,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -59,13 +59,13 @@ constexpr RideTypeDescriptor MiniRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 55), MakeRideRating(2, 40), MakeRideRating(1, 85) },
|
||||
{ RideRating::make(2, 55), RideRating::make(2, 40), RideRating::make(1, 85) },
|
||||
13,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -56,13 +56,13 @@ constexpr RideTypeDescriptor MiniSuspendedCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 80), MakeRideRating(2, 50), MakeRideRating(2, 70) },
|
||||
{ RideRating::make(2, 80), RideRating::make(2, 50), RideRating::make(2, 70) },
|
||||
15,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 45), MakeRideRating(0, 15), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 45), RideRating::make(0, 15), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -69,13 +69,13 @@ constexpr RideTypeDescriptor MultiDimensionRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 75), MakeRideRating(1, 95), MakeRideRating(4, 79) },
|
||||
{ RideRating::make(3, 75), RideRating::make(1, 95), RideRating::make(4, 79) },
|
||||
18,
|
||||
-1,
|
||||
true,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
@@ -140,13 +140,13 @@ constexpr RideTypeDescriptor MultiDimensionRollerCoasterAltRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 75), MakeRideRating(1, 95), MakeRideRating(4, 79) },
|
||||
{ RideRating::make(3, 75), RideRating::make(1, 95), RideRating::make(4, 79) },
|
||||
18,
|
||||
-1,
|
||||
true,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -60,13 +60,13 @@ constexpr RideTypeDescriptor ReverseFreefallCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 00), MakeRideRating(3, 20), MakeRideRating(2, 80) },
|
||||
{ RideRating::make(2, 00), RideRating::make(3, 20), RideRating::make(2, 80) },
|
||||
25,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 327, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 60), MakeRideRating(0, 15), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 60), RideRating::make(0, 15), 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 436906, 436906, 320398 },
|
||||
{ RatingsModifierType::BonusGForces, 0, 24576, 41704, 59578 },
|
||||
{ RatingsModifierType::BonusSheltered, 0, 12850, 28398, 11702 },
|
||||
|
||||
@@ -56,17 +56,17 @@ constexpr RideTypeDescriptor ReverserRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 40), MakeRideRating(1, 80), MakeRideRating(1, 70) },
|
||||
{ RideRating::make(2, 40), RideRating::make(1, 80), RideRating::make(1, 70) },
|
||||
19,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 873, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 655360, 0 },
|
||||
{ RatingsModifierType::BonusReversals, 6, MakeRideRating(0, 20), MakeRideRating(0, 20), MakeRideRating(0, 20) },
|
||||
{ RatingsModifierType::BonusReversals, 6, RideRating::make(0, 20), RideRating::make(0, 20), RideRating::make(0, 20) },
|
||||
{ RatingsModifierType::BonusDuration, 150, 26214, 0, 0 },
|
||||
{ RatingsModifierType::BonusGForces, 0, 28672, 23831, 49648 },
|
||||
{ RatingsModifierType::BonusTurns, 0, 26749, 43458, 45749 },
|
||||
|
||||
@@ -58,13 +58,13 @@ constexpr RideTypeDescriptor SideFrictionRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 50), MakeRideRating(2, 00), MakeRideRating(1, 50) },
|
||||
{ RideRating::make(2, 50), RideRating::make(2, 00), RideRating::make(1, 50) },
|
||||
19,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 873, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 655360, 0 },
|
||||
|
||||
@@ -58,13 +58,13 @@ constexpr RideTypeDescriptor SingleRailRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 50), MakeRideRating(0, 60), MakeRideRating(0, 40) },
|
||||
{ RideRating::make(3, 50), RideRating::make(0, 60), RideRating::make(0, 40) },
|
||||
16,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 436906, 0 },
|
||||
|
||||
@@ -57,13 +57,13 @@ constexpr RideTypeDescriptor SpinningWildMouseRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 80), MakeRideRating(2, 50), MakeRideRating(2, 10) },
|
||||
{ RideRating::make(2, 80), RideRating::make(2, 50), RideRating::make(2, 10) },
|
||||
14,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 873, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 8), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 8), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 655360, 0 },
|
||||
|
||||
@@ -59,13 +59,13 @@ constexpr RideTypeDescriptor SpiralRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 30), MakeRideRating(0, 30), MakeRideRating(0, 30) },
|
||||
{ RideRating::make(3, 30), RideRating::make(0, 30), RideRating::make(0, 30) },
|
||||
14,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 819, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 140434, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 51366, 85019, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 400497, 0 },
|
||||
|
||||
@@ -61,13 +61,13 @@ constexpr RideTypeDescriptor StandUpRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 50), MakeRideRating(3, 00), MakeRideRating(3, 00) },
|
||||
{ RideRating::make(2, 50), RideRating::make(3, 00), RideRating::make(3, 00) },
|
||||
17,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 10), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 10), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 123987, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -58,13 +58,13 @@ constexpr RideTypeDescriptor SteelWildMouseRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 80), MakeRideRating(2, 50), MakeRideRating(2, 10) },
|
||||
{ RideRating::make(2, 80), RideRating::make(2, 50), RideRating::make(2, 10) },
|
||||
14,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 873, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 8), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 8), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 655360, 0 },
|
||||
|
||||
@@ -60,13 +60,13 @@ constexpr RideTypeDescriptor SteeplechaseRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 70), MakeRideRating(2, 40), MakeRideRating(1, 80) },
|
||||
{ RideRating::make(2, 70), RideRating::make(2, 40), RideRating::make(1, 80) },
|
||||
14,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 75), MakeRideRating(0, 9), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 75), RideRating::make(0, 9), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -57,13 +57,13 @@ constexpr RideTypeDescriptor SuspendedSwingingCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 30), MakeRideRating(2, 90), MakeRideRating(3, 50) },
|
||||
{ RideRating::make(3, 30), RideRating::make(2, 90), RideRating::make(3, 50) },
|
||||
18,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 10), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 10), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -65,13 +65,13 @@ constexpr RideTypeDescriptor TwisterRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 50), MakeRideRating(0, 40), MakeRideRating(0, 30) },
|
||||
{ RideRating::make(3, 50), RideRating::make(0, 40), RideRating::make(0, 30) },
|
||||
15,
|
||||
-1,
|
||||
true,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -62,13 +62,13 @@ constexpr RideTypeDescriptor VerticalDropCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 20), MakeRideRating(0, 80), MakeRideRating(0, 30) },
|
||||
{ RideRating::make(3, 20), RideRating::make(0, 80), RideRating::make(0, 30) },
|
||||
16,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 4000, 1146, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 97418, 141699, 70849 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
{ RatingsModifierType::BonusDuration, 150, 26214, 0, 0 },
|
||||
|
||||
@@ -56,13 +56,13 @@ constexpr RideTypeDescriptor VirginiaReelRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 10), MakeRideRating(1, 90), MakeRideRating(3, 70) },
|
||||
{ RideRating::make(2, 10), RideRating::make(1, 90), RideRating::make(3, 70) },
|
||||
19,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 873, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 655360, 0 },
|
||||
|
||||
@@ -74,13 +74,13 @@ constexpr RideTypeDescriptor WaterCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 70), MakeRideRating(2, 80), MakeRideRating(2, 10) },
|
||||
{ RideRating::make(2, 70), RideRating::make(2, 80), RideRating::make(2, 10) },
|
||||
14,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -64,13 +64,13 @@ constexpr RideTypeDescriptor WoodenRollerCoasterRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(3, 20), MakeRideRating(2, 60), MakeRideRating(2, 00) },
|
||||
{ RideRating::make(3, 20), RideRating::make(2, 60), RideRating::make(2, 00) },
|
||||
19,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 873, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 655360, 0 },
|
||||
|
||||
@@ -57,13 +57,13 @@ constexpr RideTypeDescriptor WoodenWildMouseRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 90), MakeRideRating(2, 90), MakeRideRating(2, 10) },
|
||||
{ RideRating::make(2, 90), RideRating::make(2, 90), RideRating::make(2, 10) },
|
||||
14,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 873, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 8), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 8), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 364088, 655360, 0 },
|
||||
|
||||
@@ -67,13 +67,13 @@ constexpr RideTypeDescriptor CarRideRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 00), MakeRideRating(0, 50), MakeRideRating(0, 00) },
|
||||
{ RideRating::make(2, 00), RideRating::make(0, 50), RideRating::make(0, 00) },
|
||||
12,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 15), MakeRideRating(0, 00), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 15), RideRating::make(0, 00), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -54,7 +54,7 @@ constexpr RideTypeDescriptor CircusRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(2, 10), MakeRideRating(0, 30), MakeRideRating(0, 0) },
|
||||
{ RideRating::make(2, 10), RideRating::make(0, 30), RideRating::make(0, 0) },
|
||||
9,
|
||||
7,
|
||||
false,
|
||||
|
||||
@@ -56,7 +56,7 @@ constexpr RideTypeDescriptor CrookedHouseRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(2, 15), MakeRideRating(0, 62), MakeRideRating(0, 34) },
|
||||
{ RideRating::make(2, 15), RideRating::make(0, 62), RideRating::make(0, 34) },
|
||||
5,
|
||||
7,
|
||||
false,
|
||||
|
||||
@@ -62,14 +62,14 @@ constexpr RideTypeDescriptor DodgemsRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(1, 30), MakeRideRating(0, 50), MakeRideRating(0, 35) },
|
||||
{ RideRating::make(1, 30), RideRating::make(0, 50), RideRating::make(0, 35) },
|
||||
16,
|
||||
7,
|
||||
false,
|
||||
{
|
||||
// Special case, passing -2 to represent division by 2
|
||||
{ RatingsModifierType::BonusOperationOption, 0, 1, -2, 0 },
|
||||
{ RatingsModifierType::BonusNumTrains, 4, MakeRideRating(0, 80), 0, 0 },
|
||||
{ RatingsModifierType::BonusNumTrains, 4, RideRating::make(0, 80), 0, 0 },
|
||||
{ RatingsModifierType::BonusScenery, 0, 5577, 0, 0 },
|
||||
},
|
||||
},
|
||||
|
||||
@@ -58,7 +58,7 @@ constexpr RideTypeDescriptor FerrisWheelRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(0, 60), MakeRideRating(0, 25), MakeRideRating(0, 30) },
|
||||
{ RideRating::make(0, 60), RideRating::make(0, 25), RideRating::make(0, 30) },
|
||||
16,
|
||||
0,
|
||||
false,
|
||||
|
||||
@@ -60,14 +60,14 @@ constexpr RideTypeDescriptor FlyingSaucersRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(2, 40), MakeRideRating(0, 55), MakeRideRating(0, 39) },
|
||||
{ RideRating::make(2, 40), RideRating::make(0, 55), RideRating::make(0, 39) },
|
||||
32,
|
||||
0,
|
||||
false,
|
||||
{
|
||||
// Special case, passing -2 to represent division by 2
|
||||
{ RatingsModifierType::BonusOperationOption, 0, 1, -2, 0 },
|
||||
{ RatingsModifierType::BonusNumTrains, 4, MakeRideRating(0, 80), 0, 0 },
|
||||
{ RatingsModifierType::BonusNumTrains, 4, RideRating::make(0, 80), 0, 0 },
|
||||
{ RatingsModifierType::BonusScenery, 0, 5577, 0, 0 },
|
||||
},
|
||||
},
|
||||
|
||||
@@ -63,13 +63,13 @@ constexpr RideTypeDescriptor GhostTrainRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 00), MakeRideRating(0, 20), MakeRideRating(0, 03) },
|
||||
{ RideRating::make(2, 00), RideRating::make(0, 20), RideRating::make(0, 03) },
|
||||
12,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 15), MakeRideRating(0, 00), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 15), RideRating::make(0, 00), 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
{ RatingsModifierType::BonusDuration, 150, 26214, 0, 0 },
|
||||
|
||||
@@ -54,7 +54,7 @@ constexpr RideTypeDescriptor HauntedHouseRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(3, 41), MakeRideRating(1, 53), MakeRideRating(0, 10) },
|
||||
{ RideRating::make(3, 41), RideRating::make(1, 53), RideRating::make(0, 10) },
|
||||
8,
|
||||
7,
|
||||
false,
|
||||
|
||||
@@ -57,7 +57,7 @@ constexpr RideTypeDescriptor MazeRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(1, 30), MakeRideRating(0, 50), MakeRideRating(0, 00) },
|
||||
{ RideRating::make(1, 30), RideRating::make(0, 50), RideRating::make(0, 00) },
|
||||
8,
|
||||
0,
|
||||
false,
|
||||
|
||||
@@ -56,7 +56,7 @@ constexpr RideTypeDescriptor MerryGoRoundRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(0, 60), MakeRideRating(0, 15), MakeRideRating(0, 30) },
|
||||
{ RideRating::make(0, 60), RideRating::make(0, 15), RideRating::make(0, 30) },
|
||||
16,
|
||||
7,
|
||||
false,
|
||||
|
||||
@@ -55,7 +55,7 @@ constexpr RideTypeDescriptor MiniGolfRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(1, 50), MakeRideRating(0, 90), MakeRideRating(0, 00) },
|
||||
{ RideRating::make(1, 50), RideRating::make(0, 90), RideRating::make(0, 00) },
|
||||
0,
|
||||
-1,
|
||||
false,
|
||||
|
||||
@@ -63,13 +63,13 @@ constexpr RideTypeDescriptor MiniHelicoptersRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(1, 60), MakeRideRating(0, 40), MakeRideRating(0, 00) },
|
||||
{ RideRating::make(1, 60), RideRating::make(0, 40), RideRating::make(0, 00) },
|
||||
12,
|
||||
6,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 15), MakeRideRating(0, 00), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 15), RideRating::make(0, 00), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -59,13 +59,13 @@ constexpr RideTypeDescriptor MonorailCyclesRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(1, 40), MakeRideRating(0, 20), MakeRideRating(0, 00) },
|
||||
{ RideRating::make(1, 40), RideRating::make(0, 20), RideRating::make(0, 00) },
|
||||
4,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 15), MakeRideRating(0, 00), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 15), RideRating::make(0, 00), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -62,13 +62,13 @@ constexpr RideTypeDescriptor MonsterTrucksRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 00), MakeRideRating(0, 50), MakeRideRating(0, 00) },
|
||||
{ RideRating::make(2, 00), RideRating::make(0, 50), RideRating::make(0, 00) },
|
||||
12,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 15), MakeRideRating(0, 00), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 15), RideRating::make(0, 00), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -58,7 +58,7 @@ constexpr RideTypeDescriptor ObservationTowerRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(1, 50), MakeRideRating(0, 00), MakeRideRating(0, 10) },
|
||||
{ RideRating::make(1, 50), RideRating::make(0, 00), RideRating::make(0, 10) },
|
||||
15,
|
||||
7,
|
||||
false,
|
||||
|
||||
@@ -53,7 +53,7 @@ constexpr RideTypeDescriptor SpaceRingsRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(1, 50), MakeRideRating(2, 10), MakeRideRating(6, 50) },
|
||||
{ RideRating::make(1, 50), RideRating::make(2, 10), RideRating::make(6, 50) },
|
||||
7,
|
||||
0,
|
||||
false,
|
||||
|
||||
@@ -60,12 +60,12 @@ constexpr RideTypeDescriptor SpiralSlideRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(1, 50), MakeRideRating(1, 40), MakeRideRating(0, 90) },
|
||||
{ RideRating::make(1, 50), RideRating::make(1, 40), RideRating::make(0, 90) },
|
||||
8,
|
||||
2,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusSlideUnlimitedRides, 0, MakeRideRating(0, 40), MakeRideRating(0, 20), MakeRideRating(0, 25) },
|
||||
{ RatingsModifierType::BonusSlideUnlimitedRides, 0, RideRating::make(0, 40), RideRating::make(0, 20), RideRating::make(0, 25) },
|
||||
{ RatingsModifierType::BonusScenery, 0, 25098, 0, 0 },
|
||||
},
|
||||
},
|
||||
|
||||
@@ -54,7 +54,7 @@ constexpr RideTypeDescriptor EnterpriseRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(3, 60), MakeRideRating(4, 55), MakeRideRating(5, 72) },
|
||||
{ RideRating::make(3, 60), RideRating::make(4, 55), RideRating::make(5, 72) },
|
||||
22,
|
||||
3,
|
||||
false,
|
||||
|
||||
@@ -60,13 +60,13 @@ constexpr RideTypeDescriptor GoKartsRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(1, 42), MakeRideRating(1, 73), MakeRideRating(0, 40) },
|
||||
{ RideRating::make(1, 42), RideRating::make(1, 73), RideRating::make(0, 40) },
|
||||
16,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 700, 32768, 0, 0 },
|
||||
{ RatingsModifierType::BonusGoKartRace, 4, MakeRideRating(1, 40), MakeRideRating(0, 50), 0 },
|
||||
{ RatingsModifierType::BonusGoKartRace, 4, RideRating::make(1, 40), RideRating::make(0, 50), 0 },
|
||||
{ RatingsModifierType::BonusTurns, 0, 4458, 3476, 5718 },
|
||||
{ RatingsModifierType::BonusDrops, 0, 8738, 5461, 6553 },
|
||||
{ RatingsModifierType::BonusSheltered, 0, 2570, 8738, 2340 },
|
||||
|
||||
@@ -57,12 +57,12 @@ constexpr RideTypeDescriptor LaunchedFreefallRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 70), MakeRideRating(3, 00), MakeRideRating(3, 50) },
|
||||
{ RideRating::make(2, 70), RideRating::make(3, 00), RideRating::make(3, 50) },
|
||||
16,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusDownwardLaunch, 0, MakeRideRating(0, 30), MakeRideRating(0, 65), MakeRideRating(0, 45) },
|
||||
{ RatingsModifierType::BonusDownwardLaunch, 0, RideRating::make(0, 30), RideRating::make(0, 65), RideRating::make(0, 45) },
|
||||
{ RatingsModifierType::BonusLaunchedFreefallSpecial, 0, 0, 1355917, 451972 },
|
||||
{ RatingsModifierType::BonusProximity, 0, 20130, 0, 0 },
|
||||
{ RatingsModifierType::BonusScenery, 0, 25098, 0, 0 },
|
||||
|
||||
@@ -59,7 +59,7 @@ constexpr RideTypeDescriptor MagicCarpetRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(2, 45), MakeRideRating(1, 60), MakeRideRating(2, 60) },
|
||||
{ RideRating::make(2, 45), RideRating::make(1, 60), RideRating::make(2, 60) },
|
||||
16,
|
||||
0,
|
||||
false,
|
||||
|
||||
@@ -57,7 +57,7 @@ constexpr RideTypeDescriptor RotoDropRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 80), MakeRideRating(3, 50), MakeRideRating(3, 50) },
|
||||
{ RideRating::make(2, 80), RideRating::make(3, 50), RideRating::make(3, 50) },
|
||||
24,
|
||||
-1,
|
||||
false,
|
||||
|
||||
@@ -58,7 +58,7 @@ constexpr RideTypeDescriptor SwingingInverterShipRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(2, 50), MakeRideRating(2, 70), MakeRideRating(2, 74) },
|
||||
{ RideRating::make(2, 50), RideRating::make(2, 70), RideRating::make(2, 74) },
|
||||
16,
|
||||
0,
|
||||
false,
|
||||
|
||||
@@ -58,7 +58,7 @@ constexpr RideTypeDescriptor SwingingShipRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(1, 50), MakeRideRating(1, 90), MakeRideRating(1, 41) },
|
||||
{ RideRating::make(1, 50), RideRating::make(1, 90), RideRating::make(1, 41) },
|
||||
10,
|
||||
0,
|
||||
false,
|
||||
|
||||
@@ -53,7 +53,7 @@ constexpr RideTypeDescriptor TwistRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::FlatRide,
|
||||
{ MakeRideRating(1, 13), MakeRideRating(0, 97), MakeRideRating(1, 90) },
|
||||
{ RideRating::make(1, 13), RideRating::make(0, 97), RideRating::make(1, 90) },
|
||||
16,
|
||||
0,
|
||||
false,
|
||||
|
||||
@@ -61,7 +61,7 @@ constexpr RideTypeDescriptor ChairliftRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(1, 60), MakeRideRating(0, 40), MakeRideRating(0, 50) },
|
||||
{ RideRating::make(1, 60), RideRating::make(0, 40), RideRating::make(0, 50) },
|
||||
14,
|
||||
-1,
|
||||
false,
|
||||
|
||||
@@ -57,7 +57,7 @@ constexpr RideTypeDescriptor LiftRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(1, 11), MakeRideRating(0, 35), MakeRideRating(0, 30) },
|
||||
{ RideRating::make(1, 11), RideRating::make(0, 35), RideRating::make(0, 30) },
|
||||
15,
|
||||
7,
|
||||
false,
|
||||
|
||||
@@ -60,7 +60,7 @@ constexpr RideTypeDescriptor MiniatureRailwayRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 50), MakeRideRating(0, 00), MakeRideRating(0, 00) },
|
||||
{ RideRating::make(2, 50), RideRating::make(0, 00), RideRating::make(0, 00) },
|
||||
11,
|
||||
-1,
|
||||
false,
|
||||
|
||||
@@ -62,7 +62,7 @@ constexpr RideTypeDescriptor MonorailRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 00), MakeRideRating(0, 00), MakeRideRating(0, 00) },
|
||||
{ RideRating::make(2, 00), RideRating::make(0, 00), RideRating::make(0, 00) },
|
||||
14,
|
||||
-1,
|
||||
false,
|
||||
|
||||
@@ -61,7 +61,7 @@ constexpr RideTypeDescriptor SuspendedMonorailRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 15), MakeRideRating(0, 23), MakeRideRating(0, 8) },
|
||||
{ RideRating::make(2, 15), RideRating::make(0, 23), RideRating::make(0, 8) },
|
||||
14,
|
||||
-1,
|
||||
false,
|
||||
|
||||
@@ -64,12 +64,12 @@ constexpr RideTypeDescriptor BoatHireRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(1, 90), MakeRideRating(0, 80), MakeRideRating(0, 90) },
|
||||
{ RideRating::make(1, 90), RideRating::make(0, 80), RideRating::make(0, 90) },
|
||||
7,
|
||||
0,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusBoatHireNoCircuit, 0, MakeRideRating(0, 20), 0, 0 },
|
||||
{ RatingsModifierType::BonusBoatHireNoCircuit, 0, RideRating::make(0, 20), 0, 0 },
|
||||
{ RatingsModifierType::BonusProximity, 0, 11183, 0, 0 },
|
||||
{ RatingsModifierType::BonusScenery, 0, 22310, 0, 0 },
|
||||
},
|
||||
|
||||
@@ -74,13 +74,13 @@ constexpr RideTypeDescriptor DinghySlideRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 70), MakeRideRating(2, 00), MakeRideRating(1, 50) },
|
||||
{ RideRating::make(2, 70), RideRating::make(2, 00), RideRating::make(1, 50) },
|
||||
13,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 6000, 764, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 50), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 50), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusTrainLength, 0, 187245, 0, 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 44281, 88562, 35424 },
|
||||
{ RatingsModifierType::BonusAverageSpeed, 0, 291271, 436906, 0 },
|
||||
|
||||
@@ -59,13 +59,13 @@ constexpr RideTypeDescriptor LogFlumeRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(1, 50), MakeRideRating(0, 55), MakeRideRating(0, 30) },
|
||||
{ RideRating::make(1, 50), RideRating::make(0, 55), RideRating::make(0, 30) },
|
||||
15,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 2000, 7208, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 531372, 655360, 301111 },
|
||||
{ RatingsModifierType::BonusDuration, 300, 13107, 0, 0 },
|
||||
{ RatingsModifierType::BonusTurns, 0, 22291, 20860, 4574 },
|
||||
|
||||
@@ -58,13 +58,13 @@ constexpr RideTypeDescriptor RiverRaftsRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(1, 45), MakeRideRating(0, 25), MakeRideRating(0, 34) },
|
||||
{ RideRating::make(1, 45), RideRating::make(0, 25), RideRating::make(0, 34) },
|
||||
12,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 2000, 7208, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 531372, 655360, 301111 },
|
||||
{ RatingsModifierType::BonusDuration, 500, 13107, 0, 0 },
|
||||
{ RatingsModifierType::BonusTurns, 0, 22291, 20860, 4574 },
|
||||
|
||||
@@ -59,13 +59,13 @@ constexpr RideTypeDescriptor RiverRapidsRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(1, 20), MakeRideRating(0, 70), MakeRideRating(0, 50) },
|
||||
{ RideRating::make(1, 20), RideRating::make(0, 70), RideRating::make(0, 50) },
|
||||
16,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 2000, 6225, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 30), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 30), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 115130, 159411, 106274 },
|
||||
{ RatingsModifierType::BonusDuration, 500, 13107, 0, 0 },
|
||||
{ RatingsModifierType::BonusTurns, 0, 29721, 22598, 5718 },
|
||||
|
||||
@@ -60,13 +60,13 @@ constexpr RideTypeDescriptor SplashBoatsRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(1, 46), MakeRideRating(0, 35), MakeRideRating(0, 30) },
|
||||
{ RideRating::make(1, 46), RideRating::make(0, 35), RideRating::make(0, 30) },
|
||||
15,
|
||||
-1,
|
||||
false,
|
||||
{
|
||||
{ RatingsModifierType::BonusLength, 2000, 7208, 0, 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, MakeRideRating(0, 40), MakeRideRating(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusSynchronisation, 0, RideRating::make(0, 40), RideRating::make(0, 05), 0 },
|
||||
{ RatingsModifierType::BonusMaxSpeed, 0, 797059, 655360, 301111 },
|
||||
{ RatingsModifierType::BonusDuration, 500, 13107, 0, 0 },
|
||||
{ RatingsModifierType::BonusTurns, 0, 22291, 20860, 4574 },
|
||||
|
||||
@@ -58,7 +58,7 @@ constexpr RideTypeDescriptor SubmarineRideRTD =
|
||||
.RatingsData =
|
||||
{
|
||||
RatingsCalculationType::Normal,
|
||||
{ MakeRideRating(2, 20), MakeRideRating(1, 80), MakeRideRating(1, 40) },
|
||||
{ RideRating::make(2, 20), RideRating::make(1, 80), RideRating::make(1, 40) },
|
||||
7,
|
||||
-1,
|
||||
false,
|
||||
|
||||
@@ -79,8 +79,6 @@ bool gAllowEarlyCompletionInNetworkPlay;
|
||||
|
||||
static void ScenarioCheckObjective(GameState_t& gameState);
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
void ScenarioBegin(GameState_t& gameState)
|
||||
{
|
||||
GameLoadInit();
|
||||
@@ -656,7 +654,7 @@ ObjectiveStatus Objective::Check10RollerCoasters() const
|
||||
BitSet<kMaxRideObjects> type_already_counted;
|
||||
for (const auto& ride : GetRideManager())
|
||||
{
|
||||
if (ride.status == RideStatus::open && ride.ratings.excitement >= MakeRideRating(6, 00)
|
||||
if (ride.status == RideStatus::open && ride.ratings.excitement >= RideRating::make(6, 00)
|
||||
&& ride.subtype != kObjectEntryIndexNull)
|
||||
{
|
||||
auto rideEntry = ride.getRideEntry();
|
||||
@@ -758,7 +756,7 @@ ObjectiveStatus Objective::Check10RollerCoastersLength() const
|
||||
auto rcs = 0;
|
||||
for (const auto& ride : GetRideManager())
|
||||
{
|
||||
if (ride.status == RideStatus::open && ride.ratings.excitement >= MakeRideRating(7, 00)
|
||||
if (ride.status == RideStatus::open && ride.ratings.excitement >= RideRating::make(7, 00)
|
||||
&& ride.subtype != kObjectEntryIndexNull)
|
||||
{
|
||||
auto rideEntry = ride.getRideEntry();
|
||||
|
||||
@@ -97,7 +97,7 @@ struct Objective
|
||||
union
|
||||
{
|
||||
money64 Currency;
|
||||
ride_rating MinimumExcitement; // For the "Finish 5 coaster with a minimum excitement rating" objective.
|
||||
OpenRCT2::RideRating_t MinimumExcitement; // For the "Finish 5 coaster with a minimum excitement rating" objective.
|
||||
};
|
||||
|
||||
bool NeedsMoney() const
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace OpenRCT2::Park
|
||||
continue;
|
||||
if (ride.getStation().SegmentLength < (600 << 16))
|
||||
continue;
|
||||
if (ride.ratings.excitement < MakeRideRating(6, 00))
|
||||
if (ride.ratings.excitement < RideRating::make(6, 00))
|
||||
continue;
|
||||
|
||||
// Bonus guests for good ride
|
||||
|
||||
Reference in new issue
Block a user