Skip to content

Commit

Permalink
platform / railing direction (#3933)
Browse files Browse the repository at this point in the history
## About The Pull Request

railing / platforms now are on lower layers when their direction is a
northfacing dir.

## Changelog

:cl:
code: railing / platforms now are on lower layers when their direction
is a northfacing dir.
/:cl:
  • Loading branch information
Erikafox authored Jan 6, 2025
1 parent 8f04400 commit 19e1e5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/game/objects/structures/platforms.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

/obj/structure/platform/update_appearance(updates)
. = ..()
if(dir == 1)
layer = 2.89
if(dir == (1 || 5 || 9))
layer = 2.76
else
layer = 3.08

Expand Down
8 changes: 7 additions & 1 deletion code/game/objects/structures/railings.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
var/buildstack = /obj/item/stack/rods
var/buildstackamount = 3


/obj/structure/railing/Initialize()
. = ..()
if(density && flags_1 & ON_BORDER_1)
Expand All @@ -22,6 +21,13 @@
)
AddElement(/datum/element/connect_loc, loc_connections)

/obj/structure/railing/update_appearance(updates)
. = ..()
if(dir == (1 || 5 || 9))
layer = 2.76
else
layer = 3.08

/obj/structure/railing/corner //aesthetic corner sharp edges hurt oof ouch
icon_state = "railing_corner"
density = FALSE
Expand Down

0 comments on commit 19e1e5f

Please sign in to comment.