From 03f172eff87686a0404dee9c335d2e848d624529 Mon Sep 17 00:00:00 2001 From: lass9030 Date: Thu, 7 Feb 2019 20:04:39 +0100 Subject: [PATCH] stat, change way drone dies --- code/modules/mob/living/silicon/robot/drone/drone.dm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/living/silicon/robot/drone/drone.dm b/code/modules/mob/living/silicon/robot/drone/drone.dm index 2ec1505741b..80014c44f8b 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone.dm @@ -99,7 +99,7 @@ /mob/living/silicon/robot/drone/update_icons() overlays.Cut() - if(stat == 0) + if(stat == CONSCIOUS) overlays += "eyes-[icon_state]" else overlays -= "eyes" @@ -124,7 +124,7 @@ else if(istype(W, /obj/item/card/id)||istype(W, /obj/item/pda)) - if(stat == 2) + if(stat == DEAD) if(!config.allow_drone_spawn || emagged || health < -35) //It's dead, Dave. to_chat(user, "The interface is fried, and a distressing burned smell wafts from the robot's interior. You're not rebooting this one.") @@ -166,7 +166,7 @@ ..() /mob/living/silicon/robot/drone/emag_act(user as mob) - if(!client || stat == 2) + if(!client || stat == DEAD) to_chat(user, "There's not much point subverting this heap of junk.") return @@ -223,12 +223,12 @@ /mob/living/silicon/robot/drone/death(gibbed) . = ..(gibbed) - ghostize(can_reenter_corpse = 0) + adjustBruteLoss(health) //CONSOLE PROCS /mob/living/silicon/robot/drone/proc/law_resync() - if(stat != 2) + if(stat != DEAD) if(emagged) to_chat(src, "You feel something attempting to modify your programming, but your hacked subroutines are unaffected.") else @@ -237,7 +237,7 @@ show_laws() /mob/living/silicon/robot/drone/proc/shut_down(force=FALSE) - if(stat == 2) + if(stat == DEAD) return if(emagged && !force)