mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user