From 6313f24c6a9f9b6c4cf2e1251af70dc0c121e773 Mon Sep 17 00:00:00 2001 From: deathride58 Date: Tue, 5 Sep 2017 01:57:00 -0400 Subject: [PATCH] adds petsplosion for assistants --- code/citadel/cit_crewobjectives.dm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/code/citadel/cit_crewobjectives.dm b/code/citadel/cit_crewobjectives.dm index 2c3b0d8524..e63cc22e6b 100644 --- a/code/citadel/cit_crewobjectives.dm +++ b/code/citadel/cit_crewobjectives.dm @@ -247,3 +247,27 @@ /* CARGO OBJECTIVES */ /* CIVILLIAN OBJECTIVES */ + +/datum/objective/crew/assistant + +/datum/objective/crew/assistant/petsplosion + explanation_text = "Ensure there are at least (If you see this, yell on citadels discord in the codebus discussion channel) animals on the station by the end of the shift. Anthropomorphic animals do not count." + +/datum/objective/crew/assistant/petsplosion/New() + . = ..() + target_amount = rand(5,75) + update_explanation_text() + +/datum/objective/crew/assistant/petsplosion/update_explanation_text() + . = ..() + explanation_text = "Ensure there are at least [target_amount] animals on the station by the end of the shift. Anthropomorphic animals do not count." + +/datum/objective/crew/assistant/petsplosion/check_completion() + var/petcount = target_amount + for(var/mob/living/simple_animal/pet/P in world) + if(!P.stat == DEAD) + petcount-- + if(petcount <= 0) + return 1 + else + return 0