mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-13 08:56:49 +01:00
Visual / layering fixes (#19547)
Package of a few visual changes to make things prettier-er. Also added a helper for mapping purposes. - bugfix: "Carpets now show proper edges again." - bugfix: "Fixed layering of several map items, like disposal pipes, that were previously buried underneath turfs in the map editor (and were invisible as a result)." - bugfix: "Fixed observer sprites occasionally going underneath certain objects. Their layering has been fixed." - bugfix: "Reinforced plastic tables now show up correctly in the map editor." - rscadd: "Added a special 'lock' door helper that automatically locks doors underneath it so mappers don't have to edit variables/icon states manually."    Fixes #18762 Fixes #18840 Fixes #19101
This commit is contained in:
@@ -59,3 +59,14 @@
|
||||
"red" = list(19,38),
|
||||
"delta" = list(19,38)
|
||||
)
|
||||
|
||||
/// Locks/bolts any (lockable) door/airlock this marker is placed on.
|
||||
/obj/effect/map_effect/door_helper/lock
|
||||
icon_state = "locked"
|
||||
|
||||
/obj/effect/map_effect/door_helper/lock/modify_door(obj/machinery/door/D)
|
||||
. = ..()
|
||||
if(isairlock(D))
|
||||
var/obj/machinery/door/airlock/A = D
|
||||
A.locked = TRUE
|
||||
A.set_airlock_overlays(AIRLOCK_CLOSED)
|
||||
|
||||
Reference in New Issue
Block a user