mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'doublezap' into 'master'
Item Thunderflow Closes #220 See merge request KartKrew/Kart!544
This commit is contained in:
commit
d7b72018ba
2 changed files with 12 additions and 3 deletions
|
|
@ -1278,7 +1278,8 @@ static void K_drawKartItem(void)
|
|||
localpatch = kp_sadface[offset];
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
localpatch = kp_nodraw; // diagnose underflows
|
||||
break;
|
||||
}
|
||||
|
||||
if ((stplyr->pflags & PF_ITEMOUT) && !(leveltime & 1))
|
||||
|
|
|
|||
12
src/k_kart.c
12
src/k_kart.c
|
|
@ -9252,8 +9252,16 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
if (ATTACK_IS_DOWN && !HOLDING_ITEM && NO_HYUDORO)
|
||||
{
|
||||
K_DoThunderShield(player);
|
||||
player->itemamount--;
|
||||
K_PlayAttackTaunt(player->mo);
|
||||
if (player->itemamount > 0)
|
||||
{
|
||||
// Why is this a conditional?
|
||||
// Thunder shield: the only item that allows you to
|
||||
// activate a mine while you're out of its radius,
|
||||
// the SAME tic it sets your itemamount to 0
|
||||
// ...:dumbestass:
|
||||
player->itemamount--;
|
||||
K_PlayAttackTaunt(player->mo);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case KITEM_BUBBLESHIELD:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue