If I fix a holobug before its reported do i gain? no! money down. 🤔 Fixes issue with holodeck items being accepted into custom vendors (#57092)

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
Kylerace
2021-02-22 23:16:39 -08:00
committed by GitHub
parent a7e4427212
commit b6ea0d4cdd
+4 -10
View File
@@ -1038,11 +1038,14 @@ GLOBAL_LIST_EMPTY(vending_products)
/obj/machinery/vending/custom/canLoadItem(obj/item/I, mob/user)
. = FALSE
if(I.flags_1 & HOLOGRAM_1)
say("This vendor cannot accept nonexistent items.")
return
if(loaded_items >= max_loaded_items)
say("There are too many items in stock.")
return
if(istype(I, /obj/item/stack))
say("Loose items may cause problems, try use it inside wrapping paper.")
say("Loose items may cause problems, try to use it inside wrapping paper.")
return
if(I.custom_price)
return TRUE
@@ -1150,15 +1153,6 @@ GLOBAL_LIST_EMPTY(vending_products)
last_slogan = world.time + rand(0, slogan_delay)
return
if(canLoadItem(I))
loadingAttempt(I,user)
updateUsrDialog()
return
if(panel_open && is_wire_tool(I))
wires.interact(user)
return
return ..()
/obj/machinery/vending/custom/crowbar_act(mob/living/user, obj/item/I)