mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
## About The Pull Request This PR adds a simple holiday spawner type that can be used for objects that are only spawned if the holiday they're associated with is being celebrated. Right now it has three subtypes, all related to the kitchen (liquid ingredient, powdered ingredient, meat ingredient). The involved holidays are the fictional tiziran and mothic festivities Atrakor's Might and Fleet Day. Extra stuff is also spawned on Bee Day and Beer Day. On Vegan Day, the monkey meat slabs in the meat fridges are replaced with plant-based meat slabs (killer tomato slices and pod people meat, plus veggies) and the fridge is renamed from "meat fridge" to "vegan fridge". This PR also adds a few more holiday-specific mail objects such as Speak-Like-a-Pirate Day, Fleet Day, Atrakor's Might, Chernobyl's Disaster Anniversary (it's just a geiger counter), Monkey Day and Draconic Language Day. EDIT: I've decided to make the bar backroom beer keg into a spawner that will spawn special kegs on specific days (otherwise it's a 1 in 25 chance). These kegs can contain drinks a little more refined than the average beer keg. Also it comes with a resprite of kegs because the old one was starting to look a little ass compared to other reagent dispensers. ## Why It's Good For The Game For being fictional festivities revolving around food and culture, and despite the lot of recipes for moths and lizard people, we aren't offering anything to chef players to let them cook said recipes beside what's given on any bog-generic round. This is a step toward a slightly less lackluster implementation of those festivities and recipes into the game. Also chance for cooler kegs for the bartender. ## Changelog 🆑 add: The kitchen fridges may have additional ingredients on certain holidays, in particular Atrakor's Might (lizardpeople) and Fleet Day (mothpeople), and Vegan Day. add: Added a few more holyday-specific mail items. add: Replaces the beer keg in the bar backroom with special kegs on St. Patrick's Day, Beer Day and Speak-Like-a-Pirate day. On any other day, there's a chance that the beer keg will be replaced with one containing whiskey or rum, or in rare cases, one of those special kegs. imageadd: resprited the keg as well. /🆑
96 lines
3.4 KiB
Plaintext
96 lines
3.4 KiB
Plaintext
///A holiday lasting one day only that falls on the nth weekday in a month i.e. 3rd Wednesday of February.
|
|
/datum/holiday/nth_week
|
|
///Nth weekday of type begin_weekday in begin_month to start on (1 to 5).
|
|
var/begin_week = 1
|
|
///Weekday of begin_week to start on.
|
|
var/begin_weekday = MONDAY
|
|
///Nth weekday of type end_weekday in end_month to end on (1 to 5, defaults to begin_week).
|
|
var/end_week
|
|
///Weekday of end_week to end on (defaults to begin_weekday).
|
|
var/end_weekday
|
|
|
|
/datum/holiday/nth_week/shouldCelebrate(dd, mm, yy, ddd)
|
|
// Does not support holidays across multiple years..
|
|
if (!end_month)
|
|
end_month = begin_month
|
|
if (!end_week)
|
|
end_week = begin_week
|
|
if (!end_weekday)
|
|
end_weekday = begin_weekday
|
|
// check that it's not past the last day
|
|
end_day = weekday_to_iso(end_weekday) - first_day_of_month(yy, end_month)
|
|
if (end_day < 0)
|
|
end_day += 7
|
|
end_day += (end_week - 1) * 7 + 1
|
|
// check that it's not past the first day
|
|
begin_day = weekday_to_iso(begin_weekday) - first_day_of_month(yy, begin_month)
|
|
if (begin_day < 0)
|
|
begin_day += 7
|
|
begin_day += (begin_week - 1) * 7 + 1
|
|
return ..(dd, mm, yy, ddd)
|
|
|
|
/datum/holiday/nth_week/thanksgiving
|
|
name = "Thanksgiving in the United States"
|
|
timezones = list(TIMEZONE_EST, TIMEZONE_CST, TIMEZONE_MST, TIMEZONE_PST, TIMEZONE_AKST, TIMEZONE_HST)
|
|
begin_week = 4
|
|
begin_month = NOVEMBER
|
|
begin_weekday = THURSDAY
|
|
holiday_hat = /obj/item/clothing/head/hats/tophat //This is the closest we can get to a pilgrim's hat
|
|
|
|
/datum/holiday/nth_week/thanksgiving/canada
|
|
name = "Thanksgiving in Canada"
|
|
begin_week = 2
|
|
begin_month = OCTOBER
|
|
begin_weekday = MONDAY
|
|
|
|
/datum/holiday/nth_week/mother
|
|
name = "Mother's Day"
|
|
begin_week = 2
|
|
begin_month = MAY
|
|
begin_weekday = SUNDAY
|
|
|
|
/datum/holiday/nth_week/mother/greet()
|
|
return "Happy Mother's Day in most of the Americas, Asia, and Oceania!"
|
|
|
|
/datum/holiday/nth_week/father
|
|
name = "Father's Day"
|
|
begin_week = 3
|
|
begin_month = JUNE
|
|
begin_weekday = SUNDAY
|
|
|
|
/datum/holiday/nth_week/beer
|
|
name = BEER_DAY
|
|
begin_week = 1
|
|
begin_month = AUGUST
|
|
begin_weekday = FRIDAY
|
|
|
|
/datum/holiday/beer/get_station_name()
|
|
return pick("Stout","Porter","Lager","Ale","Malt","Bock","Doppelbock","Hefeweizen","Pilsner","IPA","Lite") //I'm sorry for the last one
|
|
|
|
/datum/holiday/nth_week/moth
|
|
name = MOTH_WEEK
|
|
begin_week = 3
|
|
end_week = 4
|
|
begin_month = JULY
|
|
begin_weekday = SATURDAY
|
|
end_weekday = SUNDAY
|
|
|
|
//National Moth Week falls on the last full week of July, including the saturday and sunday before. See http://nationalmothweek.org/ for precise tracking.
|
|
/datum/holiday/nth_week/moth/shouldCelebrate(dd, mm, yyyy, ddd)
|
|
if(first_day_of_month(yyyy, mm) >= 5) //Friday or later start of the month means week 5 is a full week.
|
|
begin_week += 1
|
|
end_week += 1
|
|
return ..(dd, mm, yyyy, ddd)
|
|
|
|
/datum/holiday/nth_week/moth/get_station_name()
|
|
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/nth_week/ice_cream
|
|
name = ICE_CREAM_DAY
|
|
begin_week = 3
|
|
begin_month = JULY
|
|
begin_weekday = SUNDAY
|
|
|
|
/datum/holiday/nth_week/ice_cream/get_station_name()
|
|
return pick("Ice Cream", "Gelato", "Semifreddo", "Cornuto", "Soft Serve", "Cone", "Ice", "Cream", "I Scream", "Parfait", "Straccciatella", "Sherbet", "Snow", "Affogato", "Mochi", "Tartufo", "Sundae", "Neapolitan")
|