mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 10:51:42 +00:00
Give heavy-accel a bonus to drift boosts
This commit is contained in:
parent
0f61d1f064
commit
a4767323f2
1 changed files with 14 additions and 6 deletions
20
src/k_kart.c
20
src/k_kart.c
|
|
@ -3089,14 +3089,22 @@ static void K_GetKartBoostPower(player_t *player)
|
||||||
|
|
||||||
if (player->driftboost) // Drift Boost
|
if (player->driftboost) // Drift Boost
|
||||||
{
|
{
|
||||||
if (player->strongdriftboost) // Purple/Rainbow drift boost
|
// Rebuff Eggman's stat block corner
|
||||||
|
const INT32 heavyAccel = (player->kartweight - 1) + (9 - player->kartspeed);
|
||||||
|
const fixed_t heavyAccelBonus = FRACUNIT + ((heavyAccel * maxmetabolismincrease * 2) / 16);
|
||||||
|
|
||||||
|
fixed_t driftSpeed = FRACUNIT/4; // 25% base
|
||||||
|
|
||||||
|
if (player->strongdriftboost > 0)
|
||||||
{
|
{
|
||||||
ADDBOOST(FRACUNIT/3, 4*FRACUNIT, 0); // + 33% top speed, + 400% acceleration, +0% handling
|
// Purple/Rainbow drift boost
|
||||||
}
|
driftSpeed = FixedMul(driftSpeed, 4*FRACUNIT/3); // 25% -> 33%
|
||||||
else
|
|
||||||
{
|
|
||||||
ADDBOOST(FRACUNIT/4, 4*FRACUNIT, 0); // + 25% top speed, + 400% acceleration, +0% handling
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Bottom-left bonus
|
||||||
|
driftSpeed = FixedMul(driftSpeed, heavyAccelBonus);
|
||||||
|
|
||||||
|
ADDBOOST(driftSpeed, 4*FRACUNIT, 0); // + variable top speed, + 400% acceleration, +0% handling
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player->trickboost) // Trick pannel up-boost
|
if (player->trickboost) // Trick pannel up-boost
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue