From da09e8627b7aaa95a6050018dd74e0b072afcb11 Mon Sep 17 00:00:00 2001 From: Roxy <75404941+TealSeer@users.noreply.github.com> Date: Wed, 4 Jun 2025 14:02:51 -0400 Subject: [PATCH] Infinite credit dupe trick patch [100% working] [June 2025] [No download] [Link in video description] (#91455) So it turns out the spacebet app verifies that the user has the money to make a bet only if they already have an active bet and they're increasing the amount of money it is, with a fresh bet this is never checked. This means someone can bet 10k credits on an option, it will place the bet with no regard for their account balance, then they can set their bet back to zero and the app will happily refund them 10k. Now they have 10k. They can do this as fast as they can type the numbers --- .../modular_computers/file_system/programs/betting.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/modular_computers/file_system/programs/betting.dm b/code/modules/modular_computers/file_system/programs/betting.dm index 19b47dd89d2..8d132e05217 100644 --- a/code/modules/modular_computers/file_system/programs/betting.dm +++ b/code/modules/modular_computers/file_system/programs/betting.dm @@ -241,12 +241,11 @@ GLOBAL_LIST_EMPTY_TYPED(active_bets, /datum/active_bet) else //putting more money in if(text2num(existing_bets[2]) < money_betting) - if(better.account_balance < money_betting) - return var/money_adding_in = money_betting - text2num(existing_bets[2]) + if(!better.adjust_money(-money_adding_in, "Gambling on [name].")) + return total_amount_bet += money_adding_in better.bank_card_talk("Additional [money_adding_in]cr deducted for your bet on [name].") - better.adjust_money(-money_adding_in, "Gambling on [name].") existing_bets[2] = "[money_betting]" return //taking it all out, we remove them from the list so they aren't a winner with bets of 0. @@ -265,9 +264,10 @@ GLOBAL_LIST_EMPTY_TYPED(active_bets, /datum/active_bet) existing_bets[2] = "[money_betting]" return + if(!better.adjust_money(-money_betting, "Gambling on [name]")) + return total_amount_bet += money_betting options[option_betting] += list(list(better, "[money_betting]")) - better.adjust_money(-money_betting, "Gambling on [name]") better.bank_card_talk("Deducted [money_betting]cr for your bet on [name].") ///Cancels your bet, removing your bet and refunding your money.