mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Grading adjustment
This commit is contained in:
parent
2104b0b0f5
commit
1b0674d041
1 changed files with 3 additions and 4 deletions
|
|
@ -243,10 +243,9 @@ INT32 level_tally_t::CalculateGrade(void)
|
||||||
case TALLY_BONUS_LAP:
|
case TALLY_BONUS_LAP:
|
||||||
{
|
{
|
||||||
// Use a special curve for this.
|
// Use a special curve for this.
|
||||||
// The difference between 0 and 1 lap points is an important difference in skill,
|
// Low Exp amounts are guaranteed, higher than half is where skill expression starts
|
||||||
// while the difference between 5 and 6 is not very notable.
|
const fixed_t frac = std::min(FRACUNIT, (laps * FRACUNIT) / std::max(1, static_cast<int>(totalLaps + 80))); // Magic number here is to ensure A ranks only go to those that can maintain positive EXP
|
||||||
const fixed_t frac = std::min(FRACUNIT, (laps * FRACUNIT) / std::max(1, static_cast<int>(totalLaps)));
|
ours += Easing_InCubic(frac, 0, bonusWeights[i]);
|
||||||
ours += Easing_OutSine(frac, 0, bonusWeights[i]);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TALLY_BONUS_PRISON:
|
case TALLY_BONUS_PRISON:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue