Skip to content

Commit 2d3613d

Browse files
committed
Improve this logic
1 parent 43e7221 commit 2d3613d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

code/game/machinery/spiderbot_spawner.dm

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,12 @@
124124
if(!..())
125125
if(istype(O,/obj/item/device/mmi))
126126
var/obj/item/device/mmi/mmi = O
127-
if(!mmi.brainmob)
127+
if(!mmi.brainmob || (!mmi.brainmob.key && !mind_can_reenter(mmi.brainmob.mind)))
128128
brains += 1
129129
to_chat(user, "<span class='notice'>You insert \the [mmi] into \the [src]'s storage bay'.")
130130
qdel(mmi)
131131
return TRUE
132132

133-
if(!mmi.brainmob.key)
134-
if(!mind_can_reenter(mmi.brainmob.mind))
135-
to_chat(user, "<span class='notice'>\The [src] indicates that [O.name]'s mind is completely unresponsive; there's no point.</span>")
136-
return TRUE
137-
138133
if(mmi.brainmob.stat == DEAD)
139134
to_chat(user, "<span class='warning'>Yeah, good idea. Give something deader than the pizza in your fridge legs. Mom would be so proud.</span>")
140135
return TRUE

0 commit comments

Comments
 (0)