Medibot healing fix (#21677)

When Medibots were switched to charcoal, which lacks and OD threshold,
they were made unable to use it for healing.
This commit is contained in:
GunHog
2016-11-22 16:24:18 -06:00
committed by KorPhaeron
parent a592e68f87
commit e3bbce4c6b
@@ -497,6 +497,8 @@
/mob/living/simple_animal/bot/medbot/proc/check_overdose(mob/living/carbon/patient,reagent_id,injection_amount)
var/datum/reagent/R = chemical_reagents_list[reagent_id]
if(!R.overdose_threshold) //Some chems do not have an OD threshold
return 0
var/current_volume = patient.reagents.get_reagent_amount(reagent_id)
if(current_volume + injection_amount > R.overdose_threshold)
return 1