mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 12:13:06 +00:00
@@ -357,6 +357,17 @@
|
|||||||
internals.icon_state = "internal0"
|
internals.icon_state = "internal0"
|
||||||
return null
|
return null
|
||||||
|
|
||||||
|
/mob/living/carbon/human/get_breath_from_environment(var/volume_needed=BREATH_VOLUME)
|
||||||
|
var/datum/gas_mixture/breath = ..()
|
||||||
|
|
||||||
|
if(breath)
|
||||||
|
//exposure to extreme pressures can rupture lungs
|
||||||
|
var/check_pressure = breath.return_pressure()
|
||||||
|
if(check_pressure < ONE_ATMOSPHERE / 5 || check_pressure > ONE_ATMOSPHERE * 5)
|
||||||
|
if(is_lung_ruptured() && prob(5))
|
||||||
|
rupture_lung()
|
||||||
|
|
||||||
|
return breath
|
||||||
|
|
||||||
/mob/living/carbon/human/handle_breath(datum/gas_mixture/breath)
|
/mob/living/carbon/human/handle_breath(datum/gas_mixture/breath)
|
||||||
if(status_flags & GODMODE)
|
if(status_flags & GODMODE)
|
||||||
|
|||||||
@@ -348,9 +348,8 @@ var/list/solars_list = list()
|
|||||||
|
|
||||||
/obj/machinery/power/solar_control/initialize()
|
/obj/machinery/power/solar_control/initialize()
|
||||||
..()
|
..()
|
||||||
if(!powernet) return
|
if(!connect_to_network()) return
|
||||||
set_panels(cdir)
|
set_panels(cdir)
|
||||||
connect_to_network()
|
|
||||||
|
|
||||||
/obj/machinery/power/solar_control/update_icon()
|
/obj/machinery/power/solar_control/update_icon()
|
||||||
if(stat & BROKEN)
|
if(stat & BROKEN)
|
||||||
|
|||||||
Reference in New Issue
Block a user