From 18cafacd8f77562edf4266584c7351442d613762 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sun, 7 Feb 2021 18:23:38 +0100 Subject: [PATCH] Cheat Menu: Set a high number of the bonus count e.g. the number of fire bullets --- src/supertux/menu/cheat_menu.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/supertux/menu/cheat_menu.cpp b/src/supertux/menu/cheat_menu.cpp index e4a9a772349..d6c3c70aa00 100644 --- a/src/supertux/menu/cheat_menu.cpp +++ b/src/supertux/menu/cheat_menu.cpp @@ -30,10 +30,10 @@ CheatMenu::CheatMenu() add_label(_("Cheats")); add_hl(); 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_FIRE, _("Bonus: Fire x 64")); + add_entry(MNID_ICE, _("Bonus: Ice x 64")); + add_entry(MNID_AIR, _("Bonus: Air x 64")); + add_entry(MNID_EARTH, _("Bonus: Earth x 64")); add_entry(MNID_STAR, _("Bonus: Star")); add_entry(MNID_SHRINK, _("Shrink Tux")); add_entry(MNID_KILL, _("Kill Tux")); @@ -59,18 +59,22 @@ CheatMenu::menu_action(MenuItem& item) case MNID_FIRE: player.set_bonus(FIRE_BONUS); + player.get_status().max_fire_bullets = 64; break; case MNID_ICE: player.set_bonus(ICE_BONUS); + player.get_status().max_ice_bullets = 64; break; case MNID_AIR: player.set_bonus(AIR_BONUS); + player.get_status().max_air_time = 64; break; case MNID_EARTH: player.set_bonus(EARTH_BONUS); + player.get_status().max_earth_time = 64; break; case MNID_STAR: