Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions code/modules/surgery/organs/lungs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@
if(breath_temperature < cold_level_1_threshold)
if(prob(20))
to_chat(H, span_warning("You feel [cold_message] in your [name]!"))
if(!H.internal && breath.return_pressure() > HAZARD_LOW_PRESSURE) //dripstation edit
new /obj/effect/frosty_breath(loc, H) //dripstation edit

if(!HAS_TRAIT(H, TRAIT_RESISTHEAT)) // HEAT DAMAGE
var/heat_modifier = H.dna.species.heatmod
Expand Down
19 changes: 18 additions & 1 deletion modular_dripstation/code/game/effects/temporary_visuals/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,21 @@
. = ..()
pixel_x = rand(-4,0)
pixel_y = rand(8,12)
animate(src, pixel_y = pixel_y + 16, alpha = 0, time = duration)
animate(src, pixel_y = pixel_y + 16, alpha = 0, time = duration)

/obj/effect/frosty_breath
icon = 'modular_dripstation/icons/effects/effects.dmi'
icon_state = "frosty_breath"
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
layer = ABOVE_MOB_LAYER
anchored = TRUE

/obj/effect/frosty_breath/Initialize(mapload, mob/living/carbon/human/H)
. = ..()
dir = H.dir
if(H.buckled)
pixel_y = (H.get_standard_pixel_y_offset(H.lying) + 10)
if(dir == NORTH)
layer = BELOW_MOB_LAYER
flick("breath_[H.lying_prev]", src)
QDEL_IN(src, 2 SECONDS)
Binary file modified modular_dripstation/icons/effects/effects.dmi
Binary file not shown.