From aea0d04ae702a6dfe8b5f44b3482f5ee7f0b37a2 Mon Sep 17 00:00:00 2001 From: Margen67 Date: Wed, 21 Apr 2021 16:03:22 -1000 Subject: [PATCH] Remove whitespace, eof newline --- Ride-rating-calculation.md | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/Ride-rating-calculation.md b/Ride-rating-calculation.md index 8d40156..1bb2337 100644 --- a/Ride-rating-calculation.md +++ b/Ride-rating-calculation.md @@ -3,7 +3,7 @@ This is an (incomplete) attempt to document some of the ride rating calculations **Effect of G-force on ride ratings** ([ride_ratings_get_g_force_ratings](https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/ride/ride_ratings.c?#L1127)) The effect of G-force on the ratings is calculated in the same manner for each ride, and then the results are multiplied by ride-specific coefficients and added to the current total. The ride-independent portion of this is: - + excitement=0.08*max_positive_g-0.24*clamp(-2.5,max_negative_g,0)+0.4*min(1.5,max_lateral_g) intensity=0.8*max_positive_g+0.8*(1-max_negative_g)+max_lateral_g nausea=0.26*max_positive_g+0.22*(1-max_negative_g)+0.33*max_lateral_g @@ -44,16 +44,15 @@ The effect of scenery is again calculated in the same manner for every ride. If **Effect of proximity on excitement** ([ride_ratings_get_proximity_score](https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/ride/ride_ratings.c?#L1256)) This is probably the most interesting routine if only because I never knew this was taken into account. Unfortunately, I'm not quite sure how this method works - it accesses a (presumably global?) array and I don't know where that is initialised. However, it appear that points are awarded for: - -* Passing close to another point on the track -* Passing close to the station -* Passing close to the track of a different ride -* Passing close to paths -* Passing close to scenery -* Passing close to water (more points are awarded the closer the track is to the water) -* Passing through a vertical loop -* Looping around a path -* Interlocking loops + * Passing close to another point on the track + * Passing close to the station + * Passing close to the track of a different ride + * Passing close to paths + * Passing close to scenery + * Passing close to water (more points are awarded the closer the track is to the water) + * Passing through a vertical loop + * Looping around a path + * Interlocking loops The score from each of these is totalled up, multiplied by a ride-specific constant, and then added to the excitement rating @@ -80,4 +79,4 @@ Each ride has it's own minimum threshold for highest drop height, maximum speed, **Effect of excessive intensity on excitement** ([ride_ratings_apply_intensity_penalty](https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/ride/ride_ratings.c?#L1170)) -If the intensity is above ten, the excitement is decreased by 25%. It is decreased again by 25% if the intensity exceeds 11, again if the intensity exceeds 12, again if the intensity exceeds 13.2, and finally if the intensity exceeds 14.5. \ No newline at end of file +If the intensity is above ten, the excitement is decreased by 25%. It is decreased again by 25% if the intensity exceeds 11, again if the intensity exceeds 12, again if the intensity exceeds 13.2, and finally if the intensity exceeds 14.5.