Merge pull request #788 from Citadel-Station-13/upstream-merge-26911

[MIRROR] Improves vending machine user feedback
This commit is contained in:
kevinz000
2017-05-06 13:59:05 -07:00
committed by GitHub
+4 -1
View File
@@ -307,7 +307,10 @@
if(panel_open)
attack_hand(user)
return
else if(istype(W, /obj/item/weapon/coin) && premium.len > 0)
else if(istype(W, /obj/item/weapon/coin))
if(!premium.len)
to_chat(user, "<span class='warning'>[src] doesn't have a coin slot.</span>")
return
if(!user.drop_item())
return
W.loc = src