mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
# Conflicts: # .github/CODEOWNERS # .github/workflows/compile_changelogs.yml # .github/workflows/stale.yml # SQL/database_changelog.md # _maps/map_files/CatwalkStation/CatwalkStation_2023.dmm # code/__DEFINES/atom_hud.dm # code/__DEFINES/inventory.dm # code/__DEFINES/mobs.dm # code/__DEFINES/species_clothing_paths.dm # code/__DEFINES/subsystems.dm # code/__DEFINES/surgery.dm # code/__HELPERS/global_lists.dm # code/_globalvars/lists/maintenance_loot.dm # code/_globalvars/traits/_traits.dm # code/controllers/subsystem/minor_mapping.dm # code/controllers/subsystem/processing/quirks.dm # code/controllers/subsystem/shuttle.dm # code/datums/components/palette.dm # code/datums/components/surgery_initiator.dm # code/datums/diseases/advance/advance.dm # code/datums/hud.dm # code/datums/mood.dm # code/datums/mutations/chameleon.dm # code/datums/quirks/negative_quirks/nyctophobia.dm # code/datums/status_effects/debuffs/debuffs.dm # code/datums/status_effects/debuffs/drunk.dm # code/datums/status_effects/debuffs/slime/slime_leech.dm # code/datums/weather/weather.dm # code/game/data_huds.dm # code/game/objects/items.dm # code/game/objects/items/devices/scanners/health_analyzer.dm # code/game/objects/items/frog_statue.dm # code/game/objects/items/rcd/RLD.dm # code/game/objects/items/robot/items/hypo.dm # code/game/objects/items/stacks/medical.dm # code/game/objects/items/stacks/wrap.dm # code/game/objects/items/storage/garment.dm # code/game/objects/items/tools/medical/defib.dm # code/game/objects/items/weaponry.dm # code/game/objects/items/weaponry/melee/misc.dm # code/game/objects/structures/crates_lockers/closets/secure/security.dm # code/game/objects/structures/curtains.dm # code/game/objects/structures/dresser.dm # code/game/objects/structures/girders.dm # code/game/objects/structures/maintenance.dm # code/game/objects/structures/mirror.dm # code/modules/admin/greyscale_modify_menu.dm # code/modules/admin/verbs/light_debug.dm # code/modules/antagonists/ashwalker/ashwalker.dm # code/modules/antagonists/heretic/knowledge/starting_lore.dm # code/modules/antagonists/ninja/ninjaDrainAct.dm # code/modules/art/paintings.dm # code/modules/client/preferences.dm # code/modules/client/verbs/ooc.dm # code/modules/clothing/head/wig.dm # code/modules/events/disease_outbreak.dm # code/modules/holodeck/holo_effect.dm # code/modules/jobs/job_types/head_of_security.dm # code/modules/jobs/job_types/security_officer.dm # code/modules/library/skill_learning/generic_skillchips/point.dm # code/modules/mining/lavaland/ash_flora.dm # code/modules/mining/lavaland/mining_loot/megafauna/ash_drake.dm # code/modules/mob/dead/new_player/new_player.dm # code/modules/mob/living/basic/guardian/guardian.dm # code/modules/mob/living/basic/space_fauna/space_dragon/space_dragon.dm # code/modules/mob/living/carbon/carbon.dm # code/modules/mob/living/carbon/human/human.dm # code/modules/mob/living/carbon/human/human_defines.dm # code/modules/mob/living/carbon/life.dm # code/modules/mob/living/living.dm # code/modules/mob/living/living_defines.dm # code/modules/mob/mob.dm # code/modules/mob_spawn/ghost_roles/mining_roles.dm # code/modules/mod/mod_control.dm # code/modules/mod/modules/modules_general.dm # code/modules/modular_computers/computers/item/computer_ui.dm # code/modules/paperwork/paper.dm # code/modules/paperwork/paperbin.dm # code/modules/power/lighting/light.dm # code/modules/projectiles/guns/energy/kinetic_accelerator.dm # code/modules/projectiles/projectile.dm # code/modules/reagents/chemistry/reagents/drinks/alcohol_reagents.dm # code/modules/reagents/chemistry/reagents/food_reagents.dm # code/modules/reagents/chemistry/reagents/other_reagents.dm # code/modules/reagents/chemistry/reagents/pyrotechnic_reagents.dm # code/modules/research/xenobiology/crossbreeding/_clothing.dm # code/modules/research/xenobiology/crossbreeding/prismatic.dm # code/modules/surgery/advanced/brainwashing.dm # code/modules/surgery/advanced/lobotomy.dm # code/modules/surgery/amputation.dm # code/modules/surgery/blood_filter.dm # code/modules/surgery/bodyparts/_bodyparts.dm # code/modules/surgery/brain_surgery.dm # code/modules/surgery/cavity_implant.dm # code/modules/surgery/coronary_bypass.dm # code/modules/surgery/gastrectomy.dm # code/modules/surgery/healing.dm # code/modules/surgery/limb_augmentation.dm # code/modules/surgery/organ_manipulation.dm # code/modules/surgery/revival.dm # code/modules/surgery/sleeper_protocol.dm # code/modules/surgery/surgery_helpers.dm # code/modules/surgery/surgery_step.dm # code/modules/unit_tests/_unit_tests.dm # code/modules/unit_tests/designs.dm # code/modules/unit_tests/icon_state_worn.dm # code/modules/unit_tests/screenshots/screenshot_antag_icons_cultist.png # code/modules/unit_tests/screenshots/screenshot_antag_icons_headrevolutionary.png # code/modules/unit_tests/screenshots/screenshot_antag_icons_provocateur.png # code/modules/unit_tests/screenshots/screenshot_husk_body.png # code/modules/unit_tests/screenshots/screenshot_husk_body_missing_limbs.png # icons/map_icons/clothing/head/_head.dmi # icons/map_icons/clothing/shoes.dmi # icons/map_icons/items/_item.dmi # icons/mob/huds/hud.dmi # icons/mob/inhands/64x64_lefthand.dmi # icons/mob/inhands/64x64_righthand.dmi # icons/obj/machines/computer.dmi # tgui/packages/tgui/interfaces/OperatingComputer.jsx # tgui/packages/tgui/interfaces/PreferencesMenu/CharacterPreferences/MainPage.tsx # tgui/packages/tgui/interfaces/PreferencesMenu/types.ts # tgui/packages/tgui/interfaces/SurgeryInitiator.tsx # tools/icon_cutter/check.py
183 lines
4.5 KiB
Plaintext
183 lines
4.5 KiB
Plaintext
///number of deciseconds in a day
|
|
#define MIDNIGHT_ROLLOVER 864000
|
|
|
|
///displays the current time into the round, with a lot of extra code just there for ensuring it looks okay after an entire day passes
|
|
#define ROUND_TIME(...) ( "[STATION_TIME_PASSED() > MIDNIGHT_ROLLOVER ? "[round(STATION_TIME_PASSED()/MIDNIGHT_ROLLOVER)]:[gameTimestamp(wtime = STATION_TIME_PASSED())]" : gameTimestamp(wtime = STATION_TIME_PASSED())]" )
|
|
|
|
///Returns the time that has passed since the game started
|
|
#define STATION_TIME_PASSED(...) (world.time - SSticker.round_start_time)
|
|
|
|
/// Define that just has the current in-universe year for use in whatever context you might want to display that in. (For example, 2022 -> 2562 given a 540 year offset)
|
|
#define CURRENT_STATION_YEAR (GLOB.year_integer + STATION_YEAR_OFFSET)
|
|
|
|
/// Used in the GLOB year and tgui PreInit
|
|
#define UTC_YEAR time2text(world.realtime,"YYYY",NO_TIMEZONE)
|
|
|
|
/// In-universe, SS13 is set 540 years in the future from the real-world day, hence this number for determining the year-offset for the in-game year.
|
|
#define STATION_YEAR_OFFSET 540
|
|
|
|
#define JANUARY 1
|
|
#define FEBRUARY 2
|
|
#define MARCH 3
|
|
#define APRIL 4
|
|
#define MAY 5
|
|
#define JUNE 6
|
|
#define JULY 7
|
|
#define AUGUST 8
|
|
#define SEPTEMBER 9
|
|
#define OCTOBER 10
|
|
#define NOVEMBER 11
|
|
#define DECEMBER 12
|
|
|
|
//Select holiday names -- If you test for a holiday in the code, make the holiday's name a define and test for that instead
|
|
#define NEW_YEAR "New Year"
|
|
#define VALENTINES "Valentine's Day"
|
|
#define APRIL_FOOLS "April Fool's Day"
|
|
#define EASTER "Easter"
|
|
#define HALLOWEEN "Halloween"
|
|
#define CHRISTMAS "Christmas"
|
|
#define FESTIVE_SEASON "Festive Season"
|
|
#define GARBAGEDAY "Garbage Day"
|
|
#define MONKEYDAY "Monkey Day"
|
|
#define PRIDE_WEEK "Pride Month" // BUBBER EDIT CHANGE - Pride Month
|
|
#define MOTH_WEEK "Moth Week"
|
|
#define IAN_HOLIDAY "Ian's Birthday"
|
|
#define HOTDOG_DAY "National Hot Dog Day"
|
|
#define ICE_CREAM_DAY "National Ice Cream Day"
|
|
/*
|
|
|
|
Days of the week to make it easier to reference them.
|
|
|
|
When using time2text(), please use "DDD" to find the weekday. Refrain from using "Day"
|
|
|
|
*/
|
|
|
|
#define MONDAY "Mon"
|
|
#define TUESDAY "Tue"
|
|
#define WEDNESDAY "Wed"
|
|
#define THURSDAY "Thu"
|
|
#define FRIDAY "Fri"
|
|
#define SATURDAY "Sat"
|
|
#define SUNDAY "Sun"
|
|
|
|
#define MILLISECONDS *0.01
|
|
|
|
#define DECISECONDS *1 //the base unit all of these defines are scaled by, because byond uses that as a unit of measurement for some fucking reason
|
|
|
|
#define SECONDS *10
|
|
|
|
#define MINUTES SECONDS*60
|
|
|
|
#define HOURS MINUTES*60
|
|
|
|
#define DAYS HOURS*24
|
|
#define YEARS DAYS*365 //fuck leap days, they were removed in 2069
|
|
|
|
#define TICKS *world.tick_lag
|
|
|
|
#define DS2TICKS(DS) ((DS)/world.tick_lag)
|
|
|
|
#define TICKS2DS(T) ((T) TICKS)
|
|
|
|
#define MS2DS(T) ((T) MILLISECONDS)
|
|
|
|
#define DS2MS(T) ((T) * 100)
|
|
|
|
/*Timezones*/
|
|
|
|
/// Line Islands Time
|
|
#define TIMEZONE_LINT 14
|
|
|
|
// Chatham Daylight Time
|
|
#define TIMEZONE_CHADT 13.75
|
|
|
|
/// Tokelau Time
|
|
#define TIMEZONE_TKT 13
|
|
|
|
/// Tonga Time
|
|
#define TIMEZONE_TOT 13
|
|
|
|
/// New Zealand Daylight Time
|
|
#define TIMEZONE_NZDT 13
|
|
|
|
/// New Zealand Standard Time
|
|
#define TIMEZONE_NZST 12
|
|
|
|
/// Norfolk Time
|
|
#define TIMEZONE_NFT 11
|
|
|
|
/// Lord Howe Standard Time
|
|
#define TIMEZONE_LHST 10.5
|
|
|
|
/// Australian Eastern Standard Time
|
|
#define TIMEZONE_AEST 10
|
|
|
|
/// Australian Central Standard Time
|
|
#define TIMEZONE_ACST 9.5
|
|
|
|
/// Australian Central Western Standard Time
|
|
#define TIMEZONE_ACWST 8.75
|
|
|
|
/// Australian Western Standard Time
|
|
#define TIMEZONE_AWST 8
|
|
|
|
/// Christmas Island Time
|
|
#define TIMEZONE_CXT 7
|
|
|
|
/// Cocos Islands Time
|
|
#define TIMEZONE_CCT 6.5
|
|
|
|
/// Central European Summer Time
|
|
#define TIMEZONE_CEST 2
|
|
|
|
/// Coordinated Universal Time
|
|
#define TIMEZONE_UTC 0
|
|
|
|
/// Eastern Daylight Time
|
|
#define TIMEZONE_EDT -4
|
|
|
|
/// Eastern Standard Time
|
|
#define TIMEZONE_EST -5
|
|
|
|
/// Central Daylight Time
|
|
#define TIMEZONE_CDT -5
|
|
|
|
/// Central Standard Time
|
|
#define TIMEZONE_CST -6
|
|
|
|
/// Mountain Daylight Time
|
|
#define TIMEZONE_MDT -6
|
|
|
|
/// Mountain Standard Time
|
|
#define TIMEZONE_MST -7
|
|
|
|
/// Pacific Daylight Time
|
|
#define TIMEZONE_PDT -7
|
|
|
|
/// Pacific Standard Time
|
|
#define TIMEZONE_PST -8
|
|
|
|
/// Alaska Daylight Time
|
|
#define TIMEZONE_AKDT -8
|
|
|
|
/// Alaska Standard Time
|
|
#define TIMEZONE_AKST -9
|
|
|
|
/// Hawaii-Aleutian Daylight Time
|
|
#define TIMEZONE_HDT -9
|
|
|
|
/// Hawaii Standard Time
|
|
#define TIMEZONE_HST -10
|
|
|
|
/// Cook Island Time
|
|
#define TIMEZONE_CKT -10
|
|
|
|
/// Niue Time
|
|
#define TIMEZONE_NUT -11
|
|
|
|
/// Anywhere on Earth
|
|
#define TIMEZONE_ANYWHERE_ON_EARTH -12
|
|
|
|
/// in the grim darkness of the thirteenth space station there is no timezones, since they break IC game times. Use this for all IC/round time values
|
|
#define NO_TIMEZONE 0
|