Allow setting default powerup (instead of nothing) and set default powerup to zipper
This commit is contained in:
parent
6c5eb075aa
commit
d31c8c4e04
@ -38,6 +38,22 @@
|
|||||||
#include "utils/string_utils.hpp"
|
#include "utils/string_utils.hpp"
|
||||||
#include "utils/log.hpp" //TODO: remove after debugging is done
|
#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.
|
/** Constructor, stores the kart to which this powerup belongs.
|
||||||
* \param kart 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 )
|
if ( m_number <= 0 )
|
||||||
{
|
{
|
||||||
m_number = 0;
|
m_number = 0;
|
||||||
m_type = PowerupManager::POWERUP_NOTHING;
|
m_type = PowerupManager::DEFAULT_POWERUP;
|
||||||
}
|
}
|
||||||
} // use
|
} // use
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user