Files
Bubberstation/code/game/turfs/baseturf_skipover.dm
Y0SH1M4S73RandGitHub 6979f2b374 Fixes interactions between shuttles and trapdoors (#93970)
## About The Pull Request

This PR makes several changes to trapdoors to remove wrong interactions
that occur should one be built on a shuttle:
- Trapdoors built on a shuttle will be carried along with the shuttle
when it moves. Even when they are open.
- If a shuttle lands on a trapdoor without breaking it, the trapdoor
will not function while the shuttle's floor lies on top of it.
- Shuttles with open trapdoors inside of them will not magically bring
open space into transit.
- A trapdoor moved on top of a non-openspace tile using a shuttle will
open to the turf that was originally under the shuttle.

## Why It's Good For The Game

Fixes #93924, and also adds a new feature to what is possible with
custom shuttles on multi-z maps.

## Changelog

🆑
add: Trapdoors built inside of a shuttle will move along with the
shuttle.
fix: Open trapdoors will not cause shuttles containing them to bring
open space into transit.
/🆑
2025-11-28 16:15:18 +13:00

23 lines
841 B
Plaintext

// This is a typepath to just sit in baseturfs and act as a marker for other things.
/turf/baseturf_skipover
name = "Baseturf skipover placeholder"
desc = "This shouldn't exist"
/turf/baseturf_skipover/Initialize(mapload)
. = ..()
stack_trace("[src]([type]) was instanced which should never happen. Changing into the next baseturf down...")
ScrapeAway()
/turf/baseturf_skipover/shuttle
name = "Shuttle baseturf skipover"
desc = "Acts as the bottom of the shuttle, if this isn't here the shuttle floor is broken through."
/turf/baseturf_skipover/trapdoor
name = "Trapdoor baseturf skipover"
desc = "Acts as the bottom of a stack of baseturfs affected by a trapdoor."
/turf/baseturf_bottom
name = "Z-level baseturf placeholder"
desc = "Marker for z-level baseturf, usually resolves to space."
baseturfs = /turf/baseturf_bottom