holiday 
Procs | |
celebrate | NOTE FOR EVERYONE TRYING TO DO STUFF WHICH REQUIRES MAPPING, PLACING OBJECTS, ETC: Holiday subsystem is loaded before mapping subsystem init, which means you can't place stuff before roundstart. BUT: /proc/handle_event() is invoked after master controller completed it's initialization, so that means you can manupulate objects and stuff in the world |
---|---|
getStationPrefix | Returns special prefixes for the station name on certain days. You wind up with names like "Christmas Object Epsilon". See new_station_name() |
greet | When the round starts, this proc is ran to get a text message to display to everyone to wish them a happy holiday |
handle_event | Used for special holiday events. Called only after Master Controller has been loaded. (a.k.a initializations complete.) Use this proc to manipulate objects and systems after MC load or mapload. |
shouldCelebrate | Return 1 if this holiday should be celebrated today |
Proc Details
celebrate
NOTE FOR EVERYONE TRYING TO DO STUFF WHICH REQUIRES MAPPING, PLACING OBJECTS, ETC: Holiday subsystem is loaded before mapping subsystem init, which means you can't place stuff before roundstart. BUT: /proc/handle_event() is invoked after master controller completed it's initialization, so that means you can manupulate objects and stuff in the world
/proc/celebrate() is invoked before mapping subsystem init, so that means you can turn some flags, make initializations of objects depending on which holiday we do celebrate and etc. As an example, see /datum/holiday/new_year and /obj/effect/spawner/window/reinforced/Initialize
This proc gets run before the game starts when the holiday is activated. Important note: it runs before mapping subsystem init, do not place/alter objects in world using this proc.
getStationPrefix
Returns special prefixes for the station name on certain days. You wind up with names like "Christmas Object Epsilon". See new_station_name()
greet
When the round starts, this proc is ran to get a text message to display to everyone to wish them a happy holiday
handle_event
Used for special holiday events. Called only after Master Controller has been loaded. (a.k.a initializations complete.) Use this proc to manipulate objects and systems after MC load or mapload.
shouldCelebrate
Return 1 if this holiday should be celebrated today