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
+3 -2
View File
@@ -17,8 +17,7 @@ LINEN BINS
icon_state = "sheetwhite"
inhand_icon_state = "sheetwhite"
slot_flags = ITEM_SLOT_NECK
layer = MOB_LAYER
plane = GAME_PLANE_FOV_HIDDEN
layer = BELOW_MOB_LAYER
throwforce = 0
throw_speed = 1
throw_range = 2
@@ -46,11 +45,13 @@ LINEN BINS
return
if(layer == initial(layer))
layer = ABOVE_MOB_LAYER
plane = GAME_PLANE_UPPER
to_chat(user, span_notice("You cover yourself with [src]."))
pixel_x = 0
pixel_y = 0
else
layer = initial(layer)
plane = initial(plane)
to_chat(user, span_notice("You smooth [src] out beneath you."))
add_fingerprint(user)
return