Attempt to fix microwave circuit

This bug angers me.

Also added a timer for removing a pAI from a bot.
This commit is contained in:
FartMaster69420
2022-05-02 13:33:01 -04:00
parent 068709a116
commit f3658fe87f
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -633,5 +633,7 @@
workingList -= circuit
if(paicard)
workingList -= paicard
return workingList
for(var/M in workingList)
if(istype(M, circuit)) // I know not why we need this check, all I know is if we don't circuits will be added to microwave components after construction.
workingList -= M
return workingList
+4 -2
View File
@@ -162,8 +162,10 @@
else
to_chat(user, span_notice("You must open the panel first!"))
else if(O.is_crowbar())
if(open)
ejectpai(user)
if(open && paicard)
to_chat(user, span_notice("You are attempting to remove the pAI.."))
if(do_after(user,10 * O.toolspeed))
ejectpai(user)
else
..()