From: LMH Date: Sun, 9 Nov 2014 20:35:29 +0000 (-1000) Subject: New powerups added to cheat menu X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7ebef4bb8c5483983cbf870396541a5ec36ac31e;p=supertux.git New powerups added to cheat menu --- diff --git a/src/supertux/menu/cheat_menu.cpp b/src/supertux/menu/cheat_menu.cpp index f31d80d47..a6ea82873 100644 --- a/src/supertux/menu/cheat_menu.cpp +++ b/src/supertux/menu/cheat_menu.cpp @@ -31,6 +31,8 @@ CheatMenu::CheatMenu() add_entry(MNID_GROW, _("Bonus: Grow")); add_entry(MNID_FIRE, _("Bonus: Fire")); add_entry(MNID_ICE, _("Bonus: Ice")); + add_entry(MNID_AIR, _("Bonus: Air")); + add_entry(MNID_EARTH, _("Bonus: Earth")); add_entry(MNID_STAR, _("Bonus: Star")); add_entry(MNID_SHRINK, _("Shrink Tux")); add_entry(MNID_KILL, _("Kill Tux")); @@ -70,6 +72,20 @@ CheatMenu::menu_action(MenuItem* item) } break; + case MNID_AIR: + if (player) + { + player->set_bonus(AIR_BONUS); + } + break; + + case MNID_EARTH: + if (player) + { + player->set_bonus(EARTH_BONUS); + } + break; + case MNID_STAR: if (player) { diff --git a/src/supertux/menu/cheat_menu.hpp b/src/supertux/menu/cheat_menu.hpp index 55a147f32..02a0a2b12 100644 --- a/src/supertux/menu/cheat_menu.hpp +++ b/src/supertux/menu/cheat_menu.hpp @@ -26,6 +26,8 @@ private: MNID_GROW, MNID_FIRE, MNID_ICE, + MNID_AIR, + MNID_EARTH, MNID_STAR, MNID_SHRINK, MNID_KILL,