From d9c2f7a5a40754bfaccf08c54716e94efdfce1f8 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Fri, 13 Nov 2020 03:08:38 +0100 Subject: [PATCH] [MIRROR] Old Medibot should now heal things besides brute (#1682) * Old Medibot should now heal things besides brute (#54907) Old medibot had a heal_threshold of 0, so all the heal_threshold checks will always evaluate to TRUE, so the medbots always get stuck in brute healing. * Old Medibot should now heal things besides brute Co-authored-by: prodirus <44090982+prodirus@users.noreply.github.com> --- .../mob/living/simple_animal/bot/medbot.dm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/code/modules/mob/living/simple_animal/bot/medbot.dm b/code/modules/mob/living/simple_animal/bot/medbot.dm index 36af11d4f35..ba201216052 100644 --- a/code/modules/mob/living/simple_animal/bot/medbot.dm +++ b/code/modules/mob/living/simple_animal/bot/medbot.dm @@ -432,16 +432,16 @@ //They're injured enough for it! var/list/treat_me_for = list() - if(C.getBruteLoss() >= heal_threshold) + if(C.getBruteLoss() > heal_threshold) treat_me_for += BRUTE - if(C.getOxyLoss() >= (5 + heal_threshold)) + if(C.getOxyLoss() > (5 + heal_threshold)) treat_me_for += OXY - if(C.getFireLoss() >= heal_threshold) + if(C.getFireLoss() > heal_threshold) treat_me_for += BURN - if(C.getToxLoss() >= heal_threshold) + if(C.getToxLoss() > heal_threshold) treat_me_for += TOX if(damagetype_healer in treat_me_for) @@ -513,16 +513,16 @@ var/treatment_method var/list/potential_methods = list() - if(C.getBruteLoss() >= heal_threshold) + if(C.getBruteLoss() > heal_threshold) potential_methods += BRUTE - else if(C.getFireLoss() >= heal_threshold) + if(C.getFireLoss() > heal_threshold) potential_methods += BURN - else if(C.getOxyLoss() >= (5 + heal_threshold)) + if(C.getOxyLoss() > (5 + heal_threshold)) potential_methods += OXY - else if(C.getToxLoss() >= heal_threshold) + if(C.getToxLoss() > heal_threshold) potential_methods += TOX for(var/i in potential_methods)