diff --git a/data/powerup.xml b/data/powerup.xml index d45abc313..57d81e18a 100644 --- a/data/powerup.xml +++ b/data/powerup.xml @@ -1,6 +1,7 @@ + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - + - + - - - + + + - + - - + + - - + + - - + + diff --git a/src/items/powerup.cpp b/src/items/powerup.cpp index 9064c1d38..b58bbbc07 100644 --- a/src/items/powerup.cpp +++ b/src/items/powerup.cpp @@ -170,6 +170,9 @@ void Powerup::set(PowerupManager::PowerupType type, int n) case PowerupManager::POWERUP_ZIPPER: break ; + case PowerupManager::POWERUP_SUPER_SIZE: + break ; + case PowerupManager::POWERUP_BOWLING: m_sound_use = SFXManager::get()->createSoundSource("bowling_shoot"); break ; @@ -276,6 +279,9 @@ void Powerup::use() case PowerupManager::POWERUP_ZIPPER: m_kart->handleZipper(NULL, true); break ; + case PowerupManager::POWERUP_SUPER_SIZE: + m_kart->setSuper(); + break ; case PowerupManager::POWERUP_SWITCH: { ItemManager::get()->switchItems(); diff --git a/src/items/powerup_manager.cpp b/src/items/powerup_manager.cpp index dd61a2b88..a844e326a 100644 --- a/src/items/powerup_manager.cpp +++ b/src/items/powerup_manager.cpp @@ -105,7 +105,7 @@ PowerupManager::PowerupType static std::string powerup_names[] = { "", /* Nothing */ "bubblegum", "cake", "bowling", "zipper", "plunger", "switch", - "swatter", "rubber-ball", "parachute", "anchor" + "swatter", "rubber-ball", "super", "parachute", "anchor" }; for(unsigned int i=POWERUP_FIRST; i<=POWERUP_LAST; i++) diff --git a/src/items/powerup_manager.hpp b/src/items/powerup_manager.hpp index a5a5ba74b..30d7eb4b5 100644 --- a/src/items/powerup_manager.hpp +++ b/src/items/powerup_manager.hpp @@ -132,6 +132,7 @@ public: POWERUP_CAKE, POWERUP_BOWLING, POWERUP_ZIPPER, POWERUP_PLUNGER, POWERUP_SWITCH, POWERUP_SWATTER, POWERUP_RUBBERBALL, + POWERUP_SUPER_SIZE, POWERUP_PARACHUTE, POWERUP_ANVIL, //powerup.cpp assumes these two come last POWERUP_LAST=POWERUP_ANVIL,