Fixes slot machines not giving some cash winnings amounts (#16161)

This commit is contained in:
Fluffy
2023-04-05 18:08:55 +02:00
committed by GitHub
parent 64800769d8
commit 2be000692c
2 changed files with 42 additions and 1 deletions
+1 -1
View File
@@ -156,7 +156,7 @@
proc/spawn_money(var/sum, spawnloc, mob/living/carbon/human/human_user as mob)
if(sum in list(1000,500,200,100,50,20,10,1))
var/cash_type = text2path("/obj/item/spacecash/c[sum]")
var/obj/cash = new cash_type (usr.loc)
var/obj/cash = new cash_type (spawnloc)
if(ishuman(human_user) && !human_user.get_active_hand())
human_user.put_in_hands(cash)
else