Skip to content

Commit

Permalink
Redoes Bodytemp [MDB Ignore] (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMelbert authored Sep 30, 2024
1 parent b917642 commit fa2d841
Show file tree
Hide file tree
Showing 245 changed files with 1,766 additions and 2,174 deletions.
7 changes: 1 addition & 6 deletions _maps/map_files/IceBoxStation/IceBoxStation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -34098,12 +34098,7 @@
/turf/open/floor/wood,
/area/station/maintenance/fore)
"kbU" = (
/mob/living/basic/goat/pete{
desc = "Not known for their pleasant disposition. This one seems a bit more hardy to the cold.";
habitable_atmos = list("min_oxy"=1,"max_oxy"=0,"min_plas"=0,"max_plas"=1,"min_co2"=0,"max_co2"=5,"min_n2"=0,"max_n2"=0);
minimum_survivable_temperature = 150;
name = "Snowy Pete"
},
/mob/living/basic/goat/pete/icebox,
/turf/open/misc/ice/coldroom,
/area/station/service/kitchen/coldroom)
"kcc" = (
Expand Down
6 changes: 6 additions & 0 deletions _maps/safehouses/ice.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@
/obj/item/clothing/suit/hooded/wintercoat,
/obj/item/clothing/suit/hooded/wintercoat,
/obj/item/clothing/suit/hooded/wintercoat,
/obj/item/clothing/shoes/winterboots,
/obj/item/clothing/shoes/winterboots,
/obj/item/clothing/shoes/winterboots,
/obj/item/clothing/gloves/color/brown,
/obj/item/clothing/gloves/color/brown,
/obj/item/clothing/gloves/color/brown,
/turf/open/floor/iron,
/area/virtual_domain/safehouse)
"Z" = (
Expand Down
20 changes: 16 additions & 4 deletions _maps/safehouses/mine.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
},
/obj/structure/table,
/obj/item/flashlight/lantern{
pixel_x = 8;
pixel_y = null
pixel_x = -8;
pixel_y = 8
},
/obj/item/flashlight/lantern{
pixel_y = 4
},
/obj/item/flashlight/lantern{
pixel_x = -8;
pixel_y = 8
pixel_x = 8;
pixel_y = null
},
/turf/open/floor/iron/dark,
/area/virtual_domain/safehouse)
Expand Down Expand Up @@ -88,6 +88,10 @@
dir = 8
},
/obj/machinery/suit_storage_unit/mining,
/obj/item/clothing/gloves/color/black,
/obj/item/clothing/shoes/workboots/mining{
pixel_y = -3
},
/turf/open/floor/iron/dark/smooth_edge{
dir = 4
},
Expand All @@ -98,6 +102,10 @@
},
/obj/machinery/suit_storage_unit/mining,
/obj/machinery/light/directional/west,
/obj/item/clothing/gloves/color/black,
/obj/item/clothing/shoes/workboots/mining{
pixel_y = -3
},
/turf/open/floor/iron/dark/smooth_edge{
dir = 4
},
Expand All @@ -107,6 +115,10 @@
dir = 9
},
/obj/machinery/suit_storage_unit/mining,
/obj/item/clothing/gloves/color/black,
/obj/item/clothing/shoes/workboots/mining{
pixel_y = -3
},
/turf/open/floor/iron/dark,
/area/virtual_domain/safehouse)

Expand Down
12 changes: 6 additions & 6 deletions code/__DEFINES/atmospherics/atmos_core.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
/// kPa
#define ONE_ATMOSPHERE 101.325
/// -270.3degC
#define TCMB 2.7
#define TCMB CELCIUS_TO_KELVIN(-270.3 CELCIUS)
/// 0degC
#define T0C 273.15
#define T0C CELCIUS_TO_KELVIN(0 CELCIUS)
/// 20degC
#define T20C 293.15
#define T20C CELCIUS_TO_KELVIN(20 CELCIUS)
/// -14C - Temperature used for kitchen cold room, medical freezer, etc.
#define COLD_ROOM_TEMP 259.15
#define COLD_ROOM_TEMP CELCIUS_TO_KELVIN(-14 CELCIUS)

