mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Merge pull request #9426 from VOREStation/upstream-merge-7774
[MIRROR] Prevents infinite money
This commit is contained in:
committed by
Chompstation Bot
parent
9dd98526f6
commit
f7cfa0232f
@@ -122,7 +122,7 @@
|
||||
transaction_purpose = t_purpose
|
||||
item_list += t_purpose
|
||||
var/t_amount = round(input("Enter price", "New price") as num)
|
||||
if (!t_amount || !Adjacent(usr)) return
|
||||
if (!t_amount || !Adjacent(usr) || t_amount < 0) return
|
||||
transaction_amount += t_amount
|
||||
price_list += t_amount
|
||||
playsound(src, 'sound/machines/twobeep.ogg', 25)
|
||||
|
||||
Reference in New Issue
Block a user