Fixes vending machines eating coins (#15008)

This commit is contained in:
dearmochi
2020-11-28 22:04:35 +00:00
committed by GitHub
parent 07f63489dc
commit 9224a407fd
+4 -1
View File
@@ -283,11 +283,14 @@
if(!premium.len)
to_chat(user, "<span class='warning'>[src] does not accept coins.</span>")
return
if(coin)
to_chat(user, "<span class='warning'>There is already a coin in this machine!</span>")
return
if(!user.drop_item())
return
I.forceMove(src)
coin = I
to_chat(user, "<span class='notice'>You insert the [I] into the [src]</span>")
to_chat(user, "<span class='notice'>You insert [I] into the [src]</span>")
SStgui.update_uis(src)
return
if(refill_canister && istype(I, refill_canister))