mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-31 07:58:22 +01:00
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:
@@ -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
|
||||
@@ -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
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user