Skip to content

Commit 8b874ad

Browse files
authored
using the storage implant's action button while it's activated now closes the implant (ParadiseSS13#23182)
1 parent c0a18da commit 8b874ad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

code/game/objects/items/weapons/implants/implant_storage.dm

+5-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828
storage.emp_act(severity)
2929

3030
/obj/item/implant/storage/activate()
31-
storage.MouseDrop(imp_in)
31+
if(!length(storage.mobs_viewing))
32+
storage.MouseDrop(imp_in)
33+
else
34+
for(var/mob/to_close in storage.mobs_viewing)
35+
storage.close(to_close)
3236

3337
/obj/item/implant/storage/removed(source)
3438
if(..())

0 commit comments

Comments
 (0)