mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 13:38:41 +01:00
Installing/moving windoor electronics only happens after the do-after (#95518)
Co-authored-by: Hatterhat <Hatterhat@users.noreply.github.com>
This commit is contained in:
@@ -220,21 +220,21 @@
|
||||
|
||||
//Adding airlock electronics for access. Step 6 complete.
|
||||
else if(istype(W, /obj/item/electronics/airlock))
|
||||
if(!user.transferItemToLoc(W, src))
|
||||
return
|
||||
|
||||
W.play_tool_sound(src, 100)
|
||||
user.visible_message(span_notice("[user] installs the electronics into the airlock assembly."),
|
||||
span_notice("You start to install electronics into the airlock assembly..."))
|
||||
|
||||
if(do_after(user, 4 SECONDS, target = src))
|
||||
|
||||
if(!user.transferItemToLoc(W, src))
|
||||
return
|
||||
if(!src || electronics)
|
||||
W.forceMove(drop_location())
|
||||
return
|
||||
to_chat(user, span_notice("You install the airlock electronics."))
|
||||
name = "near finished windoor assembly"
|
||||
electronics = W
|
||||
else
|
||||
W.forceMove(drop_location())
|
||||
|
||||
//Screwdriver to remove airlock electronics. Step 6 undone.
|
||||
else if(W.tool_behaviour == TOOL_SCREWDRIVER)
|
||||
|
||||
Reference in New Issue
Block a user