Merge pull request #5439 from Neerti/layer_fixes

Fixes layering issues for a few things
This commit is contained in:
Anewbe
2018-07-25 16:25:52 -05:00
committed by GitHub
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -4,7 +4,8 @@
anchored = 1
density = 1
pixel_x = -16
layer = MOB_LAYER // You know what, let's play it safe.
plane = MOB_LAYER // You know what, let's play it safe.
layer = ABOVE_MOB_LAYER
var/base_state = null // Used for stumps.
var/health = 200 // Used for chopping down trees.
var/max_health = 200
@@ -54,8 +54,8 @@ var/list/turf_edge_cache = list()
if(istype(T) && T.edge_blending_priority && edge_blending_priority < T.edge_blending_priority && icon_state != T.icon_state)
var/cache_key = "[T.get_edge_icon_state()]-[checkdir]"
if(!turf_edge_cache[cache_key])
var/image/I = image(icon = 'icons/turf/outdoors_edge.dmi', icon_state = "[T.get_edge_icon_state()]-edge", dir = checkdir)
I.plane = 0
var/image/I = image(icon = 'icons/turf/outdoors_edge.dmi', icon_state = "[T.get_edge_icon_state()]-edge", dir = checkdir, layer = ABOVE_TURF_LAYER)
I.plane = TURF_PLANE
turf_edge_cache[cache_key] = I
add_overlay(turf_edge_cache[cache_key])
@@ -6,7 +6,7 @@
anchored = 1
density = 0
opacity = 0
layer = FLY_LAYER
plane = ABOVE_PLANE
simulated = 0
mouse_opacity = 0