mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
[MIRROR] Adds shuttle hijack logging. (#1595)
* Adds shuttle hijack logging. (#54827) Adds game logging and sends an admin message on shuttle hijack attempts. Simples! * Adds shuttle hijack logging. Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
@@ -211,9 +211,15 @@
|
||||
hijack_hacking = TRUE
|
||||
to_chat(user, "<span class='boldwarning'>You [SSshuttle.emergency.hijack_status == NOT_BEGUN? "begin" : "continue"] to override [src]'s navigational protocols.</span>")
|
||||
say("Software override initiated.")
|
||||
var/turf/console_hijack_turf = get_turf(src)
|
||||
message_admins("[src] is being overriden for hijack by [ADMIN_LOOKUPFLW(user)] in [ADMIN_VERBOSEJMP(console_hijack_turf)]")
|
||||
log_game("[src] is being overriden for hijack by [key_name(user)] at [AREACOORD(src)]")
|
||||
. = FALSE
|
||||
if(do_after(user, hijack_stage_time * (1 / user.mind.get_hijack_speed()), target = src))
|
||||
increase_hijack_stage()
|
||||
console_hijack_turf = get_turf(src)
|
||||
message_admins("[src] has had its hijack stage increased to stage [SSshuttle.emergency.hijack_status] out of [HIJACKED] by [ADMIN_LOOKUPFLW(user)] in [ADMIN_VERBOSEJMP(console_hijack_turf)]")
|
||||
log_game("[src] has had its hijack stage increased to stage [SSshuttle.emergency.hijack_status] out of [HIJACKED] by [key_name(user)] at [AREACOORD(src)]")
|
||||
. = TRUE
|
||||
to_chat(user, "<span class='notice'>You reprogram some of [src]'s programming, putting it on timeout for [hijack_stage_cooldown/10] seconds.</span>")
|
||||
hijack_hacking = FALSE
|
||||
|
||||
Reference in New Issue
Block a user