This commit is contained in:
deathride58
2017-09-06 16:46:28 -04:00
parent 4bcb9f1629
commit 49152d4bdb
+9 -2
View File
@@ -287,7 +287,7 @@
else
return 0
/datum/objective/crew/chemist/druglord //ported from hippie,
/datum/objective/crew/chemist/druglord //ported from old Hippie with adjustments
var/targetchem = "none"
var/datum/reagent/chempath
explanation_text = "Have at least (somethin broke here) pills containing (report this on the development discussion channel of citadel's discord) when the shift ends."
@@ -307,9 +307,16 @@
explanation_text = "Have at least [target_amount] pills containing [initial(chempath.name)] when the shift ends."
/datum/objective/crew/chemist/druglord/check_completion()
var/pillcount = target_amount
if(owner.current)
if(owner.current.contents)
for(var/item/reagent_containers/pill/P in owner.current.get_contents())
if(P.reagents.has_reagent(targetchem))
pillcount--
if(pillcount <= 0)
return 1
else
return 0
/datum/objective/crew/medicaldoctor