[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>
This commit is contained in:
SkyratBot
2020-11-13 02:08:38 +00:00
committed by GitHub
co-authored by prodirus
parent 3e2d00f107
commit d9c2f7a5a4
@@ -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)