Allow setting default powerup (instead of nothing) and set default powerup to zipper

This commit is contained in:
ilikecats 2024-07-05 18:06:55 -07:00
parent 6c5eb075aa
commit d31c8c4e04

View File

@ -38,6 +38,22 @@
#include "utils/string_utils.hpp"
#include "utils/log.hpp" //TODO: remove after debugging is done
#define DEFAULT_POWERUP POWERUP_ZIPPER
/* Available powerups:
- POWERUP_SWATTER: Flyswatter
- POWERUP_ZIPPER: Speed boost
- POWERUP_BOWLING: Bowling ball
- POWERUP_ANVIL: Slowy downy anchor thingy (I think)
- POWERUP_PARACHUTE: Slowy downy parachute thingy (like anvil but more)
- POWERUP_BUBBLEGUM: Bubblegum shield
- POWERUP_SWITCH: Switch powerups (I think)
- POWERUP_NOTHING: Nothing
- POWERUP_CAKE: Explody cake
- POWERUP_PLUNGER: Plunger
*/
//-----------------------------------------------------------------------------
/** Constructor, stores the kart to which this powerup belongs.
* \param kart The kart to which this powerup belongs.
@ -495,7 +511,7 @@ void Powerup::use()
if ( m_number <= 0 )
{
m_number = 0;
m_type = PowerupManager::POWERUP_NOTHING;
m_type = PowerupManager::DEFAULT_POWERUP;
}
} // use