From 045e68f1cf1cdcf58523c4cb0ea79c3d4565735a Mon Sep 17 00:00:00 2001 From: Giacomand Date: Sat, 14 Dec 2013 00:49:27 +0000 Subject: [PATCH] Added the friday the 13th event. It will basically cut the event frequency in half to simulate unluckiness. --- code/modules/events/holiday/friday13th.dm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 code/modules/events/holiday/friday13th.dm diff --git a/code/modules/events/holiday/friday13th.dm b/code/modules/events/holiday/friday13th.dm new file mode 100644 index 00000000000..ac28aed256d --- /dev/null +++ b/code/modules/events/holiday/friday13th.dm @@ -0,0 +1,18 @@ +// Basically, cut the event frequency in half to simulate unluckiness. + +/datum/round_event_control/fridaythethirteen + name = "Friday the 13th" + holidayID = "Friday the 13th" + typepath = /datum/round_event/fridaythethirteen + weight = -1 + max_occurrences = 1 + earliest_start = 0 + +/datum/round_event/fridaythethirteen/start() + //Very unlucky, cut the frequency of events in half. + events.frequency_lower /= 2 + events.frequency_upper /= 2 + +/datum/round_event/fridaythethirteen/announce() + for(var/mob/living/L in player_list) + L << "You are feeling unlucky today." \ No newline at end of file