mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +01:00
Borg Upgrades (#6395)
This commit is contained in:
@@ -249,6 +249,8 @@
|
||||
return 1
|
||||
|
||||
//DRONE LIFE/DEATH
|
||||
/mob/living/silicon/robot/drone/process_level_restrictions()
|
||||
return
|
||||
|
||||
//For some goddamn reason robots have this hardcoded. Redefining it for our fragile friends here.
|
||||
/mob/living/silicon/robot/drone/updatehealth()
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
process_killswitch()
|
||||
process_locks()
|
||||
process_queued_alarms()
|
||||
process_level_restrictions()
|
||||
update_canmove()
|
||||
|
||||
/mob/living/silicon/robot/proc/clamp_values()
|
||||
@@ -332,6 +333,18 @@
|
||||
else canmove = 1
|
||||
return canmove
|
||||
|
||||
/mob/living/silicon/robot/proc/process_level_restrictions()
|
||||
//If they are on a player level -> abort
|
||||
if (src.z in current_map.player_levels)
|
||||
return
|
||||
//If they are on centcom -> abort
|
||||
if (istype(get_area(src), /area/centcom) || istype(get_area(src), /area/shuttle/escape) || istype(get_area(src), /area/shuttle/arrival))
|
||||
return
|
||||
//Make sure they should not get blown
|
||||
if (lockcharge || scrambledcodes || emagged)
|
||||
return
|
||||
self_destruct(TRUE)
|
||||
|
||||
/mob/living/silicon/robot/update_fire()
|
||||
cut_overlay(image("icon"='icons/mob/OnFire.dmi', "icon_state"="Standing"))
|
||||
if(on_fire)
|
||||
|
||||
@@ -1016,8 +1016,12 @@
|
||||
to_chat(cleaned_human, "<span class='warning'>[src] cleans your face!</span>")
|
||||
return
|
||||
|
||||
/mob/living/silicon/robot/proc/self_destruct()
|
||||
say("WARNING: Self-destruct initiated. Unit [src] will self destruct in five seconds.")
|
||||
/mob/living/silicon/robot/proc/self_destruct(var/anti_theft=FALSE)
|
||||
if(anti_theft)
|
||||
say("WARNING: Removal from NanoTrasen property detected. Anti-Theft mode activated. Unit [src] will self destruct in five seconds.")
|
||||
to_chat(src,"<span class='warning'>All databases containing information related to NanoTrasen have been wiped!</span>")
|
||||
else
|
||||
say("WARNING: Self-destruct initiated. Unit [src] will self destruct in five seconds.")
|
||||
lockcharge = 1
|
||||
update_canmove()
|
||||
sleep(20)
|
||||
|
||||
Reference in New Issue
Block a user