This commit is contained in:
alberyk
2021-10-19 02:41:56 -03:00
parent 78a97261fb
commit 7a091b659e
6 changed files with 445 additions and 389 deletions
+2 -2
View File
@@ -135,7 +135,7 @@
icon_state = icon_closed
/obj/structure/fuel_port/attackby(obj/item/W, mob/user)
if(iscrowbar(W))
if(W.iscrowbar())
if(opened)
to_chat(user, SPAN_NOTICE("You close \the [src]."))
playsound(src.loc, 'sound/effects/closet_close.ogg', 25, 0, -3)
@@ -149,7 +149,7 @@
to_chat(user, SPAN_NOTICE("\The [src] isn't open!"))
return
if(contents.len == 0)
user.unEquip(W, src)
user.unEquip(W, TRUE, src)
update_icon()
// Walls hide stuff inside them, but we want to be visible.