Fixes stripper poles and other ERP equipment being constructable in boxes (#9825)

* fuck

* God is dead and we have killed them

* missed it
This commit is contained in:
Zonespace
2021-12-02 17:23:44 +00:00
committed by GitHub
parent 23cf63cddb
commit c008da62cb
3 changed files with 5 additions and 3 deletions
@@ -1035,6 +1035,8 @@
// Processor of the process of assembling a kit into a machine
/obj/item/milking_machine/constructionkit/attackby(obj/item/I, mob/living/carbon/user, params)
var/M = /obj/structure/chair/milking_machine
if((item_flags & IN_INVENTORY) || (item_flags & IN_STORAGE))
return
if(I.tool_behaviour == TOOL_WRENCH)
if(user.get_held_items_for_side(LEFT_HANDS) == src || user.get_held_items_for_side(RIGHT_HANDS) == src)
return
@@ -17,7 +17,7 @@
/obj/item/bdsm_bed_kit/attackby(obj/item/P, mob/user, params) //constructing a bed here.
add_fingerprint(user)
if(istype(P, /obj/item/wrench))
if (!(item_flags & IN_INVENTORY))
if (!(item_flags & IN_INVENTORY) && !(item_flags & IN_STORAGE))
to_chat(user, span_notice("You fasten the frame to the floor and begin to inflate the latex pillows..."))
if(P.use_tool(src, user, 8 SECONDS, volume=50))
to_chat(user, span_notice("You assemble the bdsm bed."))
@@ -271,7 +271,7 @@
/obj/item/x_stand_kit/attackby(obj/item/P, mob/user, params) //constructing a bed here.
add_fingerprint(user)
if(istype(P, /obj/item/wrench))
if (!(item_flags & IN_INVENTORY))
if (!(item_flags & IN_INVENTORY) && !(item_flags & IN_STORAGE))
to_chat(user, span_notice("You begin fastening the frame to the floor."))
if(P.use_tool(src, user, 8 SECONDS, volume=50))
to_chat(user, span_notice("You assemble the x-stand."))
@@ -159,7 +159,7 @@
/obj/item/polepack/attackby(obj/item/P, mob/user, params) //erecting a pole here.
add_fingerprint(user)
if(istype(P, /obj/item/wrench))
if (!(item_flags & IN_INVENTORY))
if (!(item_flags & IN_INVENTORY) && !(item_flags & IN_STORAGE))
to_chat(user, span_notice("You begin fastening the frame to the floor and ceiling..."))
if(P.use_tool(src, user, 8 SECONDS, volume=50))
to_chat(user, span_notice("You assemble the stripper pole."))