Fixes layering issues brought by the FoV PR. (#63903)

* Fixed most (not all) incorrect planes and layers detected by the unit test.
This commit is contained in:
Ghom
2022-02-09 19:40:00 +01:00
committed by GitHub
parent e3378532c3
commit c5d2b2e51e
111 changed files with 237 additions and 36 deletions
+6 -3
View File
@@ -103,6 +103,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
var/col_mod = null
var/image/current_image = null
var/image_layer = MOB_LAYER
var/image_plane = GAME_PLANE
var/active = TRUE //qdelery
/obj/effect/hallucination/singularity_pull()
@@ -123,6 +124,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
/obj/effect/hallucination/simple/proc/GetImage()
var/image/I = image(image_icon,src,image_state,image_layer,dir=src.dir)
I.plane = image_plane
I.pixel_x = px
I.pixel_y = py
if(col_mod)
@@ -168,7 +170,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
icon_state = "nothing"
anchored = TRUE
layer = FLY_LAYER
plane = GAME_PLANE
plane = ABOVE_GAME_PLANE
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
/datum/hallucination/fake_flood
@@ -195,7 +197,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
var/obj/effect/plasma_image_holder/pih = new(center)
var/image/plasma_image = image(image_icon, pih, image_state, FLY_LAYER)
plasma_image.alpha = 50
plasma_image.plane = GAME_PLANE
plasma_image.plane = ABOVE_GAME_PLANE
flood_images += plasma_image
flood_image_holders += pih
flood_turfs += center
@@ -226,7 +228,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
var/obj/effect/plasma_image_holder/pih = new(T)
var/image/new_plasma = image(image_icon, pih, image_state, FLY_LAYER)
new_plasma.alpha = 50
new_plasma.plane = GAME_PLANE
new_plasma.plane = ABOVE_GAME_PLANE
flood_images += new_plasma
flood_image_holders += pih
flood_turfs += T
@@ -790,6 +792,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
/obj/effect/hallucination/fake_door_lock
layer = CLOSED_DOOR_LAYER + 1 //for Bump priority
plane = GAME_PLANE
var/image/bolt_light
var/obj/machinery/door/airlock/airlock