mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
WIP: More Ring Box adjustments
This commit is contained in:
parent
8f56fafe6b
commit
8a3a48695d
1 changed files with 6 additions and 3 deletions
|
|
@ -11399,11 +11399,12 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
if (player->ringboxdelay == 0)
|
||||
{
|
||||
UINT32 behind = K_GetItemRouletteDistance(player, player->itemRoulette.playing);
|
||||
UINT32 behindMulti = behind / 1000;
|
||||
behindMulti = min(behindMulti, 20);
|
||||
UINT32 behindMulti = behind / 500;
|
||||
behindMulti = min(behindMulti, 40);
|
||||
|
||||
|
||||
UINT32 award = 5*player->ringboxaward + 10;
|
||||
if (player->ringboxaward > 2) // not a BAR
|
||||
// if (player->ringboxaward > 2) // not a BAR
|
||||
award = 3 * award / 2;
|
||||
award = award * (behindMulti + 10) / 10;
|
||||
|
||||
|
|
@ -11411,6 +11412,8 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
if (modeattacking & ATTACKING_SPB)
|
||||
award = award / 2;
|
||||
|
||||
CONS_Printf("%dst: +%d (x%d)\n", player->position, award, behindMulti);
|
||||
|
||||
K_AwardPlayerRings(player, award, true);
|
||||
player->ringboxaward = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue