mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user