Skip to content

Commit

Permalink
Fixes excel redirector again (#8519)
Browse files Browse the repository at this point in the history
* Update redirector.dm

* Update redirector.dm
  • Loading branch information
MLGTASTICa committed Aug 18, 2024
1 parent 40715c9 commit 06a3b8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/game/machinery/excelsior/redirector.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/obj/machinery/excelsior_redirector/attackby(obj/item/I, mob/living/user)
if(istool(I))
if(rebootTimer)
if(redirectTimer)
to_chat(user, SPAN_NOTICE("You can't unanchor \the [src] whilst it's running!"))
return
if(I.get_tool_quality(QUALITY_BOLT_TURNING))
if(!anchored)
var/area/ar = get_area(src)
Expand Down Expand Up @@ -113,6 +114,7 @@
return
to_chat(user, SPAN_NOTICE("You succesfully reboot \the [src]. Your hands are no longer moving on their own."))
deltimer(rebootTimer)
rebootTimer = null
var/datum/faction/excelsior/commies = get_faction_by_id(FACTION_EXCELSIOR)
for (var/datum/antagonist/A in commies.members)
to_chat(A.owner.current, SPAN_EXCEL_NOTIF("\The [src] has been rebooted by [user]. It will need another reboot in 3 minutes."))
Expand Down Expand Up @@ -151,8 +153,10 @@

/obj/machinery/excelsior_redirector/proc/stopRedirecting()
deltimer(redirectTimer)
redirectTimer = null
if(rebootTimer)
deltimer(rebootTimer)
rebootTimer = null
SSticker.excelsior_hijacking = 0
var/decl/security_state/security_state = decls_repository.get_decl(GLOB.maps_data.security_state)
security_state.set_security_level(oldSecurityLevel, force_change = TRUE)
Expand Down

0 comments on commit 06a3b8a

Please sign in to comment.