From 433c840c14782d84b4b95265b3e6f7a1f67ade3b Mon Sep 17 00:00:00 2001 From: Max-001 Date: Fri, 10 Jan 2025 14:44:57 +0100 Subject: Make format --- game/menus/shop/ButtonBuySelectBubbleScript.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'game/menus/shop/ButtonBuySelectBubbleScript.cpp') diff --git a/game/menus/shop/ButtonBuySelectBubbleScript.cpp b/game/menus/shop/ButtonBuySelectBubbleScript.cpp index 21dbe1a..741afde 100644 --- a/game/menus/shop/ButtonBuySelectBubbleScript.cpp +++ b/game/menus/shop/ButtonBuySelectBubbleScript.cpp @@ -17,19 +17,17 @@ void ButtonBuySelectBubbleScript::init() { bool ButtonBuySelectBubbleScript::on_button_press(const ButtonPressEvent & e) { SaveManager & save = this->get_save_manager(); - ValueBroker buy_bullet = save.get(BUY_BUBBLE_SAVE,0); - if(!buy_bullet.get()){ - ValueBroker coins = save.get(TOTAL_COINS_GAME,0); - if(coins.get() >= 1000) - { + ValueBroker buy_bullet = save.get(BUY_BUBBLE_SAVE, 0); + if (!buy_bullet.get()) { + ValueBroker coins = save.get(TOTAL_COINS_GAME, 0); + if (coins.get() >= 1000) { int coin = coins.get(); coin -= 1000; - save.set(TOTAL_COINS_GAME,coin); - save.set(BUY_BUBBLE_SAVE,1); + save.set(TOTAL_COINS_GAME, coin); + save.set(BUY_BUBBLE_SAVE, 1); } - } - else { - save.set(JETPACK_PARTICLES,1); + } else { + save.set(JETPACK_PARTICLES, 1); } this->trigger_event(); return false; -- cgit v1.2.3