Battle: add POINTS power-up, get 6 points

This commit is contained in:
James R 2024-01-23 00:23:34 -08:00
parent b52384b294
commit 84641c896e
4 changed files with 8 additions and 0 deletions

View file

@ -208,6 +208,7 @@ CV_PossibleValue_t kartdebugitem_cons_t[] =
{POWERUP_BUMPER, "Bumper"},
{POWERUP_BADGE, "Badge"},
{POWERUP_SUPERFLICKY, "SuperFlicky"},
{POWERUP_POINTS, "Points"},
{0}
};

View file

@ -207,6 +207,7 @@ typedef enum
POWERUP_BUMPER,
POWERUP_BADGE,
POWERUP_SUPERFLICKY,
POWERUP_POINTS,
ENDOFPOWERUPS,
LASTPOWERUP = ENDOFPOWERUPS - 1,
NUMPOWERUPS = ENDOFPOWERUPS - FIRSTPOWERUP,

View file

@ -7500,6 +7500,7 @@ struct int_const_s const INT_CONST[] = {
{"POWERUP_BUMPER",POWERUP_BUMPER},
{"POWERUP_BADGE",POWERUP_BADGE},
{"POWERUP_SUPERFLICKY",POWERUP_SUPERFLICKY},
{"POWERUP_POINTS",POWERUP_POINTS},
{"ENDOFPOWERUPS",ENDOFPOWERUPS},
{"LASTPOWERUP",LASTPOWERUP},
{"NUMPOWERUPS",NUMPOWERUPS},

View file

@ -88,6 +88,11 @@ void K_GivePowerUp(player_t* player, kartitems_t powerup, tic_t time)
}
break;
case POWERUP_POINTS:
K_AddMessageForPlayer(player, "Got 6 POINTS!", true, false);
K_GivePointsToPlayer(player, nullptr, 6);
break;
default:
break;
}