... theres a var for that

This commit is contained in:
deathride58
2017-09-05 20:00:26 -04:00
parent a196eccb26
commit 830eef1207
+2 -6
View File
@@ -380,14 +380,10 @@
explanation_text = "Make sure nobody dies of alchohol poisoning."
/datum/objective/crew/bartender/responsibility/check_completion()
var/boozetypes = typesof(/datum/reagent/consumable/ethanol)
for(var/mob/living/carbon/human/H in GLOB.mob_list)
if(H.stat == DEAD && H.reagents)
if(H.stat == DEAD && H.drunkenness >= 80)
if(H.z == ZLEVEL_STATION || SSshuttle.emergency.shuttle_areas[get_area(H)])
for(boozetypes/A in H.reagents)
if(A)
if(A.volume >= 5)
return 0
return 0
return 1
/datum/objective/crew/assistant