From 6f47ac46d00d73aa5f305b64ff0be5b200e76483 Mon Sep 17 00:00:00 2001 From: deathride58 Date: Tue, 5 Sep 2017 14:51:37 -0400 Subject: [PATCH] hopefully fixes the compile errors --- code/citadel/cit_crewobjectives.dm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/citadel/cit_crewobjectives.dm b/code/citadel/cit_crewobjectives.dm index bee028c89f..8c8a3b8e4b 100644 --- a/code/citadel/cit_crewobjectives.dm +++ b/code/citadel/cit_crewobjectives.dm @@ -237,13 +237,13 @@ explanation_text = "Ensure at least [target_amount] living crew members have [chempath.name] in their bloodstream when the shift ends." /datum/objective/crew/chiefmedicalofficer/chems/check_completion() - var/gotchems = 0 + var/gotchems = target_amount for(var/mob/living/carbon/human/H in GLOB.mob_list) if(!H.stat == DEAD && H.reagents) if(H.z == ZLEVEL_STATION || SSshuttle.emergency.shuttle_areas[get_area(H)]) if(H.reagents.has_reagent(targetchem) - gotchems += 1 - if(gotchems >= target_amount) + gotchems-- + if(gotchems <= 0) return 1 else return 0 @@ -280,13 +280,13 @@ explanation_text = "Ensure at least [target_amount] living crew members have [chempath.name] in their bloodstream when the shift ends." /datum/objective/crew/chemist/chems/check_completion() - var/gotchems = 0 + var/gotchems = target_amount for(var/mob/living/carbon/human/H in GLOB.mob_list) if(!H.stat == DEAD && H.reagents) if(H.z == ZLEVEL_STATION || SSshuttle.emergency.shuttle_areas[get_area(H)]) if(H.reagents.has_reagent(targetchem) - gotchems += 1 - if(gotchems >= target_amount) + gotchems-- + if(gotchems <= 0) return 1 else return 0