mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Allows unanchoring and deconstructing of linen bins (#44171)
* linen bins, your time has come * update * update
This commit is contained in:
@@ -257,7 +257,7 @@ LINEN BINS
|
||||
var/type = pickweight(list("Colors" = 80, "Special" = 20))
|
||||
switch(type)
|
||||
if("Colors")
|
||||
type = pick(list(/obj/item/bedsheet,
|
||||
type = pick(list(/obj/item/bedsheet,
|
||||
/obj/item/bedsheet/blue,
|
||||
/obj/item/bedsheet/green,
|
||||
/obj/item/bedsheet/grey,
|
||||
@@ -288,6 +288,11 @@ LINEN BINS
|
||||
var/list/sheets = list()
|
||||
var/obj/item/hidden = null
|
||||
|
||||
/obj/structure/bedsheetbin/empty
|
||||
amount = 0
|
||||
icon_state = "linenbin-empty"
|
||||
anchored = FALSE
|
||||
|
||||
|
||||
/obj/structure/bedsheetbin/examine(mob/user)
|
||||
..()
|
||||
@@ -322,6 +327,21 @@ LINEN BINS
|
||||
amount++
|
||||
to_chat(user, "<span class='notice'>You put [I] in [src].</span>")
|
||||
update_icon()
|
||||
|
||||
else if(default_unfasten_wrench(user, I, 5))
|
||||
return
|
||||
|
||||
else if(I.tool_behaviour == TOOL_SCREWDRIVER)
|
||||
if(flags_1 & NODECONSTRUCT_1)
|
||||
return
|
||||
if(amount)
|
||||
to_chat(user, "<span clas='warn'>The [src] must be empty first!</span>")
|
||||
return
|
||||
if(I.use_tool(src, user, 5, volume=50))
|
||||
to_chat(user, "<span clas='notice'>You disassemble the [src].</span>")
|
||||
new /obj/item/stack/rods(loc, 2)
|
||||
qdel(src)
|
||||
|
||||
else if(amount && !hidden && I.w_class < WEIGHT_CLASS_BULKY) //make sure there's sheets to hide it among, make sure nothing else is hidden in there.
|
||||
if(!user.transferItemToLoc(I, src))
|
||||
to_chat(user, "<span class='warning'>\The [I] is stuck to your hand, you cannot hide it among the sheets!</span>")
|
||||
|
||||
Reference in New Issue
Block a user