Skip to content

Commit

Permalink
Some more runtime fixes (wow this code is garbage)
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Sep 27, 2024
1 parent 521957e commit 6fc81e6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions code/game/objects/effects/decals/cleanable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
for(var/datum/disease/D in diseases)
if(D.spread_flags & (DISEASE_SPREAD_BLOOD))
src.diseases |= D

AddElement(/datum/element/beauty, beauty)

var/turf/T = get_turf(src)
Expand Down Expand Up @@ -82,16 +82,14 @@
if(W.get_temperature()) //todo: make heating a reagent holder proc
if(istype(W, /obj/item/clothing/mask/cigarette))
return
else
var/hotness = W.get_temperature()
reagents.expose_temperature(hotness)
to_chat(user, span_notice("You heat [name] with [W]!"))
var/hotness = W.get_temperature()
reagents?.expose_temperature(hotness)
to_chat(user, span_notice("You heat [name] with [W]!"))
else
return ..()

/obj/effect/decal/cleanable/fire_act(exposed_temperature, exposed_volume)
if(reagents)
reagents.expose_temperature(exposed_temperature)
reagents?.expose_temperature(exposed_temperature)
..()


Expand Down

0 comments on commit 6fc81e6

Please sign in to comment.