No longer resets account to zero when adjusting money while it is negative (#11944)

This commit is contained in:
adamsong
2021-08-07 06:51:41 -04:00
committed by GitHub
parent e37a84887f
commit ca5062d4b7

View File

@@ -32,9 +32,7 @@
/datum/bank_account/proc/_adjust_money(amt) /datum/bank_account/proc/_adjust_money(amt)
account_balance += amt account_balance += amt
if(account_balance < 0) if(account_balance > 1000000 && !is_bourgeois) // if we are now a millionaire, give the achievement
account_balance = 0
else if(account_balance > 1000000 && !is_bourgeois) // if we are now a millionaire, give the achievement
//So we currently only know what is *supposed* to be the real_name of the client's mob. If we can find them, we can get them this achievement. //So we currently only know what is *supposed* to be the real_name of the client's mob. If we can find them, we can get them this achievement.
for(var/x in GLOB.player_list) for(var/x in GLOB.player_list)
var/mob/M = x var/mob/M = x