Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

It now takes 10 seconds to deconstruct a data core #17357

Merged
merged 2 commits into from
Jan 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -86,13 +86,19 @@ GLOBAL_VAR_INIT(primary_data_core, null)
..()

/obj/machinery/ai/data_core/attackby(obj/item/O, mob/user, params)
if(default_deconstruction_screwdriver(user, "core-open", "core", O))
return TRUE

if(default_deconstruction_crowbar(O))
return TRUE
if(O.tool_behaviour == TOOL_SCREWDRIVER)
if(!do_after(user, 5 SECONDS, src))
to_chat(user, span_warning("You need to stand still to open the panel!"))
return
if(default_deconstruction_screwdriver(user, "core-open", "core", O))
return TRUE


if(O.tool_behaviour == TOOL_CROWBAR)
if(!do_after(user, 5 SECONDS, src))
to_chat(user, span_warning("You need to stand still to deconstruct the core!"))
return
if(default_deconstruction_crowbar(O))
return TRUE
if(panel_open && user.a_intent != INTENT_HARM)
if(!user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK))
return // Feedback in proc
Expand Down