From 801238f4d2f326f937b6c20ab8a428096109717d Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Mon, 16 Dec 2024 23:31:49 +0100 Subject: [PATCH] [Manual Port] of #16707 Enable define sanity (#9651) --- .github/workflows/ci.yml | 2 + .gitignore | 3 + code/ZAS/Turf.dm | 1 + code/__defines/atoms_movable_ch.dm | 3 + code/__defines/ballistics_ch.dm | 44 +++++++++++ code/__defines/belly_modes_ch.dm | 6 -- code/__defines/belly_modes_vr.dm | 6 ++ code/__defines/dna.dm | 6 ++ code/__defines/lighting_source_ch.dm | 16 ++++ code/__defines/phobias.dm | 9 +++ code/__defines/planets_yw.dm | 22 ++++++ code/controllers/subsystems/bellies_vr.dm | 3 + code/datums/locations/qerrvallis.dm | 30 +++---- code/game/atoms_movable_ch.dm | 3 - code/game/dna/dna2.dm | 7 -- code/game/dna/dna2_domutcheck.dm | 1 - code/game/machinery/suit_dispenser.dm | 5 ++ code/game/memory_profiler_ch.dm | 3 + .../items/weapons/circuitboards/mecha_ch.dm | 2 + .../objects/items/weapons/wiki_manuals.dm | 3 + code/game/turfs/unsimulated/planetary_yw.dm | 25 +----- code/modules/Phorochemistry/misc_phoronics.dm | 5 -- code/modules/Phorochemistry/phororeactions.dm | 2 + code/modules/Phorochemistry/phororeagent.dm | 3 - code/modules/games/cah_black_cards.dm | 14 ++-- .../hardcode_library/fiction/PortedBooks.dm | 60 +++++++------- .../fiction/battlefieldcommander.dm | 78 +++++++++---------- .../hardcode_library/reference/Schnayy.dm | 2 +- code/modules/lighting/lighting_source.dm | 15 ++-- code/modules/lighting/sunlight_handler_ch.dm | 2 - code/modules/lore_codex/lore_data/species.dm | 22 +++--- .../lore_codex/lore_data_vr/species.dm | 12 +-- .../lore_codex/lore_data_yw/species.dm | 16 ++-- code/modules/maps/bapi-dmm/bapi_bindings.dm | 2 + .../mob/living/carbon/human/phobias.dm | 10 --- .../species/station/traits_vr/negative_ch.dm | 2 + .../living/zz_ballistics_ch/bullet_act_ch.dm | 45 ----------- .../zz_ballistics_ch/z_ballistic_test_ch.dm | 12 +++ .../guns/projectile/leveraction.dm | 10 +-- code/modules/vore/eating/belly_obj_vr.dm | 5 -- tools/define_sanity/check.py | 9 ++- vorestation.dme | 4 + 42 files changed, 286 insertions(+), 244 deletions(-) create mode 100644 code/__defines/atoms_movable_ch.dm create mode 100644 code/__defines/ballistics_ch.dm create mode 100644 code/__defines/lighting_source_ch.dm create mode 100644 code/__defines/phobias.dm create mode 100644 code/__defines/planets_yw.dm diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7e308c336..fe695ae3c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,6 +72,8 @@ jobs: - name: Run Tests run: | tools/ci/validate_files.sh + - name: Run Define Sanity Checks + run: tools/bootstrap/python -m define_sanity.check - name: Run DreamChecker shell: bash run: ~/dreamchecker 2>&1 | bash tools/ci/annotate_dm.sh diff --git a/.gitignore b/.gitignore index b1a24c9031..e5f718595b 100644 --- a/.gitignore +++ b/.gitignore @@ -163,3 +163,6 @@ config/jobwhitelist.txt #ignore tracy dll prof.dll + +# From /tools/define_sanity/check.py - potential output file that we load onto the user's machine that we don't want to have committed. +define_sanity_output.txt diff --git a/code/ZAS/Turf.dm b/code/ZAS/Turf.dm index b47721f2ed..d2c413090a 100644 --- a/code/ZAS/Turf.dm +++ b/code/ZAS/Turf.dm @@ -130,6 +130,7 @@ . |= dir */ . = !. +#undef GET_ZONE_NEIGHBOURS // CHOMPEdit End /turf/simulated/update_air_properties() diff --git a/code/__defines/atoms_movable_ch.dm b/code/__defines/atoms_movable_ch.dm new file mode 100644 index 0000000000..e5a585cdf7 --- /dev/null +++ b/code/__defines/atoms_movable_ch.dm @@ -0,0 +1,3 @@ +#define NON_LISTENING_ATOM 0 +#define LISTENING_ATOM 1 +#define LISTENING_PLAYER 2 diff --git a/code/__defines/ballistics_ch.dm b/code/__defines/ballistics_ch.dm new file mode 100644 index 0000000000..ad893f2e64 --- /dev/null +++ b/code/__defines/ballistics_ch.dm @@ -0,0 +1,44 @@ +#define BULLET_AP_DIVISOR 200 +#define AP_DIVISOR 4152 +#define ARMOR_Y_INTERCEPT 0.2 +#define ARMOR_SLOPE 0.017 +#define PENETRATION_PROBABILITY_EXP_BASE 2 +#define PENETRATION_PROBABILITY_EXP_MULT 30 + +#define BULLET_DEFLECTED_PAIN_DIVISOR 5000 +#define BULLET_DEFLECTED_BULLET_DIVISOR 70 +#define BULLET_DEFLECTED_MELEE_DIVISOR 280 +#define BULLET_DEFLECTED_PAIN_EXPONENT 1.5 +#define BULLET_DEFLECTED_BRUISE_SUBTRACT 5 + +GLOBAL_VAR_INIT(SKIN_LOSS_COEFFICIENT,16) +GLOBAL_VAR_INIT(ARMOR_LOSS_COEFFICIENT,150) +GLOBAL_VAR_INIT(ARMOR_LOSS_MIN_MULT,0.5) +GLOBAL_VAR_INIT(ARMOR_LOSS_MIN_ARMOR,20) +GLOBAL_VAR_INIT(INTERNAL_LOSS_COEFFICIENT,195) +#define ORGAN_LOSS_COEFFICIENT 350 +#define HIT_VITAL_ORGAN_CHANCE 35 + +#define BONE_HIT_CHANCE_UNENCASED 45 +#define BONE_HIT_CHANCE_ENCASED 80 +GLOBAL_VAR_INIT(BONE_JOULES_PERHP_AVG,2) +GLOBAL_VAR_INIT(BONE_JOULES_PERHP_DEV,1) +GLOBAL_VAR_INIT(BONE_JOULES_MIN,100) +#define BONE_HP_AVG 25 + +GLOBAL_VAR_INIT(HOLLOW_POINT_VELLOSS_BONUS,1.45) +GLOBAL_VAR_INIT(HOLLOW_POINT_CONVERSION_EFF,1.85) + +#define PROB_LEAVE_EARLY_FIRST 20 +#define PROB_LEAVE_EARLY_SECOND 40 + +GLOBAL_VAR_INIT(ENERGY_DAMAGE_FLESH_FACTOR,0.025) +GLOBAL_VAR_INIT(ENERGY_DAMAGE_ORGAN_FACTOR,0.035) +#define ENERGY_DAMAGE_EXPONENT 0.6 +#define ENERGY_DAMAGE_COEFFICIENT 0.05 +#define ENERGY_DAMAGE_FLESH_FALLOFF_POINT 10 +#define ENERGY_DAMAGE_ORGAN_FALLOFF_POINT 7 + +#ifndef GAUSSIAN_RANDOM +#define GAUSSIAN_RANDOM(vars...) ((-2*log(rand()))**0.5 * cos(6.28318530718*rand())) +#endif diff --git a/code/__defines/belly_modes_ch.dm b/code/__defines/belly_modes_ch.dm index d243f721e6..5765a79595 100644 --- a/code/__defines/belly_modes_ch.dm +++ b/code/__defines/belly_modes_ch.dm @@ -8,12 +8,6 @@ #define DM_FLAG_REAGENTSABSORB 0x4 #define DM_FLAG_REAGENTSDRAIN 0x8 -//Vore Sprite Flags -#define DM_FLAG_VORESPRITE_BELLY 0x1 -#define DM_FLAG_VORESPRITE_TAIL 0x2 -#define DM_FLAG_VORESPRITE_MARKING 0x4 -#define DM_FLAG_VORESPRITE_ARTICLE 0x8 - //For belly fullscreen shennanigans outside of bellies, due to Life() clearing belly fullscreens outside of bellies. #define ATOM_BELLY_FULLSCREEN "belly_atom_vfx" diff --git a/code/__defines/belly_modes_vr.dm b/code/__defines/belly_modes_vr.dm index 91b681dfa7..ec7d0f18ff 100644 --- a/code/__defines/belly_modes_vr.dm +++ b/code/__defines/belly_modes_vr.dm @@ -47,3 +47,9 @@ #define DR_SLEEP "Sleep" #define DR_FAKE "False Sleep" #define DR_WEIGHT "Weight Drain" + +//Vore Sprite Flags +#define DM_FLAG_VORESPRITE_BELLY 0x1 +#define DM_FLAG_VORESPRITE_TAIL 0x2 +#define DM_FLAG_VORESPRITE_MARKING 0x4 +#define DM_FLAG_VORESPRITE_ARTICLE 0x8 diff --git a/code/__defines/dna.dm b/code/__defines/dna.dm index 10fe4d729b..b958466201 100644 --- a/code/__defines/dna.dm +++ b/code/__defines/dna.dm @@ -154,3 +154,9 @@ var/SMALLSIZEBLOCK = 0 #define DNA2_BUF_UI 1 #define DNA2_BUF_UE 2 #define DNA2_BUF_SE 4 + +// Mutation flags +#define MUTCHK_FORCED 1 + +// Gene flags +#define GENE_ALWAYS_ACTIVATE 1 diff --git a/code/__defines/lighting_source_ch.dm b/code/__defines/lighting_source_ch.dm new file mode 100644 index 0000000000..21a73a2959 --- /dev/null +++ b/code/__defines/lighting_source_ch.dm @@ -0,0 +1,16 @@ +// Keep in mind. Lighting corners accept the bottom left (northwest) set of cords to them as input +// Handles dynamic light +#define GENERATE_MISSING_CORNERS(gen_for) \ + if (!gen_for.lighting_corner_NE) { \ + gen_for.lighting_corner_NE = new /datum/lighting_corner(gen_for.x, gen_for.y, gen_for.z, gen_for.has_dynamic_lighting()); \ + } \ + if (!gen_for.lighting_corner_SE) { \ + gen_for.lighting_corner_SE = new /datum/lighting_corner(gen_for.x, gen_for.y - 1, gen_for.z, gen_for.has_dynamic_lighting()); \ + } \ + if (!gen_for.lighting_corner_SW) { \ + gen_for.lighting_corner_SW = new /datum/lighting_corner(gen_for.x - 1, gen_for.y - 1, gen_for.z, gen_for.has_dynamic_lighting()); \ + } \ + if (!gen_for.lighting_corner_NW) { \ + gen_for.lighting_corner_NW = new /datum/lighting_corner(gen_for.x - 1, gen_for.y, gen_for.z, gen_for.has_dynamic_lighting()); \ + } \ + gen_for.lighting_corners_initialised = TRUE; diff --git a/code/__defines/phobias.dm b/code/__defines/phobias.dm new file mode 100644 index 0000000000..0bf2fc1613 --- /dev/null +++ b/code/__defines/phobias.dm @@ -0,0 +1,9 @@ +//Handling and defining of phobias and fears +#define NYCTOPHOBIA 1 +#define ARACHNOPHOBIA 2 +#define HEMOPHOBIA 4 +#define THALASSOPHOBIA 8 +#define CLAUSTROPHOBIA_MINOR 16 +#define CLAUSTROPHOBIA_MAJOR 32 +#define ANATIDAEPHOBIA 64 +#define AGRAVIAPHOBIA 128 diff --git a/code/__defines/planets_yw.dm b/code/__defines/planets_yw.dm new file mode 100644 index 0000000000..7e9c3d3cfd --- /dev/null +++ b/code/__defines/planets_yw.dm @@ -0,0 +1,22 @@ +//Atmosphere properties +#define CRYOGAIA_ONE_ATMOSPHERE 101.13 //kPa +#define CRYOGAIA_AVG_TEMP 233.15 //kelvin + +#define CRYOGAIA_PER_N2 0.24 //percent +#define CRYOGAIA_PER_O2 0.72 +#define CRYOGAIA_PER_N2O 0.00 //Currently no capacity to 'start' a turf with this. See turf.dm +#define CRYOGAIA_PER_CO2 0.04 +#define CRYOGAIA_PER_PHORON 0.00 + +//Math only beyond this point +#define CRYOGAIA_MOL_PER_TURF (CRYOGAIA_ONE_ATMOSPHERE*CELL_VOLUME/(CRYOGAIA_AVG_TEMP*R_IDEAL_GAS_EQUATION)) +#define CRYOGAIA_MOL_N2 (CRYOGAIA_MOL_PER_TURF * CRYOGAIA_PER_N2) +#define CRYOGAIA_MOL_O2 (CRYOGAIA_MOL_PER_TURF * CRYOGAIA_PER_O2) +#define CRYOGAIA_MOL_N2O (CRYOGAIA_MOL_PER_TURF * CRYOGAIA_PER_N2O) +#define CRYOGAIA_MOL_CO2 (CRYOGAIA_MOL_PER_TURF * CRYOGAIA_PER_CO2) +#define CRYOGAIA_MOL_PHORON (CRYOGAIA_MOL_PER_TURF * CRYOGAIA_PER_PHORON) + +//Turfmakers +#define CRYOGAIA_SET_ATMOS nitrogen=CRYOGAIA_MOL_N2;oxygen=CRYOGAIA_MOL_O2;carbon_dioxide=CRYOGAIA_MOL_CO2;phoron=CRYOGAIA_MOL_PHORON;temperature=CRYOGAIA_AVG_TEMP +#define CRYOGAIA_TURF_CREATE(x) x/cryogaia/nitrogen=CRYOGAIA_MOL_N2;x/cryogaia/oxygen=CRYOGAIA_MOL_O2;x/cryogaia/carbon_dioxide=CRYOGAIA_MOL_CO2;x/cryogaia/phoron=CRYOGAIA_MOL_PHORON;x/cryogaia/temperature=CRYOGAIA_AVG_TEMP;x/cryogaia/outdoors=TRUE;x/cryogaia/update_graphic(list/graphic_add = null, list/graphic_remove = null) return 0 +#define CRYOGAIA_TURF_CREATE_UN(x) x/cryogaia/nitrogen=CRYOGAIA_MOL_N2;x/cryogaia/oxygen=CRYOGAIA_MOL_O2;x/cryogaia/carbon_dioxide=CRYOGAIA_MOL_CO2;x/cryogaia/phoron=CRYOGAIA_MOL_PHORON;x/cryogaia/temperature=CRYOGAIA_AVG_TEMP diff --git a/code/controllers/subsystems/bellies_vr.dm b/code/controllers/subsystems/bellies_vr.dm index 64fec98568..0e896bebe5 100644 --- a/code/controllers/subsystems/bellies_vr.dm +++ b/code/controllers/subsystems/bellies_vr.dm @@ -40,3 +40,6 @@ SUBSYSTEM_DEF(bellies) if (MC_TICK_CHECK) return + +#undef SSBELLIES_PROCESSED +#undef SSBELLIES_IGNORED diff --git a/code/datums/locations/qerrvallis.dm b/code/datums/locations/qerrvallis.dm index 5a3572a886..a3cc2468ba 100644 --- a/code/datums/locations/qerrvallis.dm +++ b/code/datums/locations/qerrvallis.dm @@ -26,32 +26,32 @@ ..(creator) /datum/locations/qarrkloa - name = "Qarr’kloa" - desc = "Mythically considered the first State-City ever built by Skrellkind, Qarr’kloa attracts thousands of tourists and archeologists \ + name = "Qarr'kloa" + desc = "Mythically considered the first State-City ever built by Skrellkind, Qarr'kloa attracts thousands of tourists and archeologists \ every year thanks to the ancestral structures, built thousands of years ago by the Skrell, scattered in its vicinity." /datum/locations/moglar - name = "Mo’glar" - desc = "Built on the northern coast of Qorr’gloa, Mo’glar was, at the time of Xi’Krri’oal’s colonization, a major port of trade between \ + name = "Mo'glar" + desc = "Built on the northern coast of Qorr'gloa, Mo'glar was, at the time of Xi'Krri'oal's colonization, a major port of trade between \ the two continents of the planet. It has kept that role to this day, although it never truly adapted to inter-planetary trade, leaving the \ - task of exporting Qerrbalak’s goods to other planets to other cities, mainly on Xi’Krri’oal." + task of exporting Qerrbalak's goods to other planets to other cities, mainly on Xi'Krri'oal." /datum/locations/miqoxi - name = "Mi’qoxi" - desc = "This city, built on the small patch of islands north of Xi’Krri’oal, owes most of its current status to the infamous Qerr-Skria \ - Glo’morr Krrixi who, in the 23th century BCE, built a large empire spanning from the Qo’rria Sea to the current city of Qal’krrea, mostly \ - through military conquests. As the center of his empire, Mi’qoxi became a large center of population and industry and while the fall of \ - the empire at Krrixi’s death did put a halt to the city’s growth, it is still today one of the biggest cities of the continent." + name = "Mi'qoxi" + desc = "This city, built on the small patch of islands north of Xi'Krri'oal, owes most of its current status to the infamous Qerr-Skria \ + Glo'morr Krrixi who, in the 23th century BCE, built a large empire spanning from the Qo'rria Sea to the current city of Qal'krrea, mostly \ + through military conquests. As the center of his empire, Mi'qoxi became a large center of population and industry and while the fall of \ + the empire at Krrixi's death did put a halt to the city's growth, it is still today one of the biggest cities of the continent." /datum/locations/kallo - name = "Kal’lo" - desc = "A relatively recent city compared to the other major cities of the planet, Kal’lo quickly rose in status by fathering some of the most \ - important figures of modern skrellian society. It is notably the birthplace of Xikrra Kol’goa, who wrote the Lo’glo’mog’rri in 46 BCE, \ + name = "Kal'lo" + desc = "A relatively recent city compared to the other major cities of the planet, Kal'lo quickly rose in status by fathering some of the most \ + important figures of modern skrellian society. It is notably the birthplace of Xikrra Kol'goa, who wrote the Lo'glo'mog'rri in 46 BCE, \ the constitutional code that is still used by most of the skrellian states in the galaxy." /datum/locations/glimorr - name = "Gli’morr" - desc = "While Gli’morr is not as heavily-populated than its continental counterparts, its touristic potential made it rich enough to finance \ + name = "Gli'morr" + desc = "While Gli'morr is not as heavily-populated than its continental counterparts, its touristic potential made it rich enough to finance \ the biggest research center of the planet, covering dozens of scientific fields. Its Academy is just as much renowned, and even the lowest \ Qrri-Mog (although most of its students prefer to continue their studies until they become Qerr-Mog) coming out of its classrooms is \ considered part of the elite." diff --git a/code/game/atoms_movable_ch.dm b/code/game/atoms_movable_ch.dm index e3ef8169ee..89940d10b0 100644 --- a/code/game/atoms_movable_ch.dm +++ b/code/game/atoms_movable_ch.dm @@ -1,6 +1,3 @@ -#define NON_LISTENING_ATOM 0 -#define LISTENING_ATOM 1 -#define LISTENING_PLAYER 2 //gonna be honest this is really just a ripoff of tg's recursive hearing /atom/movable var/recursive_listeners diff --git a/code/game/dna/dna2.dm b/code/game/dna/dna2.dm index f8c2f5f8ab..ab266fbbaf 100644 --- a/code/game/dna/dna2.dm +++ b/code/game/dna/dna2.dm @@ -25,13 +25,6 @@ var/global/list/assigned_blocks[DNA_SE_LENGTH] var/global/list/datum/dna/gene/dna_genes[0] -///////////////// -// GENE DEFINES -///////////////// -// Skip checking if it's already active. -// Used for genes that check for value rather than a binary on/off. -#define GENE_ALWAYS_ACTIVATE 1 - /datum/dna // READ-ONLY, GETS OVERWRITTEN // DO NOT FUCK WITH THESE OR BYOND WILL EAT YOUR FACE diff --git a/code/game/dna/dna2_domutcheck.dm b/code/game/dna/dna2_domutcheck.dm index 02495bbc49..2b3f820532 100644 --- a/code/game/dna/dna2_domutcheck.dm +++ b/code/game/dna/dna2_domutcheck.dm @@ -3,7 +3,6 @@ // M: Mob to mess with // connected: Machine we're in, type unchecked so I doubt it's used beyond monkeying // flags: See below, bitfield. -#define MUTCHK_FORCED 1 /proc/domutcheck(var/mob/living/M, var/connected=null, var/flags=0) for(var/datum/dna/gene/gene in dna_genes) if(!M || !M.dna) diff --git a/code/game/machinery/suit_dispenser.dm b/code/game/machinery/suit_dispenser.dm index 99585bf975..174baf10f6 100644 --- a/code/game/machinery/suit_dispenser.dm +++ b/code/game/machinery/suit_dispenser.dm @@ -463,3 +463,8 @@ var/list/dispenser_presets = list() icon_state = "suitdispenserAL" dispenser_flags = GD_ONEITEM|GD_NOGREED|GD_UNLIMITED one_setting = /datum/gear_disp/voidsuit/autolok + +#undef GD_BUSY +#undef GD_ONEITEM +#undef GD_NOGREED +#undef GD_UNLIMITED diff --git a/code/game/memory_profiler_ch.dm b/code/game/memory_profiler_ch.dm index bb1bb82f50..75c4a65fca 100644 --- a/code/game/memory_profiler_ch.dm +++ b/code/game/memory_profiler_ch.dm @@ -194,3 +194,6 @@ if(num_bytes > 10000) return "[num_bytes/1000] kb" return "[num_bytes] b" + +#undef LOOP_STEP_SIZE +//#undef MEM_NO_CHECK_TICK diff --git a/code/game/objects/items/weapons/circuitboards/mecha_ch.dm b/code/game/objects/items/weapons/circuitboards/mecha_ch.dm index dc29adc342..f094691e2d 100644 --- a/code/game/objects/items/weapons/circuitboards/mecha_ch.dm +++ b/code/game/objects/items/weapons/circuitboards/mecha_ch.dm @@ -19,3 +19,5 @@ /obj/item/circuitboard/mecha/scarab/main name = T_BOARD_CHMECHA("Scarab central control") icon_state = "mainboard" + +#undef T_BOARD_CHMECHA diff --git a/code/game/objects/items/weapons/wiki_manuals.dm b/code/game/objects/items/weapons/wiki_manuals.dm index 8ba6b68dab..aaac07da1d 100644 --- a/code/game/objects/items/weapons/wiki_manuals.dm +++ b/code/game/objects/items/weapons/wiki_manuals.dm @@ -143,3 +143,6 @@ title = "Engineering Textbook" page_link = "Guide_to_Engineering" + +#undef BOOK_WINDOW_BROWSE_SIZE +#undef WIKI_PAGE_IFRAME diff --git a/code/game/turfs/unsimulated/planetary_yw.dm b/code/game/turfs/unsimulated/planetary_yw.dm index 8c2d87974b..8c70c75cee 100644 --- a/code/game/turfs/unsimulated/planetary_yw.dm +++ b/code/game/turfs/unsimulated/planetary_yw.dm @@ -1,26 +1,3 @@ -//Atmosphere properties -#define CRYOGAIA_ONE_ATMOSPHERE 101.13 //kPa -#define CRYOGAIA_AVG_TEMP 233.15 //kelvin - -#define CRYOGAIA_PER_N2 0.24 //percent -#define CRYOGAIA_PER_O2 0.72 -#define CRYOGAIA_PER_N2O 0.00 //Currently no capacity to 'start' a turf with this. See turf.dm -#define CRYOGAIA_PER_CO2 0.04 -#define CRYOGAIA_PER_PHORON 0.00 - -//Math only beyond this point -#define CRYOGAIA_MOL_PER_TURF (CRYOGAIA_ONE_ATMOSPHERE*CELL_VOLUME/(CRYOGAIA_AVG_TEMP*R_IDEAL_GAS_EQUATION)) -#define CRYOGAIA_MOL_N2 (CRYOGAIA_MOL_PER_TURF * CRYOGAIA_PER_N2) -#define CRYOGAIA_MOL_O2 (CRYOGAIA_MOL_PER_TURF * CRYOGAIA_PER_O2) -#define CRYOGAIA_MOL_N2O (CRYOGAIA_MOL_PER_TURF * CRYOGAIA_PER_N2O) -#define CRYOGAIA_MOL_CO2 (CRYOGAIA_MOL_PER_TURF * CRYOGAIA_PER_CO2) -#define CRYOGAIA_MOL_PHORON (CRYOGAIA_MOL_PER_TURF * CRYOGAIA_PER_PHORON) - -//Turfmakers -#define CRYOGAIA_SET_ATMOS nitrogen=CRYOGAIA_MOL_N2;oxygen=CRYOGAIA_MOL_O2;carbon_dioxide=CRYOGAIA_MOL_CO2;phoron=CRYOGAIA_MOL_PHORON;temperature=CRYOGAIA_AVG_TEMP -#define CRYOGAIA_TURF_CREATE(x) x/cryogaia/nitrogen=CRYOGAIA_MOL_N2;x/cryogaia/oxygen=CRYOGAIA_MOL_O2;x/cryogaia/carbon_dioxide=CRYOGAIA_MOL_CO2;x/cryogaia/phoron=CRYOGAIA_MOL_PHORON;x/cryogaia/temperature=CRYOGAIA_AVG_TEMP;x/cryogaia/outdoors=TRUE;x/cryogaia/update_graphic(list/graphic_add = null, list/graphic_remove = null) return 0 -#define CRYOGAIA_TURF_CREATE_UN(x) x/cryogaia/nitrogen=CRYOGAIA_MOL_N2;x/cryogaia/oxygen=CRYOGAIA_MOL_O2;x/cryogaia/carbon_dioxide=CRYOGAIA_MOL_CO2;x/cryogaia/phoron=CRYOGAIA_MOL_PHORON;x/cryogaia/temperature=CRYOGAIA_AVG_TEMP - // This is a wall you surround the area of your "planet" with, that makes the atmosphere inside stay within bounds, even if canisters // are opened or other strange things occur. /turf/unsimulated/wall/planetary/borealis2 @@ -29,4 +6,4 @@ icon = 'icons/turf/snow_new.dmi' icon_state = "Icerock" alpha = 0xFF - CRYOGAIA_SET_ATMOS \ No newline at end of file + CRYOGAIA_SET_ATMOS diff --git a/code/modules/Phorochemistry/misc_phoronics.dm b/code/modules/Phorochemistry/misc_phoronics.dm index 86204f72fc..2c6f690fae 100644 --- a/code/modules/Phorochemistry/misc_phoronics.dm +++ b/code/modules/Phorochemistry/misc_phoronics.dm @@ -1,8 +1,3 @@ -#define REM 0.2 -#define SOLID 1 -#define LIQUID 2 -#define GAS 3 - proc/gaseous_reagent_check(var/mob/living/carbon/human/H) //protective clothing check return (istype(H.wear_suit, /obj/item/clothing/suit/space) && istype(H.head, /obj/item/clothing/head/helmet/space)) \ || (istype(H.wear_suit, /obj/item/clothing/suit/bio_suit) && istype(H.head, /obj/item/clothing/head/bio_hood) && H.gloves) \ diff --git a/code/modules/Phorochemistry/phororeactions.dm b/code/modules/Phorochemistry/phororeactions.dm index 4f44397545..6f62888597 100644 --- a/code/modules/Phorochemistry/phororeactions.dm +++ b/code/modules/Phorochemistry/phororeactions.dm @@ -66,3 +66,5 @@ //garbage collection should deal with reagents + +#undef PHORONICS_TESTING diff --git a/code/modules/Phorochemistry/phororeagent.dm b/code/modules/Phorochemistry/phororeagent.dm index e0bf91e2f8..0e1c550bd1 100644 --- a/code/modules/Phorochemistry/phororeagent.dm +++ b/code/modules/Phorochemistry/phororeagent.dm @@ -1,6 +1,3 @@ -#define SOLID 1 -#define LIQUID 2 -#define GAS 3 var/induromol_frequency = rand(700, 750) * 2 + 1 //signallers only increase by .2 increments var/induromol_code = rand(1, 50) diff --git a/code/modules/games/cah_black_cards.dm b/code/modules/games/cah_black_cards.dm index 922ba1f763..312d8f19d2 100644 --- a/code/modules/games/cah_black_cards.dm +++ b/code/modules/games/cah_black_cards.dm @@ -182,27 +182,27 @@ "Why do I hurt all over?", "In the seventh circle of Hell, sinners must endure _____ for all eternity.", "A successful job interview begins with a firm handshake and ends with _____.", - "Lovin’ you is easy ’cause you’re _____.", + "Lovin' you is easy 'cause you're _____.", "My life is ruled by a vicious cycle of _____ and _____.", "The blind date was going horribly until we discovered our shared interest in _____.", "_____. Awesome in theory, kind of a mess in practice.", - "I’m not like the rest of you. I’m too rich and busy for _____.", + "I'm not like the rest of you. I'm too rich and busy for _____.", "(Pick 2) _____: Hours of fun. Easy to use. Perfect for _____!", "What left this stain on my couch?", "Call the law offices of Goldstein & Goldstein, because no one should have to tolerate _____ in the workplace.", "(Pick 2) When you get right down to it, _____ is just _____.", "Turns out that _____ Man was neither the hero we needed nor wanted.", "As part of his daily regimen, Anderson Cooper sets aside 15 minutes for _____.", - "Money can’t buy me love, but it can buy me _____.", + "Money can't buy me love, but it can buy me _____.", "(Pick 2) With enough time and pressure, _____ will turn into _____.", "And what did you bring for show and tell?", "During high school I never really fit in until I found _____ club.", - "Hey baby, come back to my place and I’ll show you _____.", - "(Pick 2) After months of practice with _____, I think I’m finally ready for _____.", + "Hey baby, come back to my place and I'll show you _____.", + "(Pick 2) After months of practice with _____, I think I'm finally ready for _____.", "To prepare for his upcoming role, Daniel Day-Lewis immersed himself in the world of _____.", "Finally! A service that delivers _____ right to your door.", "My gym teacher got fired for adding _____ to the obstacle course.", "(Pick 2) Having problems with _____? Try _____!", - "As part of his contract, Prince won’t perform without _____ in his dressing room.", - "(Pick 2) Listen, son. If you want to get involved with _____, I won’t stop you. Just steer clear of _____." + "As part of his contract, Prince won't perform without _____ in his dressing room.", + "(Pick 2) Listen, son. If you want to get involved with _____, I won't stop you. Just steer clear of _____." ) diff --git a/code/modules/library/hardcode_library/fiction/PortedBooks.dm b/code/modules/library/hardcode_library/fiction/PortedBooks.dm index 13bf1e58fb..95f51cceef 100644 --- a/code/modules/library/hardcode_library/fiction/PortedBooks.dm +++ b/code/modules/library/hardcode_library/fiction/PortedBooks.dm @@ -46,39 +46,39 @@ Category: Fiction
- Once upon a time there was a cat, but he wasn’t the kind of cat you’re thinking of. He was from the land of the fairies and his fur was completely unexpected colors. For starters, his nose was violet. His eyes were indigo, his ears were sky blue, his front paws were green, his body was yellow, his back paws were orange, and his tail was red. So he was a mysterious cat of seven colors arranged just like a rainbow.
+ Once upon a time there was a cat, but he wasn't the kind of cat you're thinking of. He was from the land of the fairies and his fur was completely unexpected colors. For starters, his nose was violet. His eyes were indigo, his ears were sky blue, his front paws were green, his body was yellow, his back paws were orange, and his tail was red. So he was a mysterious cat of seven colors arranged just like a rainbow.
That rainbow cat went on all sorts of strange adventures. The following story is one of them.
One day while the rainbow cat was sunbathing, he was suddenly vexed by boredom. That is to say, peace reigned in the land of the fairies, so nothing much was going on.
- It’s not good for my health to spend all my time idling about as if I haven’t got a care in the world, he thought. Perhaps I should head out and go on an adventure.
+ It's not good for my health to spend all my time idling about as if I haven't got a care in the world, he thought. Perhaps I should head out and go on an adventure.
So he put a note up on his door: "Dear Mr. Post Man, I will be gone for two or three days, so if any packages or letters come, please throw them down the chimney."
Then he packed a small bag, hung it on his tail, and wobbled off to the border of the land of the fairies. When he arrived, a thick cloud billowed up.
- "Well, maybe I’ll drop by the cloud people’s place," he chattered to himself, climbing up the cloud embankment.
+ "Well, maybe I'll drop by the cloud people's place," he chattered to himself, climbing up the cloud embankment.
- The people who lived in cloud country were quite pleasant folks. They didn’t do any work, in particular, but just because they were lazy didn’t mean that they didn’t find the world interesting. They all lived in splendid palaces, of which the ones you couldn’t see from Earth were far more beautiful than the ones you could.
+ The people who lived in cloud country were quite pleasant folks. They didn't do any work, in particular, but just because they were lazy didn't mean that they didn't find the world interesting. They all lived in splendid palaces, of which the ones you couldn't see from Earth were far more beautiful than the ones you could.
- The people of the cloud country sometimes drove pearly gray carriages or went sailing in lightweight boats. They lived in the sky, so the only person they had to fear was Sir Thunder. It’s quite understandable given that he was quick to anger -- he would make the sky rumble with his stomping and go around knocking down their houses.
+ The people of the cloud country sometimes drove pearly gray carriages or went sailing in lightweight boats. They lived in the sky, so the only person they had to fear was Sir Thunder. It's quite understandable given that he was quick to anger -- he would make the sky rumble with his stomping and go around knocking down their houses.
The people of the cloud country were very happy to have the rainbow cat visit and greeted him politely.
- "You’ve come at a great time," they said. "We’re having a big celebration at the Wind God’s house. His eldest son, North Wind is taking the daughter of the King of the Magic Isle as his wife."
+ "You've come at a great time," they said. "We're having a big celebration at the Wind God's house. His eldest son, North Wind is taking the daughter of the King of the Magic Isle as his wife."
The rainbow cat, having thought just such a thing might happen, was prepared with various goods in the bag on his tail.
It was a truly magnificent wedding.
- Everyone came. Even Comet showed up. You wouldn’t see Comet unless it was a very fine banquet indeed.
+ Everyone came. Even Comet showed up. You wouldn't see Comet unless it was a very fine banquet indeed.
- And Aurora came in the most indescribably beautiful garments of light. Of course, the bride’s parents, the King of Magic Isle and his Pearl Oyster Queen, were in attendance.
+ And Aurora came in the most indescribably beautiful garments of light. Of course, the bride's parents, the King of Magic Isle and his Pearl Oyster Queen, were in attendance.
- A feast was served and everyone was in a lively mood, having interesting conversations and drinking, when all of the sudden a swallow flew in. According to him, the giant Sir Thunder was rushing towards them at a tremendous speed. Apparently, when Trade Wind was hurrying by, he had tripped over sleeping Sir Thunder’s toes and Sir Thunder was furious.
+ A feast was served and everyone was in a lively mood, having interesting conversations and drinking, when all of the sudden a swallow flew in. According to him, the giant Sir Thunder was rushing towards them at a tremendous speed. Apparently, when Trade Wind was hurrying by, he had tripped over sleeping Sir Thunder's toes and Sir Thunder was furious.
- "What’ll we do?" everyone wondered at once, their faces pale. "The celebration will be ruined!"
+ "What'll we do?" everyone wondered at once, their faces pale. "The celebration will be ruined!"
All the guests and the master of the house began to scatter in a panic.
@@ -88,9 +88,9 @@ Category: Fiction
A moment later, he came back out.
- "I’ll find a way to keep Sir Thunder from coming here," said the cat. "So please continue the celebration as you were. I’ll go to him and see what I can do."
+ "I'll find a way to keep Sir Thunder from coming here," said the cat. "So please continue the celebration as you were. I'll go to him and see what I can do."
- Everyone was surprised at how brave and composed the rainbow cat was, but it sounded like their celebration wouldn’t be intruded upon partway through, so they were happy to gather and see off the cat as he raced towards the far-off rumblings of Sir Thunder.
+ Everyone was surprised at how brave and composed the rainbow cat was, but it sounded like their celebration wouldn't be intruded upon partway through, so they were happy to gather and see off the cat as he raced towards the far-off rumblings of Sir Thunder.