Merge pull request #5065 from VOREStation/upstream-merge-6088

[MIRROR] Fixes money duping bug
This commit is contained in:
Novacat
2019-04-15 18:55:54 -04:00
committed by GitHub

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)