mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Handle ice wetting differently. (Fixes #18)
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
/turf/simulated/var/tmp/was_icy=0
|
||||
|
||||
/turf/simulated/proc/update_visuals()
|
||||
overlays = null
|
||||
overlays.Cut()
|
||||
|
||||
var/siding_icon_state = return_siding_icon_state()
|
||||
if(siding_icon_state)
|
||||
@@ -61,9 +61,13 @@
|
||||
// ONLY USED IF ZAS_SETTINGS SAYS SO.
|
||||
var/datum/gas_mixture/model = return_air()
|
||||
if(model.graphics & GRAPHICS_COLD)
|
||||
if(!was_icy)
|
||||
// Only make a few tiles ice at a time.
|
||||
if(!was_icy) // && prob(10))
|
||||
wet=3 // Custom ice
|
||||
was_icy=1
|
||||
|
||||
// Only display ice on tiles that are actually icy.
|
||||
if(was_icy)
|
||||
var/o=""
|
||||
//if(is_plating())
|
||||
// o="snowfloor_s"
|
||||
@@ -73,32 +77,33 @@
|
||||
if(o!="")
|
||||
overlays += image('icons/turf/overlays.dmi',o)
|
||||
else
|
||||
if(was_icy)
|
||||
wet=0
|
||||
was_icy=0
|
||||
if(prob(10))
|
||||
wet = 1
|
||||
// ALWAYS unset wet and icy.
|
||||
wet=0
|
||||
was_icy=0
|
||||
|
||||
// 10% chance of becoming wet on thawing
|
||||
if(prob(10) && was_icy)
|
||||
wet = 1
|
||||
if(wet_overlay)
|
||||
overlays -= wet_overlay
|
||||
wet_overlay = null
|
||||
wet_overlay = image('icons/effects/water.dmi',src,"wet_floor")
|
||||
overlays += wet_overlay
|
||||
|
||||
spawn(800)
|
||||
if (!istype(src)) return
|
||||
if(wet >= 2) return
|
||||
wet = 0
|
||||
if(wet_overlay)
|
||||
overlays -= wet_overlay
|
||||
wet_overlay = null
|
||||
wet_overlay = image('icons/effects/water.dmi',src,"wet_floor")
|
||||
overlays += wet_overlay
|
||||
|
||||
spawn(800)
|
||||
if (!istype(src)) return
|
||||
if(wet >= 2) return
|
||||
wet = 0
|
||||
if(wet_overlay)
|
||||
overlays -= wet_overlay
|
||||
wet_overlay = null
|
||||
if(model.graphics & GRAPHICS_PLASMA)
|
||||
overlays.Add(plmaster)
|
||||
else
|
||||
overlays -= plmaster
|
||||
|
||||
if(model.graphics & GRAPHICS_N2O)
|
||||
overlays.Add(slmaster)
|
||||
else
|
||||
overlays -= slmaster
|
||||
|
||||
//if(model.graphics & GRAPHICS_REAGENTS)
|
||||
// overlays.Add(slmaster/*rlmaster*/)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user