From d31c8c4e04feccfa90067ca46577f7f9c573ccbe Mon Sep 17 00:00:00 2001 From: ilikecats Date: Fri, 5 Jul 2024 18:06:55 -0700 Subject: [PATCH] Allow setting default powerup (instead of nothing) and set default powerup to zipper --- src/items/powerup.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/items/powerup.cpp b/src/items/powerup.cpp index 65c234f39..5afa97574 100644 --- a/src/items/powerup.cpp +++ b/src/items/powerup.cpp @@ -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