mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-04 04:36:21 +00:00
90cc G1
This commit is contained in:
parent
eba0f22e46
commit
e7b4ce1994
1 changed files with 13 additions and 1 deletions
14
src/k_kart.c
14
src/k_kart.c
|
|
@ -533,6 +533,14 @@ fixed_t K_GetKartGameSpeedScalar(SINT8 value)
|
|||
fixed_t base = ((13 + (3*value)) << FRACBITS) / 16;
|
||||
fixed_t duel = overtimecheckpoints*(1<<FRACBITS)/32;
|
||||
|
||||
if (gametyperules & GTR_CIRCUIT && gametype != GT_TUTORIAL)
|
||||
{
|
||||
if (value == KARTSPEED_EASY)
|
||||
{
|
||||
base = 9*FRACUNIT/10;
|
||||
}
|
||||
}
|
||||
|
||||
return base + duel;
|
||||
}
|
||||
|
||||
|
|
@ -3549,7 +3557,11 @@ static void K_GetKartBoostPower(player_t *player)
|
|||
{
|
||||
// Light weights have stronger boost stacking -- aka, better metabolism than heavies XD
|
||||
const fixed_t maxmetabolismincrease = FRACUNIT/2;
|
||||
const fixed_t metabolism = FRACUNIT - ((9-player->kartweight) * maxmetabolismincrease / 8);
|
||||
fixed_t metabolism = FRACUNIT - ((9-player->kartweight) * maxmetabolismincrease / 8);
|
||||
|
||||
if (gamespeed == KARTSPEED_EASY && gametype != GT_TUTORIAL)
|
||||
metabolism *= 2;
|
||||
|
||||
|
||||
fixed_t boostpower = FRACUNIT;
|
||||
fixed_t speedboost = 0, accelboost = 0, handleboost = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue