Merge pull request #6088 from Heroman3003/infinite-cash-no

Fixes money duping bug
This commit is contained in:
Neerti
2019-04-15 18:46:53 -04:00
committed by VirgoBot
parent b597e89447
commit b628f6e3d2

View File

@@ -78,6 +78,8 @@
/obj/item/weapon/spacecash/attack_self()
var/amount = input(usr, "How many Thalers do you want to take? (0 to [src.worth])", "Take Money", 20) as num
if(!src || QDELETED(src))
return
amount = round(CLAMP(amount, 0, src.worth))
if(!amount)