mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
ATMOS Resin removes iciness from floors (#29967)
* atmos resin now makes the floor non-slippery, increased the turf coverage of resin by one unit * Atmos resin removes wetness on floor tiles upon generation
This commit is contained in:
@@ -271,6 +271,7 @@
|
|||||||
. = ..()
|
. = ..()
|
||||||
if(isopenturf(loc))
|
if(isopenturf(loc))
|
||||||
var/turf/open/O = loc
|
var/turf/open/O = loc
|
||||||
|
O.ClearWet()
|
||||||
if(O.air)
|
if(O.air)
|
||||||
var/datum/gas_mixture/G = O.air
|
var/datum/gas_mixture/G = O.air
|
||||||
G.temperature = 293.15
|
G.temperature = 293.15
|
||||||
|
|||||||
@@ -324,7 +324,7 @@
|
|||||||
|
|
||||||
/obj/effect/resin_container/proc/Smoke()
|
/obj/effect/resin_container/proc/Smoke()
|
||||||
var/obj/effect/particle_effect/foam/metal/resin/S = new /obj/effect/particle_effect/foam/metal/resin(get_turf(loc))
|
var/obj/effect/particle_effect/foam/metal/resin/S = new /obj/effect/particle_effect/foam/metal/resin(get_turf(loc))
|
||||||
S.amount = 3
|
S.amount = 4
|
||||||
playsound(src,'sound/effects/bamf.ogg',100,1)
|
playsound(src,'sound/effects/bamf.ogg',100,1)
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|
||||||
|
|||||||
@@ -299,3 +299,9 @@
|
|||||||
wet_time = 0
|
wet_time = 0
|
||||||
if(wet)
|
if(wet)
|
||||||
addtimer(CALLBACK(src, .proc/HandleWet), 15, TIMER_UNIQUE)
|
addtimer(CALLBACK(src, .proc/HandleWet), 15, TIMER_UNIQUE)
|
||||||
|
|
||||||
|
/turf/open/proc/ClearWet()//Nuclear option of immediately removing slipperyness from the tile instead of the natural drying over time
|
||||||
|
wet = TURF_DRY
|
||||||
|
UpdateSlip()
|
||||||
|
if(wet_overlay)
|
||||||
|
cut_overlay(wet_overlay)
|
||||||
Reference in New Issue
Block a user