Skip to content

Commit

Permalink
New powerups added to cheat menu
Browse files Browse the repository at this point in the history
  • Loading branch information
LMH0013 committed Nov 9, 2014
1 parent d64bdf2 commit 7ebef4b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/supertux/menu/cheat_menu.cpp
Expand Up @@ -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"));
Expand Down Expand Up @@ -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)
{
Expand Down
2 changes: 2 additions & 0 deletions src/supertux/menu/cheat_menu.hpp
Expand Up @@ -26,6 +26,8 @@ class CheatMenu : public Menu
MNID_GROW,
MNID_FIRE,
MNID_ICE,
MNID_AIR,
MNID_EARTH,
MNID_STAR,
MNID_SHRINK,
MNID_KILL,
Expand Down

0 comments on commit 7ebef4b

Please sign in to comment.