From baa1e2cc1baa6e8c4b0f09997ce730e7f50dc4d0 Mon Sep 17 00:00:00 2001 From: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com> Date: Sat, 28 Jul 2018 18:49:10 -0700 Subject: [PATCH] Add moth week as a holiday (#39377) * Add moth week as a holiday * Station prefixes * Dynamic date --- code/modules/holiday/holidays.dm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/code/modules/holiday/holidays.dm b/code/modules/holiday/holidays.dm index 701167c8530..e72430f74f7 100644 --- a/code/modules/holiday/holidays.dm +++ b/code/modules/holiday/holidays.dm @@ -205,7 +205,7 @@ name = "UFO Day" begin_day = 2 begin_month = JULY - drone_hat = /obj/item/clothing/mask/facehugger/dead + drone_hat = /obj/item/clothing/mask/facehugger/dead /datum/holiday/UFO/getStationPrefix() //Is such a thing even possible? return pick("Ayy","Truth","Tsoukalos","Mulder") //Yes it is! @@ -366,6 +366,15 @@ begin_month = JUNE begin_weekday = SUNDAY +/datum/holiday/moth + name = "Moth Week" + +/datum/holiday/moth/shouldCelebrate(dd, mm, yy, ww, ddd) //National Moth Week falls on the last full week of July + return mm == JULY && (ww == 4 || (ww == 5 && ddd == SUNDAY)) + +/datum/holiday/moth/getStationPrefix() + return pick("Mothball","Lepidopteran","Lightbulb","Moth","Giant Atlas","Twin-spotted Sphynx","Madagascan Sunset","Luna","Death's Head","Emperor Gum","Polyphenus","Oleander Hawk","Io","Rosy Maple","Cecropia","Noctuidae","Giant Leopard","Dysphania Militaris","Garden Tiger") + /datum/holiday/ramadan name = "Start of Ramadan"