From 5801f6211f62a64ef921915135634e5973947ad9 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Tue, 18 Jul 2017 18:45:30 -0500 Subject: [PATCH] Cyborgs regenerate oxygen damage, and can heal toxin damage with cable coils --- code/modules/mob/living/silicon/robot/examine.dm | 5 +++-- code/modules/mob/living/silicon/robot/life.dm | 1 + code/modules/mob/living/silicon/robot/robot.dm | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/silicon/robot/examine.dm b/code/modules/mob/living/silicon/robot/examine.dm index f14665e10c..ca276b60bd 100644 --- a/code/modules/mob/living/silicon/robot/examine.dm +++ b/code/modules/mob/living/silicon/robot/examine.dm @@ -12,8 +12,9 @@ msg += "It looks slightly dented.\n" else msg += "It looks severely dented!\n" - if (src.getFireLoss()) - if (src.getFireLoss() < maxHealth*0.5) + if (getFireLoss() || getToxLoss()) + var/overall_fireloss = getFireLoss() + getToxLoss() + if (overall_fireloss < maxHealth * 0.5) msg += "It looks slightly charred.\n" else msg += "It looks severely burnt and heat-warped!\n" diff --git a/code/modules/mob/living/silicon/robot/life.dm b/code/modules/mob/living/silicon/robot/life.dm index fba4f50080..aab1f204f6 100644 --- a/code/modules/mob/living/silicon/robot/life.dm +++ b/code/modules/mob/living/silicon/robot/life.dm @@ -6,6 +6,7 @@ return ..() + adjustOxyLoss(-10) //we're a robot! handle_robot_hud_updates() handle_robot_cell() diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index be66f58d6d..acd93f6843 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -393,13 +393,14 @@ else if(istype(W, /obj/item/stack/cable_coil) && wiresexposed) user.changeNext_move(CLICK_CD_MELEE) var/obj/item/stack/cable_coil/coil = W - if (getFireLoss() > 0) + if (getFireLoss() > 0 || getToxLoss() > 0) if(src == user) to_chat(user, "You start fixing yourself...") if(!do_after(user, 50, target = src)) return if (coil.use(1)) adjustFireLoss(-30) + adjustToxLoss(-30) updatehealth() user.visible_message("[user] has fixed some of the burnt wires on [src].", "You fix some of the burnt wires on [src].") else