/**
*I feel the need to document what happens here. Basically this is used
Expand Down Expand Up @@ -128,9 +128,9 @@

//FIRE
///Minimum temperature for fire to move to the next turf (150 °C or 433 K)
#define FIRE_MINIMUM_TEMPERATURE_TO_SPREAD (150+T0C)
#define FIRE_MINIMUM_TEMPERATURE_TO_SPREAD CELCIUS_TO_KELVIN(150 CELCIUS)
///Minimum temperature for fire to exist on a turf (100 °C or 373 K)
#define FIRE_MINIMUM_TEMPERATURE_TO_EXIST (100+T0C)
#define FIRE_MINIMUM_TEMPERATURE_TO_EXIST CELCIUS_TO_KELVIN(100 CELCIUS)
///Multiplier for the temperature shared to other turfs
#define FIRE_SPREAD_RADIOSITY_SCALE 0.85
///Helper for small fires to grow
Expand Down
22 changes: 11 additions & 11 deletions code/__DEFINES/atmospherics/atmos_mapping_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@

//OPEN TURF ATMOS
/// the default air mix that open turfs spawn
#define OPENTURF_DEFAULT_ATMOS GAS_O2 + "=22;" + GAS_N2 + "=82;TEMP=293.15"
#define OPENTURF_DEFAULT_ATMOS GAS_O2 + "=22;" + GAS_N2 + "=82;TEMP=293.15" // T20C
/// the default low-pressure air mix used mostly for mining areas.
#define OPENTURF_LOW_PRESSURE GAS_O2 + "=14;" + GAS_N2 + "=30;TEMP=293.15"
#define OPENTURF_LOW_PRESSURE GAS_O2 + "=14;" + GAS_N2 + "=30;TEMP=293.15" // T20C
/// breathable air that causes disease
#define OPENTURF_DIRTY_ATMOS GAS_MIASMA + "=15;" + GAS_O2 + "=88;TEMP=293.15"
#define OPENTURF_DIRTY_ATMOS GAS_MIASMA + "=15;" + GAS_O2 + "=88;TEMP=293.15" // T20C
/// -193,15°C telecommunications. also used for xenobiology slime killrooms
#define TCOMMS_ATMOS GAS_N2 + "=100;TEMP=80"
#define TCOMMS_ATMOS GAS_N2 + "=100;TEMP=231.15" // CELCIUS_TO_KELVIN(-42), but originally CELCIUS_TO_KELVIN(-193.15)
/// space
#define AIRLESS_ATMOS "TEMP=2.7"
#define AIRLESS_ATMOS "TEMP=2.7" // TCMB
/// -93.15°C snow and ice turfs
#define FROZEN_ATMOS GAS_O2 + "=22;" + GAS_N2 + "=82;TEMP=180"
#define FROZEN_ATMOS GAS_O2 + "=22;" + GAS_N2 + "=82;TEMP=180" // CELCIUS_TO_KELVIN(-93.15 CELCIUS)
/// -14°C snow and ice turfs, a more breatheable coldroom atmos.
#define COLD_ATMOS GAS_O2 + "=22;" + GAS_N2 + "=82;TEMP=259.15"
#define COLD_ATMOS GAS_O2 + "=22;" + GAS_N2 + "=82;TEMP=259.15" // CELCIUS_TO_KELVIN(-14 CELCIUS) or COLD_ROOM_TEMP
/// -14°C kitchen coldroom, just might loss your tail; higher amount of mol to reach about 101.3 kpA
#define KITCHEN_COLDROOM_ATMOS GAS_O2 + "=26;" + GAS_N2 + "=97;TEMP=259.15"
#define KITCHEN_COLDROOM_ATMOS GAS_O2 + "=26;" + GAS_N2 + "=97;TEMP=259.15" // COLD_ROOM_TEMP
/// used in the holodeck burn test program
#define BURNMIX_ATMOS GAS_O2 + "=2500;" + GAS_PLASMA + "=5000;TEMP=370"
#define BURNMIX_ATMOS GAS_O2 + "=2500;" + GAS_PLASMA + "=5000;TEMP=370" // CELCIUS_TO_KELVIN(96.85 CELCIUS)
///-153.15°C plasma air, used for burning people.
#define BURNING_COLD GAS_N2 + "=82;" + GAS_PLASMA + "=24;TEMP=120"
#define BURNING_COLD GAS_N2 + "=82;" + GAS_PLASMA + "=24;TEMP=120" // CELCIUS_TO_KELVIN(-153.15 CELCIUS)
///Space temperature hyper nob
#define SPACE_TEMP_NOBLIUM GAS_HYPER_NOBLIUM + "=7500;TEMP=2.7"
#define SPACE_TEMP_NOBLIUM GAS_HYPER_NOBLIUM + "=7500;TEMP=2.7" // TCMB

//ATMOSPHERICS DEPARTMENT GAS TANK TURFS
#define ATMOS_TANK_N2O GAS_N2O + "=6000;TEMP=293.15"
Expand Down
163 changes: 105 additions & 58 deletions code/__DEFINES/atmospherics/atmos_mob_interaction.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,63 +41,110 @@
/// This is when the black ultra-low pressure icon is displayed. (This one is set as a constant)
#define HAZARD_LOW_PRESSURE 20

/// This is used in handle_temperature_damage() for humans, and in reagents that affect body temperature. Temperature damage is multiplied by this amount.
#define TEMPERATURE_DAMAGE_COEFFICIENT 1.5

/// The maximum temperature of Lavaland
#define LAVALAND_MAX_TEMPERATURE 350
#define LAVALAND_MAX_TEMPERATURE CELCIUS_TO_KELVIN(76.85 CELCIUS)// 350 KELVIN
/// The minimum temperature of Icebox
#define ICEBOX_MIN_TEMPERATURE 180
#define ICEBOX_MIN_TEMPERATURE CELCIUS_TO_KELVIN(-93.15 CELCIUS) // 180 KELVIN

/// Default maximum body temperature mobs can exist in before taking damage
#define NPC_DEFAULT_MAX_TEMP CELCIUS_TO_KELVIN(76.85 CELCIUS)// 350 KELVIN
/// Default minimum body temperature mobs can exist in before taking damage
#define NPC_DEFAULT_MIN_TEMP CELCIUS_TO_KELVIN(-23.15 CELCIUS)// 250 KELVIN

// Helpers for temperature conversion
#define FAHRENHEIT_TO_KELVIN(x) (((x) + 459.67) * 5 / 9)
#define KELVIN_TO_FAHRENHEIT(x) (((x) * 9 / 5) - 459.67)
#define CELCIUS_TO_KELVIN(x) ((x) + 273.15)
#define KELVIN_TO_CELCIUS(x) ((x) - 273.15)
#define CELCIUS_TO_FAHRENHEIT(x) (((x) * 9 / 5) + 32)
#define FAHRENHEIT_TO_CELSIUS(x) (((x) - 32) * 5 / 9)

// These defines do nothing but can be used to make the code more readable by indicating temperature units
#define CELCIUS * 1
#define FAHRENHEIT * 1
#define KELVIN * 1

// Defines the cap on fast your body normalizes to the environment
/// Max negative change in temperature during natural body temperature stabilization
#define BODYTEMP_ENVIRONMENT_COOLING_MAX -30 KELVIN // needs to be relatively high, as otherwise you will make space not deadly
/// Max positive change in temperature during natural body temperature stabilization
#define BODYTEMP_ENVIRONMENT_HEATING_MAX 20 KELVIN // should not be too high, as otherwise atmos meme fires will be extremely deadly

// Defines the cap on how fast your body normalizes back to it's normal temperature
// based on the above defines - you should always normalize at a fraction of the potential of the environment.
// otherwise, extreme temperatures become jokes
/// Max change in temperature during natural body temperature stabilization
#define BODYTEMP_HOMEOSTASIS_COOLING_MAX (BODYTEMP_ENVIRONMENT_COOLING_MAX / 20)
/// Max change in temperature during natural body temperature stabilization
#define BODYTEMP_HOMEOSTASIS_HEATING_MAX (BODYTEMP_ENVIRONMENT_HEATING_MAX / 16)

// These defines are DEFAULTS for most mobs
// Mobs can override these to have whatever they want
// That means in a lot of situations (namely mob code) you should not directly use these,
// and instead use the relevant mob vars UNLESS you intentionally are using defaults over reality

/// The natural temperature for a body
#define BODYTEMP_NORMAL 310.15
/// This is the divisor which handles how much of the temperature difference between the current body temperature and 310.15K (optimal temperature) humans auto-regenerate each tick. The higher the number, the slower the recovery. This is applied each tick, so long as the mob is alive.
#define BODYTEMP_AUTORECOVERY_DIVISOR 28
/// Minimum amount of kelvin moved toward 310K per tick. So long as abs(310.15 - bodytemp) is more than 50.
#define BODYTEMP_AUTORECOVERY_MINIMUM 3
///Similar to the BODYTEMP_AUTORECOVERY_DIVISOR, but this is the divisor which is applied at the stage that follows autorecovery. This is the divisor which comes into play when the human's loc temperature is lower than their body temperature. Make it lower to lose bodytemp faster.
#define BODYTEMP_COLD_DIVISOR 15
/// Similar to the BODYTEMP_AUTORECOVERY_DIVISOR, but this is the divisor which is applied at the stage that follows autorecovery. This is the divisor which comes into play when the human's loc temperature is higher than their body temperature. Make it lower to gain bodytemp faster.
#define BODYTEMP_HEAT_DIVISOR 15
/// The maximum number of degrees that your body can cool in 1 tick, due to the environment, when in a cold area.
#define BODYTEMP_COOLING_MAX -30
/// The maximum number of degrees that your body can heat up in 1 tick, due to the environment, when in a hot area.
#define BODYTEMP_HEATING_MAX 30
#define BODYTEMP_NORMAL CELCIUS_TO_KELVIN(37 CELCIUS)
/// Beyond this point a mob is considered hyperthermic
#define HYPERTHERMIA (BODYTEMP_NORMAL + 5 CELCIUS)
/// Beyond this point a mob is considered hypothermic
#define HYPOTHERMIA (BODYTEMP_NORMAL - 5 CELCIUS)

/// The body temperature limit the human body can take before it starts taking damage from heat.
/// This also affects how fast the body normalises it's temperature when hot.
/// 340k is about 66c, and rather high for a human.
#define BODYTEMP_HEAT_DAMAGE_LIMIT (BODYTEMP_NORMAL + 30)
/// A temperature limit which is above the maximum lavaland temperature
#define BODYTEMP_HEAT_LAVALAND_SAFE (LAVALAND_MAX_TEMPERATURE + 5)
#define BODYTEMP_HEAT_DAMAGE_LIMIT CELCIUS_TO_KELVIN(45 CELCIUS)
/// The body temperature limit the human body can take before it starts taking damage from cold.
/// This also affects how fast the body normalises it's temperature when cold.
/// 270k is about -3c, that is below freezing and would hurt over time.
#define BODYTEMP_COLD_DAMAGE_LIMIT (BODYTEMP_NORMAL - 40)
#define BODYTEMP_COLD_DAMAGE_LIMIT CELCIUS_TO_KELVIN(20 CELCIUS)

/// Temp at which the environment might be cold to be concerned about
#define ENVIRONMENT_WARN_COLD (BODYTEMP_COLD_DAMAGE_LIMIT - 10 CELCIUS)
/// Temp at which the environment might be hot to be concerned about
#define ENVIRONMENT_WARN_HEAT (BODYTEMP_HEAT_DAMAGE_LIMIT + 5 CELCIUS)
/// Temp at which the environment is cold enough to be dangerous
#define ENVIRONMENT_HAZARD_COLD (BODYTEMP_COLD_DAMAGE_LIMIT - 40 CELCIUS)
/// Temp at which the environment is hot enough to be dangerous
#define ENVIRONMENT_HAZARD_HEAT (BODYTEMP_HEAT_DAMAGE_LIMIT + 20 CELCIUS)

/// A temperature limit which is above the maximum lavaland temperature
#define BODYTEMP_HEAT_LAVALAND_SAFE (LAVALAND_MAX_TEMPERATURE + 5 KELVIN)
/// A temperature limit which is above the minimum icebox temperature
#define BODYTEMP_COLD_ICEBOX_SAFE (ICEBOX_MIN_TEMPERATURE - 5)
/// The body temperature limit the human body can take before it will take wound damage.
#define BODYTEMP_HEAT_WOUND_LIMIT (BODYTEMP_NORMAL + 90) // 400.5 k
/// The modifier on cold damage limit hulks get ontop of their regular limit
#define BODYTEMP_HULK_COLD_DAMAGE_LIMIT_MODIFIER 25
/// The modifier on cold damage hulks get.
#define HULK_COLD_DAMAGE_MOD 2
#define BODYTEMP_COLD_ICEBOX_SAFE (ICEBOX_MIN_TEMPERATURE - 5 KELVIN)

// Body temperature warning icons
// These are not actually used by mobs (mobs do math on the above defines)
// but are used by atmos components to determine what may be a dangerous range
/// The temperature the red icon is displayed.
#define BODYTEMP_HEAT_WARNING_3 (BODYTEMP_HEAT_DAMAGE_LIMIT + 360) //+700k
#define BODYTEMP_HEAT_WARNING_3 (BODYTEMP_NORMAL + 23 CELCIUS) // CELCIUS_TO_KELVIN(60 CELCIUS)
/// The temperature the orange icon is displayed.
#define BODYTEMP_HEAT_WARNING_2 (BODYTEMP_HEAT_DAMAGE_LIMIT + 120) //460K
#define BODYTEMP_HEAT_WARNING_2 (BODYTEMP_NORMAL + 13 CELCIUS) // CELCIUS_TO_KELVIN(50 CELCIUS)
/// The temperature the yellow icon is displayed.
#define BODYTEMP_HEAT_WARNING_1 (BODYTEMP_HEAT_DAMAGE_LIMIT) //340K
#define BODYTEMP_HEAT_WARNING_1 (BODYTEMP_NORMAL + 3 CELCIUS) // CELCIUS_TO_KELVIN(40 CELCIUS)
/// The temperature the light green icon is displayed.
#define BODYTEMP_COLD_WARNING_1 (BODYTEMP_COLD_DAMAGE_LIMIT) //270k
#define BODYTEMP_COLD_WARNING_1 (BODYTEMP_NORMAL - 7 CELCIUS) // CELCIUS_TO_KELVIN(30 CELCIUS)
/// The temperature the cyan icon is displayed.
#define BODYTEMP_COLD_WARNING_2 (BODYTEMP_COLD_DAMAGE_LIMIT - 70) //200k
#define BODYTEMP_COLD_WARNING_2 (BODYTEMP_NORMAL - 17 CELCIUS) // CELCIUS_TO_KELVIN(20 CELCIUS)
/// The temperature the blue icon is displayed.
#define BODYTEMP_COLD_WARNING_3 (BODYTEMP_COLD_DAMAGE_LIMIT - 150) //120k
#define BODYTEMP_COLD_WARNING_3 (BODYTEMP_NORMAL - 27 CELCIUS) // CELCIUS_TO_KELVIN(10 CELCIUS)

// Ok defaults over

/// Beyond this body temperature, being on fire will increase body temperature by less and less
#define BODYTEMP_FIRE_TEMP_SOFTCAP 500 KELVIN

/// Amount of heating applied per fire stack per tick while on fire
#define HEAT_PER_FIRE_STACK 0.075 KELVIN
/// Amount of direct damage applied per fire stack per tick while on fire
#define BURN_DAMAGE_PER_FIRE_STACK 0.1

/// Beyond this temperature, being on fire will increase body temperature by less and less
#define BODYTEMP_FIRE_TEMP_SOFTCAP 1200
/// A warm drink will increase body temperature by this much
#define WARM_DRINK 0.25 KELVIN
/// A cold drink will decrease body temperature by this much
#define COLD_DRINK -0.25 KELVIN

/// The modifier on cold damage limit hulks get ontop of their regular limit
#define BODYTEMP_HULK_COLD_DAMAGE_LIMIT_MODIFIER 5 KELVIN
/// The modifier on cold damage hulks get.
#define HULK_COLD_DAMAGE_MOD 2

/// The amount of pressure damage someone takes is equal to (pressure / HAZARD_HIGH_PRESSURE)*PRESSURE_DAMAGE_COEFFICIENT, with the maximum of MAX_PRESSURE_DAMAGE
#define PRESSURE_DAMAGE_COEFFICIENT 2
Expand All @@ -112,44 +159,44 @@
//CLOTHES

/// what min_cold_protection_temperature is set to for space-helmet quality headwear. MUST NOT BE 0.
#define SPACE_HELM_MIN_TEMP_PROTECT 2.0
#define SPACE_HELM_MIN_TEMP_PROTECT 2.0 KELVIN
/// Thermal insulation works both ways /Malkevin
#define SPACE_HELM_MAX_TEMP_PROTECT 1500
#define SPACE_HELM_MAX_TEMP_PROTECT 1500 KELVIN
/// what min_cold_protection_temperature is set to for space-suit quality jumpsuits or suits. MUST NOT BE 0.
#define SPACE_SUIT_MIN_TEMP_PROTECT 2.0
#define SPACE_SUIT_MIN_TEMP_PROTECT 2.0 KELVIN
/// The min cold protection of a space suit without the heater active
#define SPACE_SUIT_MIN_TEMP_PROTECT_OFF 72
#define SPACE_SUIT_MAX_TEMP_PROTECT 1500
#define SPACE_SUIT_MIN_TEMP_PROTECT_OFF 72 KELVIN
#define SPACE_SUIT_MAX_TEMP_PROTECT 1500 KELVIN

/// Cold protection for firesuits
#define FIRE_SUIT_MIN_TEMP_PROTECT 60
#define FIRE_SUIT_MIN_TEMP_PROTECT 60 KELVIN
/// what max_heat_protection_temperature is set to for firesuit quality suits. MUST NOT BE 0.
#define FIRE_SUIT_MAX_TEMP_PROTECT 30000
#define FIRE_SUIT_MAX_TEMP_PROTECT 30000 KELVIN
/// Cold protection for fire helmets
#define FIRE_HELM_MIN_TEMP_PROTECT 60
#define FIRE_HELM_MIN_TEMP_PROTECT 60 KELVIN
/// for fire helmet quality items (red and white hardhats)
#define FIRE_HELM_MAX_TEMP_PROTECT 30000
#define FIRE_HELM_MAX_TEMP_PROTECT 30000 KELVIN

/// what max_heat_protection_temperature is set to for firesuit quality suits and helmets. MUST NOT BE 0.
#define FIRE_IMMUNITY_MAX_TEMP_PROTECT 35000
#define FIRE_IMMUNITY_MAX_TEMP_PROTECT 35000 KELVIN

/// For normal helmets
#define HELMET_MIN_TEMP_PROTECT 160
#define HELMET_MIN_TEMP_PROTECT 160 KELVIN
/// For normal helmets
#define HELMET_MAX_TEMP_PROTECT 600
#define HELMET_MAX_TEMP_PROTECT 600 KELVIN
/// For armor
#define ARMOR_MIN_TEMP_PROTECT 160
#define ARMOR_MIN_TEMP_PROTECT 160 KELVIN
/// For armor
#define ARMOR_MAX_TEMP_PROTECT 600
#define ARMOR_MAX_TEMP_PROTECT 600 KELVIN

/// For some gloves (black and)
#define GLOVES_MIN_TEMP_PROTECT 2.0
#define GLOVES_MIN_TEMP_PROTECT 2.0 KELVIN
/// For some gloves
#define GLOVES_MAX_TEMP_PROTECT 1500
#define GLOVES_MAX_TEMP_PROTECT 1500 KELVIN
/// For gloves
#define SHOES_MIN_TEMP_PROTECT 2.0
#define SHOES_MIN_TEMP_PROTECT 2.0 KELVIN
/// For gloves
#define SHOES_MAX_TEMP_PROTECT 1500
#define SHOES_MAX_TEMP_PROTECT 1500 KELVIN

///Minimum temperature for items on fire
#define BURNING_ITEM_MINIMUM_TEMPERATURE (150+T0C)
6 changes: 4 additions & 2 deletions code/__DEFINES/dcs/signals/signals_mob/signals_mob_carbon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@
#define COMSIG_HUMAN_PREFS_APPLIED "human_prefs_applied"
///Whenever EquipRanked is called, called after job is set
#define COMSIG_JOB_RECEIVED "job_received"
///from /mob/living/carbon/human/proc/set_coretemperature(): (oldvalue, newvalue)
#define COMSIG_HUMAN_CORETEMP_CHANGE "human_coretemp_change"
///from /datum/species/handle_fire. Called when the human is set on fire and burning clothes and stuff
#define COMSIG_HUMAN_BURNING "human_burning"
/// Return to do no burn damage
#define BURNING_HANDLED (1<<0)
/// Return to skip protection check (ie, cause damage even if wearing fireproof clothing)
#define BURNING_SKIP_PROTECTION (1<<1)
///from /mob/living/carbon/human/proc/force_say(): ()
#define COMSIG_HUMAN_FORCESAY "human_forcesay"

Expand Down
8 changes: 8 additions & 0 deletions code/__DEFINES/dcs/signals/signals_mob/signals_mob_living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,11 @@
#define COMSIG_MOB_REMOVING_CUFFS "living_removing_cuffs"
/// Sent as a reply to above from any atom that wishs to stop self-cuff removal
#define COMSIG_MOB_BLOCK_CUFF_REMOVAL (1<<0)

#define COMSIG_LIVING_BODY_TEMPERATURE_CHANGE "living_body_temperature_change"

#define COMSIG_LIVING_HOMEOSTASIS "living_homeostasis"
/// Return to do no homeostasis at all
#define HOMEOSTASIS_HANDLED (1<<0)
/// Return to not reduce hunger at all
#define HOMEOSTASIS_NO_HUNGER (1<<1)
Loading

0 comments on commit fa2d841

Please sign in to comment.