mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Code review fixes, no drop sanity check
This commit is contained in:
@@ -43,7 +43,6 @@
|
||||
playsound(loc, 'sound/machines/click.ogg', 15, TRUE, -3)
|
||||
opened = !opened
|
||||
update_icon()
|
||||
return
|
||||
|
||||
/obj/structure/extinguisher_cabinet/Destroy()
|
||||
QDEL_NULL(has_extinguisher)
|
||||
@@ -54,6 +53,8 @@
|
||||
return
|
||||
if(istype(O, /obj/item/extinguisher))
|
||||
if(!has_extinguisher && opened)
|
||||
if((O.flags & NODROP) || (flags & NODROP))
|
||||
return
|
||||
user.drop_item(O)
|
||||
contents += O
|
||||
has_extinguisher = O
|
||||
|
||||
Reference in New Issue
Block a user