mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-20 19:49:39 +01:00
+16








4b4e9dff1d
## What's going on here Kept you waitin huh! This pr resprites most all walls, windows and other "wall adjacent" things to a 3/4th perspective, technical term is "tall" walls (we are very smart). If you're trying to understand the technical details here, much of the "rendering tech" is built off the idea of split-vis. Basically, split a sprite up and render it on adjacent turfs, to prevent seeing "through" walls/doors, and to support seeing "edges" without actually seeing the atom itself. Most of the rest of it is pipelining done to accommodate how icons are cut. ## Path To Merge Almost* all sprites and code is done at this point. There are some things missing both on and off the bounty list, but that will be the case forever unless we force upstream (you guys) to stop adding new shit that doesn't fit the style. I plan on accepting and integrating prs to the current working repo <https://github.com/wall-nerds/wallening> up until a merge, to make contribution simpler and allow things like bounties to close out more easily This pr is quite bulky, even stripping away map changes it's maybe 7000 LOC (We have a few maps that were modified with UpdatePaths, I am also tentatively pring our test map, for future use.) This may inhibit proper review, although that is part of why I am willing to make it despite my perfectionism. Apologies in advance. Due to the perspective shift, a lot of mapping work is going to need to be done at some point. This comes in varying levels of priority. Many wallmounts are offset by hand, some are stuck in the wall/basically cannot be placed on the east/west/north edges of walls (posters), some just don't look great good in their current position. Tests are currently a minor bit yorked, I thought it was more important to get this up then to clean them fully. ## What does it look like?       ## Credits <details> <summary>Historical Mumbojumbo</summary> I am gonna do my best to document how this project came to be. I am operating off third party info and half remembered details, so if I'm wrong please yell at me. This project started sometime in late 2020, as a product of Rohesie trying to integrate and make easier work from Mojave Sun (A recently defunct fallout server) with /tg/. Mojave Sun (Apparently this was LITERALLY JUST infrared baron, that man is insane) was working with tall walls, IE walls that are 48px tall instead of the normal 32. This was I THINK done based off a technical prototype from aao7 proving A it was possible and B it didn't look like dogwater. This alongside oranges begging the art team for 3/4th walls (he meant TGMC style) lead to Rohesie bringing on contributors from general /tg/, including actionninja who would eventually take over as technical lead and Kryson, who would define /tg/'s version of the artstyle. Much of the formative aspects of this project are their work. The project was coming along pretty well for a few months, but ran into serious technical issues with `SIDE_MAP`, a byond map_format that allows for simpler 3/4th rendering. Due to BULLSHIT I will not detail here, the map format caused issues both at random with flickering and heavily with multiz. Concurrent with this, action stepped down after hacking out the rendering tech and starting work on an icon cutter that would allow for simpler icon generation, leaving ninjanomnom to manage the project. Some time passed, and the project stalled out due to the technical issues. Eventually I built a test case for the issues we had with `SIDE_MAP` and convinced lummox jr (byond's developer) to explain how the fuckin thing actually worked. This understanding made the project theoretically possible, but did not resolve the problems with multi-z. Resolving those required a full rework of how rendering like, worked. I (alongside tattle) took over project development from ninjanomnom at this time, and started work on Plane Cube (#69115), which when finished would finally make the project technically feasible. The time between then and now has been slow, progressive work. Many many artists and technical folks have dumped their time into this (as you can see from the credits). I will get into this more below but I would like to explicitly thank (in no particular order) tattle, draco, arcanemusic, actionninja, imaginos, viro and kylerace for keeping the project alive in this time period. I would have curled up into a ball and died if I had to do this all myself, your help has been indispensable. </details> <details> <summary>Detailed Credits</summary> Deep apologies if I have forgotten someone (I am sure I have, if someone is you please contact me). I've done my best to collate from the git log/my memory. Thanks to (In no particular order): Raccoff: Being funny to bully, creating threshold decals for airlocks aa07: (I think) inspiring the project ActionNinja: Laying the technical rock we build off, supporting me despite byond trying to kill him, building the icon cutter that makes this possible ArcaneMusic: Artistic and technical work spanning from the project's start to literally today, being a constant of motivation and positivity. I can't list all the stuff he's done Armhulen: Key rendering work (he's the reason thindows render right), an upbeat personality and a kick in the ass. Love you arm Azlan: Damn cool sprites, consistently Ben10Omintrix: You know ben showed up just to make basic mobs work, he's just fuckin like that man BigBimmer: A large amount of bounty work, alongside just like, throwing shit around. An absolute joy to work with Capsandi: Plaques, blastdoors, artistic work early on CapybaraExtravagante: Rendering work on wall frames Draco: SO MUCH STUFF. Much of the spritework done over the past two years is his, constantly engaged and will take on anything. I would have given up if not for you Floyd: Early rendering work, so early I don't even know the details. Enjoy freedom brother Imaginos16: A guiding hand through the middle years, handled much of the sprite review and contribution for a good bit there Iamgoofball: A dedication to detail and aesthetic goals, spends a lot of effort dissecting feedback with a focus on making things as good as they can be at the jump Infrared: Part of the impetus for the project, made all the xenomorph stuff in the MS style Jacquerel: A bunch of little upkeep/technical things, has done so much sprite gruntwork (WHY ARE THERE SO MANY PAINTING TYPES) Justice12354: Solved a bunch of error sprites (and worked out how to actually make prs to the project) Thanks bro! Kryson: Built the artstyle of the project, carrying on for years even when it was technically dying, only stopping to casually beat cancer. So much of our style and art is Kryson KylerAce: Handled annoying technical stuff for me, built window frame logic and fully got rid of grilles. LemonInTheDark: Rendering dirtywork, project management and just so much fucking time in dreammaker editing sprites Meyhazah: Table buttons, brass windows and alll the old style doors Mothblocks: Has provided constant support, gave me a deadline and motivation, erased worries about "it not being done", gave just SO much money to fill in the critical holes in sprites. Thanks moth MTandi: Contributed art despite his own blackjack and hookers club opening right down the road, I'm sorry I rolled over some of your sprites man I wish we had finished earlier Ninjanomnomnom: Consulted on gags issues, kept things alive through some truly shit times oranges: This is his fault Rohesie: Organized the effort, did much of the initial like, proof of concept stuff. I hope you're doin well whatever you're up to. san7890: Consulting on mapper UX/design problems, being my pet mapper Senefi: Offsetting items with a focus on detail/the more unused canidates SimplyLogan: Detailed map work and mapper feedback, personally very kind even if we end up talking past each other sometimes. Thank you! SpaceSmithers: Just like, random mapping support out of nowhere, and bein a straight up cool dude Tattle: A bunch of misc project management stuff, organizing the discord, managing the test server, dealing with all the mapping bullshit for me, being my backup in case of bus. I know you think you didn't do much but your presence and work have been a great help Thunder12345: Came out of nowhere and just so much of the random bounties, I'm kind of upset about how much we paid him Time-Green: I hooked him in by fucking with stuff he made and now he's just doin shit, thanks for helping out man! Twaticus: Provided artistic feedback and authority for my poor feeble coder brain, believed in the project for YEARS, was a constant source of ❤️ and affirmation unit0016: I have no god damn idea who she is, popped out of nowhere on the github one day and dealt with a bunch of annoying rendering/refactoring. Godspeed random furry thank you for all your effort and issue reports Viro: A bunch of detailed spriting moving towards 3/4ths, both on and off the wallening fork. If anyone believed this project would be done, it was viro Wallem: Artistic review and consultation, was my go-to guy for a long time when the other two spritetainers were inactive Waltermeldon: Cracked out a bunch of rendering work, he's the reason windows look like not dogwater. Alongside floyd and action spent a TON of time speaking to lummox/unearthing how byond rendering worked trying to make this thing happen ZephyrTFA: Added directional airlock helpers, dealt with a big fuckin bugaboo that was living in my brain like it was nothing. Love you brother And finally: The Mojave Sun development team. They provided a testbed for the idea, committed hundreds and hundreds of hours to the artstyle, and were a large reason we caught issues early enough to meaningfully deal with them. Your work is a testament to what longterm effort and deep detailed care produce. I hope you're doing well whatever you're up to. Go out with a bang! </details> ## Changelog 🆑 Raccoff, aa07, ActionNinja, ArcaneMusic, Armhulen, Azlan, Ben10Omintrix, BigBimmer, Capsandi, CapybaraExtravagante, Draco, Floyd, Iamgoofball, Imaginos16, Infrared, Jacquerel, Justice12354, Kryson, KylerAce, LemonInTheDark, Meyhazah, Mothblocks, MTandi, Ninjanomnom, oranges, Rohesie, Runi-c, san7890, Senefi, SimplyLogan, SomeAngryMiner, SpaceSmithers, Tattle, Thunder12345, Time-Green, Twaticus, unit0016, Viro, Waltermeldon, ZephyrTFA with thanks to the Mojave Sun team! add: Resprites or offsets almost all "tall" objects in the game to match a 3/4ths perspective add: Bunch of rendering mumbo jumbo to make said 3/4ths perspective work /🆑 --------- Co-authored-by: Jacquerel <hnevard@gmail.com> Co-authored-by: san7890 <the@san7890.com> Co-authored-by: = <stewartareid@outlook.com> Co-authored-by: Capsandi <dansullycc@gmail.com> Co-authored-by: ArcaneMusic <hero12290@aol.com> Co-authored-by: tattle <66640614+dragomagol@users.noreply.github.com> Co-authored-by: SomeAngryMiner <53237389+SomeAngryMiner@users.noreply.github.com> Co-authored-by: KylerAce <kylerlumpkin1@gmail.com> Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com> Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com> Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com> Co-authored-by: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com> Co-authored-by: Runi-c <5150427+Runi-c@users.noreply.github.com> Co-authored-by: Roryl-c <5150427+Roryl-c@users.noreply.github.com> Co-authored-by: tattle <article.disaster@gmail.com> Co-authored-by: Senefi <20830349+Peliex@users.noreply.github.com> Co-authored-by: Justice <42555530+Justice12354@users.noreply.github.com> Co-authored-by: BluBerry016 <50649185+unit0016@users.noreply.github.com> Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: SimplyLogan <47579821+loganuk@users.noreply.github.com> Co-authored-by: Emmett Gaines <ninjanomnom@gmail.com> Co-authored-by: Rob Bailey <github@criticalaction.net> Co-authored-by: MMMiracles <lolaccount1@hotmail.com>
919 lines
26 KiB
Plaintext
919 lines
26 KiB
Plaintext
/datum/holiday
|
|
///Name of the holiday itself. Visible to players.
|
|
var/name = "If you see this the holiday calendar code is broken"
|
|
|
|
///What day of begin_month does the holiday begin on?
|
|
var/begin_day = 1
|
|
///What month does the holiday begin on?
|
|
var/begin_month = 0
|
|
/// What day of end_month does the holiday end? Default of 0 means the holiday lasts a single.
|
|
var/end_day = 0
|
|
/// What month does the holiday end on?
|
|
var/end_month = 0
|
|
/// for christmas neverending, or testing. Forces a holiday to be celebrated.
|
|
var/always_celebrate = FALSE
|
|
/// Held variable to better calculate when certain holidays may fall on, like easter.
|
|
var/current_year = 0
|
|
/// How many years are you offsetting your calculations for begin_day and end_day on. Used for holidays like easter.
|
|
var/year_offset = 0
|
|
///Timezones this holiday is celebrated in (defaults to three timezones spanning a 50 hour window covering all timezones)
|
|
var/list/timezones = list(TIMEZONE_LINT, TIMEZONE_UTC, TIMEZONE_ANYWHERE_ON_EARTH)
|
|
///If this is defined, drones/assistants without a default hat will spawn with this item in their head clothing slot.
|
|
var/obj/item/holiday_hat
|
|
///When this holiday is active, does this prevent mail from arriving to cargo? Try not to use this for longer holidays.
|
|
var/mail_holiday = FALSE
|
|
var/poster_name = "generic celebration poster"
|
|
var/poster_desc = "A poster for celebrating some holiday. Unfortunately, its unfinished, so you can't see what the holiday is."
|
|
var/poster_icon = "holiday_unfinished"
|
|
/// Color scheme for this holiday
|
|
var/list/holiday_colors
|
|
/// The default pattern of the holiday, if the requested pattern is null.
|
|
var/holiday_pattern = PATTERN_DEFAULT
|
|
|
|
// This proc gets run before the game starts when the holiday is activated. Do festive shit here.
|
|
/datum/holiday/proc/celebrate()
|
|
if(mail_holiday)
|
|
SSeconomy.mail_blocked = TRUE
|
|
return
|
|
|
|
// When the round starts, this proc is ran to get a text message to display to everyone to wish them a happy holiday
|
|
/datum/holiday/proc/greet()
|
|
return "Have a happy [name]!"
|
|
|
|
// Returns special prefixes for the station name on certain days. You wind up with names like "Christmas Object Epsilon". See new_station_name()
|
|
/datum/holiday/proc/getStationPrefix()
|
|
//get the first word of the Holiday and use that
|
|
var/i = findtext(name, " ")
|
|
return copytext(name, 1, i)
|
|
|
|
// Return 1 if this holidy should be celebrated today
|
|
/datum/holiday/proc/shouldCelebrate(dd, mm, yyyy, ddd)
|
|
if(always_celebrate)
|
|
return TRUE
|
|
|
|
if(!end_day)
|
|
end_day = begin_day
|
|
if(!end_month)
|
|
end_month = begin_month
|
|
if(end_month > begin_month) //holiday spans multiple months in one year
|
|
if(mm == end_month) //in final month
|
|
if(dd <= end_day)
|
|
return TRUE
|
|
|
|
else if(mm == begin_month)//in first month
|
|
if(dd >= begin_day)
|
|
return TRUE
|
|
|
|
else if(mm in begin_month to end_month) //holiday spans 3+ months and we're in the middle, day doesn't matter at all
|
|
return TRUE
|
|
|
|
else if(end_month == begin_month) // starts and stops in same month, simplest case
|
|
if(mm == begin_month && (dd in begin_day to end_day))
|
|
return TRUE
|
|
|
|
else // starts in one year, ends in the next
|
|
if(mm >= begin_month && dd >= begin_day) // Holiday ends next year
|
|
return TRUE
|
|
if(mm <= end_month && dd <= end_day) // Holiday started last year
|
|
return TRUE
|
|
|
|
return FALSE
|
|
|
|
/// Procs to return holiday themed colors for recoloring atoms
|
|
/datum/holiday/proc/get_holiday_colors(atom/thing_to_color, pattern = holiday_pattern)
|
|
if(!holiday_colors)
|
|
return
|
|
switch(pattern)
|
|
if(PATTERN_DEFAULT)
|
|
return holiday_colors[(thing_to_color.y % holiday_colors.len) + 1]
|
|
if(PATTERN_VERTICAL_STRIPE)
|
|
return holiday_colors[(thing_to_color.x % holiday_colors.len) + 1]
|
|
|
|
/proc/request_holiday_colors(atom/thing_to_color, pattern)
|
|
switch(pattern)
|
|
if(PATTERN_RANDOM)
|
|
return "#[random_short_color()]"
|
|
if(PATTERN_RAINBOW)
|
|
var/datum/holiday/pride_week/rainbow_datum = new()
|
|
return rainbow_datum.get_holiday_colors(thing_to_color, PATTERN_DEFAULT)
|
|
if(!length(GLOB.holidays))
|
|
return
|
|
for(var/holiday_key in GLOB.holidays)
|
|
var/datum/holiday/holiday_real = GLOB.holidays[holiday_key]
|
|
if(!holiday_real.holiday_colors)
|
|
continue
|
|
return holiday_real.get_holiday_colors(thing_to_color, pattern || holiday_real.holiday_pattern)
|
|
|
|
// The actual holidays
|
|
|
|
// JANUARY
|
|
|
|
//Fleet Day is celebrated on Jan 19th, the date on which moths were merged (#34498)
|
|
/datum/holiday/fleet_day
|
|
name = "Fleet Day"
|
|
begin_month = JANUARY
|
|
begin_day = 19
|
|
holiday_hat = /obj/item/clothing/head/mothcap
|
|
|
|
/datum/holiday/fleet_day/greet()
|
|
return "This day commemorates another year of successful survival aboard the Mothic Grand Nomad Fleet. Moths galaxywide are encouraged to eat, drink, and be merry."
|
|
|
|
/datum/holiday/fleet_day/getStationPrefix()
|
|
return pick("Moth", "Fleet", "Nomadic")
|
|
|
|
// FEBRUARY
|
|
|
|
/datum/holiday/groundhog
|
|
name = "Groundhog Day"
|
|
begin_day = 2
|
|
begin_month = FEBRUARY
|
|
|
|
/datum/holiday/groundhog/getStationPrefix()
|
|
return pick("Deja Vu") //I have been to this place before
|
|
|
|
/datum/holiday/nz
|
|
name = "Waitangi Day"
|
|
timezones = list(TIMEZONE_NZDT, TIMEZONE_CHADT)
|
|
begin_day = 6
|
|
begin_month = FEBRUARY
|
|
holiday_colors = list(
|
|
COLOR_UNION_JACK_BLUE,
|
|
COLOR_WHITE,
|
|
COLOR_UNION_JACK_RED,
|
|
COLOR_WHITE,
|
|
)
|
|
|
|
/datum/holiday/nz/getStationPrefix()
|
|
return pick("Aotearoa","Kiwi","Fish 'n' Chips","Kākāpō","Southern Cross")
|
|
|
|
/datum/holiday/nz/greet()
|
|
var/nz_age = text2num(time2text(world.timeofday, "YYYY")) - 1840
|
|
return "On this day [nz_age] years ago, New Zealand's Treaty of Waitangi, the founding document of the nation, was signed!"
|
|
|
|
/datum/holiday/valentines
|
|
name = VALENTINES
|
|
begin_day = 13
|
|
end_day = 15
|
|
begin_month = FEBRUARY
|
|
poster_name = "lovey poster"
|
|
poster_desc = "A poster celebrating all the relationships built today. Of course, you probably don't have one."
|
|
poster_icon = "holiday_love"
|
|
|
|
/datum/holiday/valentines/getStationPrefix()
|
|
return pick("Love","Amore","Single","Smootch","Hug")
|
|
|
|
/datum/holiday/birthday
|
|
name = "Birthday of Space Station 13"
|
|
begin_day = 16
|
|
begin_month = FEBRUARY
|
|
holiday_hat = /obj/item/clothing/head/costume/festive
|
|
poster_name = "station birthday poster"
|
|
poster_desc = "A poster celebrating another year of the station's operation. Why anyone would be happy to be here is byond you."
|
|
poster_icon = "holiday_cake" // is a lie
|
|
|
|
/datum/holiday/birthday/greet()
|
|
var/game_age = text2num(time2text(world.timeofday, "YYYY")) - 2003
|
|
var/Fact
|
|
switch(game_age)
|
|
if(16)
|
|
Fact = " SS13 is now old enough to drive!"
|
|
if(18)
|
|
Fact = " SS13 is now legal!"
|
|
if(21)
|
|
Fact = " SS13 can now drink!"
|
|
if(26)
|
|
Fact = " SS13 can now rent a car!"
|
|
if(30)
|
|
Fact = " SS13 can now go home and be a family man!"
|
|
if(35)
|
|
Fact = " SS13 can now run for President of the United States!"
|
|
if(40)
|
|
Fact = " SS13 can now suffer a midlife crisis!"
|
|
if(50)
|
|
Fact = " Happy golden anniversary!"
|
|
if(65)
|
|
Fact = " SS13 can now start thinking about retirement!"
|
|
if(!Fact)
|
|
Fact = " SS13 is now [game_age] years old!"
|
|
|
|
return "Say 'Happy Birthday' to Space Station 13, first publicly playable on February 16th, 2003![Fact]"
|
|
|
|
/datum/holiday/random_kindness
|
|
name = "Random Acts of Kindness Day"
|
|
begin_day = 17
|
|
begin_month = FEBRUARY
|
|
poster_name = "act of kindness poster"
|
|
poster_desc = "A poster notifying the reader today is 'Act of Kindness' day. What a nice thing to do."
|
|
poster_icon = "holiday_kind"
|
|
|
|
/datum/holiday/random_kindness/greet()
|
|
return "Go do some random acts of kindness for a stranger!" //haha yeah right
|
|
|
|
/datum/holiday/leap
|
|
name = "Leap Day"
|
|
begin_day = 29
|
|
begin_month = FEBRUARY
|
|
|
|
// MARCH
|
|
|
|
/datum/holiday/pi
|
|
name = "Pi Day"
|
|
begin_day = 14
|
|
begin_month = MARCH
|
|
poster_name = "pi day poster"
|
|
poster_desc = "A poster celebrating the 3.141529th day of the year. At least theres free pie."
|
|
poster_icon = "holiday_pi"
|
|
|
|
/datum/holiday/pi/getStationPrefix()
|
|
return pick("Sine","Cosine","Tangent","Secant", "Cosecant", "Cotangent")
|
|
|
|
/datum/holiday/no_this_is_patrick
|
|
name = "St. Patrick's Day"
|
|
begin_day = 17
|
|
begin_month = MARCH
|
|
holiday_hat = /obj/item/clothing/head/soft/green
|
|
holiday_colors = list(
|
|
COLOR_IRISH_GREEN,
|
|
COLOR_WHITE,
|
|
COLOR_IRISH_ORANGE,
|
|
)
|
|
holiday_pattern = PATTERN_VERTICAL_STRIPE
|
|
|
|
/datum/holiday/no_this_is_patrick/getStationPrefix()
|
|
return pick("Blarney","Green","Leprechaun","Booze")
|
|
|
|
/datum/holiday/no_this_is_patrick/greet()
|
|
return "Happy National Inebriation Day!"
|
|
|
|
// APRIL
|
|
|
|
/datum/holiday/april_fools
|
|
name = APRIL_FOOLS
|
|
begin_month = APRIL
|
|
begin_day = 1
|
|
end_day = 2
|
|
holiday_hat = /obj/item/clothing/head/chameleon/broken
|
|
|
|
/datum/holiday/april_fools/celebrate()
|
|
. = ..()
|
|
SSjob.set_overflow_role(/datum/job/clown)
|
|
SSticker.login_music = 'sound/ambience/clown.ogg'
|
|
for(var/i in GLOB.new_player_list)
|
|
var/mob/dead/new_player/P = i
|
|
if(P.client)
|
|
P.client.playtitlemusic()
|
|
|
|
/datum/holiday/april_fools/get_holiday_colors(atom/thing_to_color)
|
|
return "#[random_short_color()]"
|
|
|
|
/datum/holiday/spess
|
|
name = "Cosmonautics Day"
|
|
begin_day = 12
|
|
begin_month = APRIL
|
|
holiday_hat = /obj/item/clothing/head/syndicatefake
|
|
|
|
/datum/holiday/spess/greet()
|
|
return "On this day over 600 years ago, Comrade Yuri Gagarin first ventured into space!"
|
|
|
|
/datum/holiday/fourtwenty
|
|
name = "Four-Twenty"
|
|
begin_day = 20
|
|
begin_month = APRIL
|
|
holiday_hat = /obj/item/clothing/head/rasta
|
|
holiday_colors = list(
|
|
COLOR_ETHIOPIA_GREEN,
|
|
COLOR_ETHIOPIA_YELLOW,
|
|
COLOR_ETHIOPIA_RED,
|
|
)
|
|
|
|
/datum/holiday/fourtwenty/getStationPrefix()
|
|
return pick("Snoop","Blunt","Toke","Dank","Cheech","Chong")
|
|
|
|
/datum/holiday/tea
|
|
name = "National Tea Day"
|
|
begin_day = 21
|
|
begin_month = APRIL
|
|
|
|
/datum/holiday/tea/getStationPrefix()
|
|
return pick("Crumpet","Assam","Oolong","Pu-erh","Sweet Tea","Green","Black")
|
|
|
|
/datum/holiday/earth
|
|
name = "Earth Day"
|
|
begin_day = 22
|
|
begin_month = APRIL
|
|
|
|
/datum/holiday/anz
|
|
name = "ANZAC Day"
|
|
timezones = list(TIMEZONE_TKT, TIMEZONE_TOT, TIMEZONE_NZST, TIMEZONE_NFT, TIMEZONE_LHST, TIMEZONE_AEST, TIMEZONE_ACST, TIMEZONE_ACWST, TIMEZONE_AWST, TIMEZONE_CXT, TIMEZONE_CCT, TIMEZONE_CKT, TIMEZONE_NUT)
|
|
begin_day = 25
|
|
begin_month = APRIL
|
|
holiday_hat = /obj/item/food/grown/poppy
|
|
|
|
/datum/holiday/anz/getStationPrefix()
|
|
return pick("Australian","New Zealand","Poppy", "Southern Cross")
|
|
|
|
// MAY
|
|
|
|
/datum/holiday/labor
|
|
name = "Labor Day"
|
|
begin_day = 1
|
|
begin_month = MAY
|
|
holiday_hat = /obj/item/clothing/head/utility/hardhat
|
|
mail_holiday = TRUE
|
|
|
|
//Draconic Day is celebrated on May 3rd, the date on which the Draconic language was merged (#26780)
|
|
/datum/holiday/draconic_day
|
|
name = "Draconic Language Day"
|
|
begin_month = MAY
|
|
begin_day = 3
|
|
|
|
/datum/holiday/draconic_day/greet()
|
|
return "On this day, Lizardkind celebrates their language with literature and other cultural works."
|
|
|
|
/datum/holiday/draconic_day/getStationPrefix()
|
|
return pick("Draconic", "Literature", "Reading")
|
|
|
|
/datum/holiday/firefighter
|
|
name = "Firefighter's Day"
|
|
begin_day = 4
|
|
begin_month = MAY
|
|
holiday_hat = /obj/item/clothing/head/utility/hardhat/red
|
|
|
|
/datum/holiday/firefighter/getStationPrefix()
|
|
return pick("Burning","Blazing","Plasma","Fire")
|
|
|
|
/datum/holiday/bee
|
|
name = "Bee Day"
|
|
begin_day = 20
|
|
begin_month = MAY
|
|
|
|
/datum/holiday/bee/getStationPrefix()
|
|
return pick("Bee","Honey","Hive","Africanized","Mead","Buzz")
|
|
|
|
// JUNE
|
|
|
|
//The Festival of Atrakor's Might (Tizira's Moon) is celebrated on June 15th, the date on which the lizard visual revamp was merged (#9808)
|
|
/datum/holiday/atrakor_festival
|
|
name = "Festival of Atrakor's Might"
|
|
begin_month = JUNE
|
|
begin_day = 15
|
|
|
|
/datum/holiday/atrakor_festival/greet()
|
|
return "On this day, the Lizards traditionally celebrate the Festival of Atrakor's Might, where they honour the moon god with lavishly adorned clothing, large portions of food, and a massive celebration into the night."
|
|
|
|
/datum/holiday/atrakor_festival/getStationPrefix()
|
|
return pick("Moon", "Night Sky", "Celebration")
|
|
|
|
/// Garbage DAYYYYY
|
|
/// Huh?.... NOOOO
|
|
/// *GUNSHOT*
|
|
/// AHHHGHHHHHHH
|
|
/datum/holiday/garbageday
|
|
name = GARBAGEDAY
|
|
begin_day = 17
|
|
end_day = 17
|
|
begin_month = JUNE
|
|
|
|
/datum/holiday/summersolstice
|
|
name = "Summer Solstice"
|
|
begin_day = 21
|
|
begin_month = JUNE
|
|
holiday_hat = /obj/item/clothing/head/costume/garland
|
|
|
|
/datum/holiday/pride_week
|
|
name = PRIDE_WEEK
|
|
begin_month = JUNE
|
|
// Stonewall was June 28th, this captures its week.
|
|
begin_day = 23
|
|
end_day = 29
|
|
holiday_colors = list(
|
|
COLOR_PRIDE_PURPLE,
|
|
COLOR_PRIDE_BLUE,
|
|
COLOR_PRIDE_GREEN,
|
|
COLOR_PRIDE_YELLOW,
|
|
COLOR_PRIDE_ORANGE,
|
|
COLOR_PRIDE_RED,
|
|
)
|
|
|
|
// JULY
|
|
|
|
/datum/holiday/doctor
|
|
name = "Doctor's Day"
|
|
begin_day = 1
|
|
begin_month = JULY
|
|
holiday_hat = /obj/item/clothing/head/costume/nursehat
|
|
|
|
/datum/holiday/ufo
|
|
name = "UFO Day"
|
|
begin_day = 2
|
|
begin_month = JULY
|
|
holiday_hat = /obj/item/clothing/head/collectable/xenom
|
|
|
|
/datum/holiday/ufo/getStationPrefix() //Is such a thing even possible?
|
|
return pick("Ayy","Truth","Tsoukalos","Mulder","Scully") //Yes it is!
|
|
|
|
/datum/holiday/usa
|
|
name = "US Independence Day"
|
|
timezones = list(TIMEZONE_EDT, TIMEZONE_CDT, TIMEZONE_MDT, TIMEZONE_MST, TIMEZONE_PDT, TIMEZONE_AKDT, TIMEZONE_HDT, TIMEZONE_HST)
|
|
begin_day = 4
|
|
begin_month = JULY
|
|
mail_holiday = TRUE
|
|
holiday_hat = /obj/item/clothing/head/cowboy/brown
|
|
holiday_colors = list(
|
|
COLOR_OLD_GLORY_BLUE,
|
|
COLOR_OLD_GLORY_RED,
|
|
COLOR_WHITE,
|
|
COLOR_OLD_GLORY_RED,
|
|
COLOR_WHITE,
|
|
)
|
|
|
|
|
|
/datum/holiday/usa/getStationPrefix()
|
|
return pick("Independent","American","Burger","Bald Eagle","Star-Spangled", "Fireworks")
|
|
|
|
/datum/holiday/writer
|
|
name = "Writer's Day"
|
|
begin_day = 8
|
|
begin_month = JULY
|
|
|
|
/datum/holiday/france
|
|
name = "Bastille Day"
|
|
timezones = list(TIMEZONE_CEST)
|
|
begin_day = 14
|
|
begin_month = JULY
|
|
holiday_hat = /obj/item/clothing/head/beret
|
|
mail_holiday = TRUE
|
|
holiday_colors = list(
|
|
COLOR_FRENCH_BLUE,
|
|
COLOR_WHITE,
|
|
COLOR_FRENCH_RED
|
|
)
|
|
holiday_pattern = PATTERN_VERTICAL_STRIPE
|
|
|
|
/datum/holiday/france/getStationPrefix()
|
|
return pick("Francais", "Fromage", "Zut", "Merde", "Sacrebleu")
|
|
|
|
/datum/holiday/france/greet()
|
|
return "Do you hear the people sing?"
|
|
|
|
/datum/holiday/hotdogday
|
|
name = HOTDOG_DAY
|
|
begin_day = 17
|
|
begin_month = JULY
|
|
|
|
/datum/holiday/hotdogday/greet()
|
|
return "Happy National Hot Dog Day!"
|
|
|
|
//Gary Gygax's birthday, a fitting day for Wizard's Day
|
|
/datum/holiday/wizards_day
|
|
name = "Wizard's Day"
|
|
begin_month = JULY
|
|
begin_day = 27
|
|
holiday_hat = /obj/item/clothing/head/wizard
|
|
|
|
/datum/holiday/wizards_day/getStationPrefix()
|
|
return pick("Dungeon", "Elf", "Magic", "D20", "Edition")
|
|
|
|
/datum/holiday/friendship
|
|
name = "Friendship Day"
|
|
begin_day = 30
|
|
begin_month = JULY
|
|
|
|
/datum/holiday/friendship/greet()
|
|
return "Have a magical [name]!"
|
|
|
|
// AUGUST
|
|
|
|
/datum/holiday/indigenous //Indigenous Peoples' Day from Earth!
|
|
name = "International Day of the World's Indigenous Peoples"
|
|
begin_month = AUGUST
|
|
begin_day = 9
|
|
|
|
/datum/holiday/indigenous/getStationPrefix()
|
|
return pick("Endangered language", "Word", "Language", "Language revitalization", "Potato", "Corn")
|
|
|
|
// AUGUST
|
|
|
|
/datum/holiday/ukraine
|
|
name = "Independence Day of Ukraine"
|
|
begin_month = AUGUST
|
|
begin_day = 24
|
|
holiday_colors = list(COLOR_TRUE_BLUE, COLOR_TANGERINE_YELLOW)
|
|
|
|
/datum/holiday/ukraine/getStationPrefix()
|
|
return pick("Kyiv", "Ukraine")
|
|
|
|
// SEPTEMBER
|
|
|
|
//Tiziran Unification Day is celebrated on Sept 1st, the day on which lizards were made a roundstart race
|
|
/datum/holiday/tiziran_unification
|
|
name = "Tiziran Unification Day"
|
|
begin_month = SEPTEMBER
|
|
begin_day = 1
|
|
holiday_hat = /obj/item/clothing/head/costume/lizard
|
|
|
|
/datum/holiday/tiziran_unification/greet()
|
|
return "On this day over 400 years ago, Lizardkind first united under a single banner, ready to face the stars as one unified people."
|
|
|
|
/datum/holiday/tiziran_unification/getStationPrefix()
|
|
return pick("Tizira", "Lizard", "Imperial")
|
|
|
|
/datum/holiday/ianbirthday
|
|
name = IAN_HOLIDAY //github.com/tgstation/tgstation/commit/de7e4f0de0d568cd6e1f0d7bcc3fd34700598acb
|
|
begin_month = SEPTEMBER
|
|
begin_day = 9
|
|
end_day = 10
|
|
|
|
/datum/holiday/ianbirthday/greet()
|
|
return "Happy birthday, Ian!"
|
|
|
|
/datum/holiday/ianbirthday/getStationPrefix()
|
|
return pick("Ian", "Corgi", "Erro")
|
|
|
|
/datum/holiday/pirate
|
|
name = "Talk-Like-a-Pirate Day"
|
|
begin_day = 19
|
|
begin_month = SEPTEMBER
|
|
holiday_hat = /obj/item/clothing/head/costume/pirate
|
|
|
|
/datum/holiday/pirate/greet()
|
|
return "Ye be talkin' like a pirate today or else ye'r walkin' tha plank, matey!"
|
|
|
|
/datum/holiday/pirate/getStationPrefix()
|
|
return pick("Yarr","Scurvy","Yo-ho-ho")
|
|
|
|
/datum/holiday/questions
|
|
name = "Stupid-Questions Day"
|
|
begin_day = 28
|
|
begin_month = SEPTEMBER
|
|
|
|
/datum/holiday/questions/greet()
|
|
return "Are you having a happy [name]?"
|
|
|
|
// OCTOBER
|
|
|
|
/datum/holiday/animal
|
|
name = "Animal's Day"
|
|
begin_day = 4
|
|
begin_month = OCTOBER
|
|
|
|
/datum/holiday/animal/getStationPrefix()
|
|
return pick("Parrot","Corgi","Cat","Pug","Goat","Fox")
|
|
|
|
/datum/holiday/smile
|
|
name = "Smiling Day"
|
|
begin_day = 7
|
|
begin_month = OCTOBER
|
|
holiday_hat = /obj/item/clothing/head/costume/papersack/smiley
|
|
|
|
/datum/holiday/boss
|
|
name = "Boss' Day"
|
|
begin_day = 16
|
|
begin_month = OCTOBER
|
|
holiday_hat = /obj/item/clothing/head/hats/tophat
|
|
|
|
/datum/holiday/un_day
|
|
name = "Anniversary of the Foundation of the United Nations"
|
|
begin_month = OCTOBER
|
|
begin_day = 24
|
|
|
|
/datum/holiday/un_day/greet()
|
|
return "On this day in 1945, the United Nations was founded, laying the foundation for humanity's united government!"
|
|
|
|
/datum/holiday/un_day/getStationPrefix()
|
|
return pick("United", "Cooperation", "Humanitarian")
|
|
|
|
/datum/holiday/halloween
|
|
name = HALLOWEEN
|
|
begin_day = 29
|
|
begin_month = OCTOBER
|
|
end_day = 2
|
|
end_month = NOVEMBER
|
|
holiday_colors = list(COLOR_MOSTLY_PURE_ORANGE, COLOR_PRISONER_BLACK)
|
|
|
|
/datum/holiday/halloween/greet()
|
|
return "Have a spooky Halloween!"
|
|
|
|
/datum/holiday/halloween/getStationPrefix()
|
|
return pick("Bone-Rattling","Mr. Bones' Own","2SPOOKY","Spooky","Scary","Skeletons")
|
|
|
|
// NOVEMBER
|
|
|
|
/datum/holiday/vegan
|
|
name = "Vegan Day"
|
|
begin_day = 1
|
|
begin_month = NOVEMBER
|
|
|
|
/datum/holiday/vegan/getStationPrefix()
|
|
return pick("Tofu", "Tempeh", "Seitan", "Tofurkey")
|
|
|
|
/datum/holiday/october_revolution
|
|
name = "October Revolution"
|
|
begin_day = 6
|
|
begin_month = NOVEMBER
|
|
end_day = 7
|
|
holiday_colors = list(
|
|
COLOR_MEDIUM_DARK_RED,
|
|
COLOR_GOLD,
|
|
COLOR_MEDIUM_DARK_RED,
|
|
)
|
|
|
|
/datum/holiday/october_revolution/getStationPrefix()
|
|
return pick("Communist", "Soviet", "Bolshevik", "Socialist", "Red", "Workers'")
|
|
|
|
/datum/holiday/remembrance_day
|
|
name = "Remembrance Day"
|
|
begin_month = NOVEMBER
|
|
begin_day = 11
|
|
holiday_hat = /obj/item/food/grown/poppy
|
|
|
|
/datum/holiday/remembrance_day/greet()
|
|
return "Lest we forget."
|
|
|
|
/datum/holiday/remembrance_day/getStationPrefix()
|
|
return pick("Peace", "Armistice", "Poppy")
|
|
|
|
/datum/holiday/lifeday
|
|
name = "Life Day"
|
|
begin_day = 17
|
|
begin_month = NOVEMBER
|
|
|
|
/datum/holiday/lifeday/getStationPrefix()
|
|
return pick("Itchy", "Lumpy", "Malla", "Kazook") //he really pronounced it "Kazook", I wish I was making shit up
|
|
|
|
/datum/holiday/kindness
|
|
name = "Kindness Day"
|
|
begin_day = 13
|
|
begin_month = NOVEMBER
|
|
|
|
/datum/holiday/flowers
|
|
name = "Flowers Day"
|
|
begin_day = 19
|
|
begin_month = NOVEMBER
|
|
holiday_hat = /obj/item/food/grown/moonflower
|
|
|
|
/datum/holiday/hello
|
|
name = "Saying-'Hello' Day"
|
|
begin_day = 21
|
|
begin_month = NOVEMBER
|
|
|
|
/datum/holiday/hello/greet()
|
|
return "[pick(list("Aloha", "Bonjour", "Hello", "Hi", "Greetings", "Salutations", "Bienvenidos", "Hola", "Howdy", "Ni hao", "Guten Tag", "Konnichiwa", "G'day cunt"))]! " + ..()
|
|
|
|
//The Festival of Holy Lights is celebrated on Nov 28th, the date on which ethereals were merged (#40995)
|
|
/datum/holiday/holy_lights
|
|
name = "Festival of Holy Lights"
|
|
begin_month = NOVEMBER
|
|
begin_day = 28
|
|
|
|
/datum/holiday/holy_lights/greet()
|
|
return "The Festival of Holy Lights is the final day of the Ethereal calendar. It is typically a day of prayer followed by celebration to close out the year in style."
|
|
|
|
/datum/holiday/holy_lights/getStationPrefix()
|
|
return pick("Ethereal", "Lantern", "Holy")
|
|
|
|
// DECEMBER
|
|
|
|
/datum/holiday/festive_season
|
|
name = FESTIVE_SEASON
|
|
begin_day = 1
|
|
begin_month = DECEMBER
|
|
end_day = 31
|
|
holiday_hat = /obj/item/clothing/head/costume/santa
|
|
|
|
/datum/holiday/festive_season/greet()
|
|
return "Have a nice festive season!"
|
|
|
|
/datum/holiday/human_rights
|
|
name = "Human-Rights Day"
|
|
begin_day = 10
|
|
begin_month = DECEMBER
|
|
|
|
/datum/holiday/monkey
|
|
name = MONKEYDAY
|
|
begin_day = 14
|
|
begin_month = DECEMBER
|
|
|
|
/datum/holiday/doomsday
|
|
name = "Mayan Doomsday Anniversary"
|
|
begin_day = 21
|
|
begin_month = DECEMBER
|
|
|
|
/datum/holiday/xmas
|
|
name = CHRISTMAS
|
|
begin_day = 23
|
|
begin_month = DECEMBER
|
|
end_day = 27
|
|
holiday_hat = /obj/item/clothing/head/costume/santa
|
|
mail_holiday = TRUE
|
|
holiday_colors = list(
|
|
COLOR_CHRISTMAS_GREEN,
|
|
COLOR_CHRISTMAS_RED,
|
|
)
|
|
|
|
/datum/holiday/xmas/getStationPrefix()
|
|
return pick(
|
|
"Bible",
|
|
"Birthday",
|
|
"Chimney",
|
|
"Claus",
|
|
"Crucifixion",
|
|
"Elf",
|
|
"Fir",
|
|
"Ho Ho Ho",
|
|
"Jesus",
|
|
"Jolly",
|
|
"Merry",
|
|
"Present",
|
|
"Sack",
|
|
"Santa",
|
|
"Sleigh",
|
|
"Yule",
|
|
)
|
|
|
|
/datum/holiday/xmas/greet()
|
|
return "Have a merry Christmas!"
|
|
|
|
/datum/holiday/boxing
|
|
name = "Boxing Day"
|
|
begin_day = 26
|
|
begin_month = DECEMBER
|
|
|
|
/datum/holiday/new_year
|
|
name = NEW_YEAR
|
|
begin_day = 31
|
|
begin_month = DECEMBER
|
|
end_day = 2
|
|
end_month = JANUARY
|
|
holiday_hat = /obj/item/clothing/head/costume/festive
|
|
mail_holiday = TRUE
|
|
|
|
/datum/holiday/new_year/getStationPrefix()
|
|
return pick("Party","New","Hangover","Resolution", "Auld")
|
|
|
|
// MOVING DATES
|
|
|
|
/datum/holiday/friday_thirteenth
|
|
name = "Friday the 13th"
|
|
|
|
/datum/holiday/friday_thirteenth/shouldCelebrate(dd, mm, yyyy, ddd)
|
|
if(dd == 13 && ddd == FRIDAY)
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/datum/holiday/friday_thirteenth/getStationPrefix()
|
|
return pick("Mike","Friday","Evil","Myers","Murder","Deathly","Stabby")
|
|
|
|
/datum/holiday/programmers
|
|
name = "Programmers' Day"
|
|
|
|
/datum/holiday/programmers/shouldCelebrate(dd, mm, yyyy, ddd) //Programmer's day falls on the 2^8th day of the year
|
|
if(mm == 9)
|
|
if(yyyy/4 == round(yyyy/4)) //Note: Won't work right on September 12th, 2200 (at least it's a Friday!)
|
|
if(dd == 12)
|
|
return TRUE
|
|
else
|
|
if(dd == 13)
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/datum/holiday/programmers/getStationPrefix()
|
|
return pick("span>","DEBUG: ","null","/list","EVENT PREFIX NOT FOUND") //Portability
|
|
|
|
// ISLAMIC
|
|
|
|
/datum/holiday/islamic
|
|
name = "Islamic calendar code broken"
|
|
|
|
/datum/holiday/islamic/shouldCelebrate(dd, mm, yyyy, ddd)
|
|
var/datum/foreign_calendar/islamic/cal = new(yyyy, mm, dd)
|
|
return ..(cal.dd, cal.mm, cal.yyyy, ddd)
|
|
|
|
/datum/holiday/islamic/ramadan
|
|
name = "Start of Ramadan"
|
|
begin_month = 9
|
|
begin_day = 1
|
|
end_day = 3
|
|
|
|
/datum/holiday/islamic/ramadan/getStationPrefix()
|
|
return pick("Haram","Halaal","Jihad","Muslim", "Al", "Mohammad", "Rashidun", "Umayyad", "Abbasid", "Abdul", "Fatimid", "Ayyubid", "Almohad", "Abu")
|
|
|
|
/datum/holiday/islamic/ramadan/end
|
|
name = "End of Ramadan"
|
|
end_month = 10
|
|
begin_day = 28
|
|
end_day = 1
|
|
|
|
// HEBREW
|
|
|
|
/datum/holiday/hebrew
|
|
name = "If you see this the Hebrew holiday calendar code is broken"
|
|
|
|
/datum/holiday/hebrew/shouldCelebrate(dd, mm, yyyy, ddd)
|
|
var/datum/foreign_calendar/hebrew/cal = new(yyyy, mm, dd)
|
|
return ..(cal.dd, cal.mm, cal.yyyy, ddd)
|
|
|
|
/datum/holiday/hebrew/hanukkah
|
|
name = "Hanukkah"
|
|
begin_day = 25
|
|
begin_month = 9
|
|
end_day = 2
|
|
end_month = 10
|
|
|
|
/datum/holiday/hebrew/hanukkah/greet()
|
|
return "Happy [pick("Hanukkah", "Chanukah")]!"
|
|
|
|
/datum/holiday/hebrew/hanukkah/getStationPrefix()
|
|
return pick("Dreidel", "Menorah", "Latkes", "Gelt")
|
|
|
|
/datum/holiday/hebrew/passover
|
|
name = "Passover"
|
|
begin_day = 15
|
|
begin_month = 1
|
|
end_day = 22
|
|
|
|
/datum/holiday/hebrew/passover/getStationPrefix()
|
|
return pick("Matzah", "Moses", "Red Sea")
|
|
|
|
// HOLIDAY ADDONS
|
|
|
|
/datum/holiday/xmas/celebrate()
|
|
. = ..()
|
|
SSticker.OnRoundstart(CALLBACK(src, PROC_REF(roundstart_celebrate)))
|
|
GLOB.maintenance_loot += list(
|
|
list(
|
|
/obj/item/clothing/head/costume/santa = 1,
|
|
/obj/item/gift/anything = 1,
|
|
/obj/item/toy/xmas_cracker = 3,
|
|
) = maint_holiday_weight,
|
|
)
|
|
|
|
/datum/holiday/xmas/proc/roundstart_celebrate()
|
|
for(var/mob/living/basic/pet/dog/corgi/ian/Ian in GLOB.mob_living_list)
|
|
Ian.place_on_head(new /obj/item/clothing/head/helmet/space/santahat(Ian))
|
|
|
|
|
|
// EASTER (this having its own spot should be understandable)
|
|
/datum/holiday/easter
|
|
name = EASTER
|
|
holiday_hat = /obj/item/clothing/head/costume/rabbitears
|
|
var/const/days_early = 1 //to make editing the holiday easier
|
|
var/const/days_extra = 1
|
|
|
|
/datum/holiday/easter/shouldCelebrate(dd, mm, yyyy, ddd)
|
|
if(!begin_month)
|
|
current_year = text2num(time2text(world.timeofday, "YYYY"))
|
|
var/list/easterResults = EasterDate(current_year+year_offset)
|
|
|
|
begin_day = easterResults["day"]
|
|
begin_month = easterResults["month"]
|
|
|
|
end_day = begin_day + days_extra
|
|
end_month = begin_month
|
|
if(end_day >= 32 && end_month == MARCH) //begins in march, ends in april
|
|
end_day -= 31
|
|
end_month++
|
|
if(end_day >= 31 && end_month == APRIL) //begins in april, ends in june
|
|
end_day -= 30
|
|
end_month++
|
|
|
|
begin_day -= days_early
|
|
if(begin_day <= 0)
|
|
if(begin_month == APRIL)
|
|
begin_day += 31
|
|
begin_month-- //begins in march, ends in april
|
|
|
|
return ..()
|
|
|
|
/datum/holiday/easter/celebrate()
|
|
. = ..()
|
|
GLOB.maintenance_loot += list(
|
|
list(
|
|
/obj/item/surprise_egg = 15,
|
|
/obj/item/storage/basket/easter = 15
|
|
) = maint_holiday_weight,
|
|
)
|
|
|
|
/datum/holiday/easter/greet()
|
|
return "Greetings! Have a Happy Easter and keep an eye out for Easter Bunnies!"
|
|
|
|
/datum/holiday/easter/getStationPrefix()
|
|
return pick("Fluffy","Bunny","Easter","Egg")
|
|
|
|
/// Takes a holiday datum, a starting month, ending month, max amount of days to test in, and min/max year as input
|
|
/// Returns a list in the form list("yyyy/m/d", ...) representing all days the holiday runs on in the tested range
|
|
/proc/poll_holiday(datum/holiday/path, min_month, max_month, min_year, max_year, max_day)
|
|
var/list/deets = list()
|
|
for(var/year in min_year to max_year)
|
|
for(var/month in min_month to max_month)
|
|
for(var/day in 1 to max_day)
|
|
var/datum/holiday/new_day = new path()
|
|
if(new_day.shouldCelebrate(day, month, year, iso_to_weekday(day_of_month(year, month, day))))
|
|
deets += "[year]/[month]/[day]"
|
|
return deets
|
|
|
|
/// Does the same as [/proc/poll_holiday], but prints the output to admins instead of returning it
|
|
/proc/print_holiday(datum/holiday/path, min_month, max_month, min_year, max_year, max_day)
|
|
var/list/deets = poll_holiday(path, min_month, max_month, min_year, max_year, max_day)
|
|
message_admins("The accepted dates for [path] in the input range [min_year]-[max_year]/[min_month]-[max_month]/1-[max_day] are [deets.Join("\n")]")
|