Files
GhomandGitHub 77fbd93641 Operation "WDYM They can teleport on away missions?!" phase 1: Stuck Inside Indestructible Walls (#96370)
## About The Pull Request
Somehow, we can teleport on away missions when we used not to be able to
a long time ago.
I'm not against it, however it can end quite badly with people getting
stuck in indestructible walls or stuff like that, or end up somewhere
with cordon turfs decoupled from the cordon area (museum cough cough),
which doto your spaceman what Dr. Manhattan did to Rorschach btw.

I'm totally fine with spacemen getting stuck on destructible turfs,
rocks that can be mined, machinery and other destructible or movable
structures, areas that are hard to access in and out, behind shutters
and puzzle doors or even at the rims of indestructible walls if they're
connected to any of the aforementioned things. It isn't a rigid
standard, using random teleportation to cheese away levels should be a
risky endeavor, but I also don't believe that you should end up
teleported somewhere that you cannot otherwise escape on your own or be
hypothetically freed from by another spaceman without more teleportation
having to be involved 100% of the times (or admins if they feel
merciful). That's where I draw the line.

Beside, more than a few maps didn't use cordon turfs and/or turfs or had
these massive portions of indestructible walls.

Oh, by the by, a little unrelated but I'm bringing the visuals of
indestructible "rock" walls up to date with the visuals for rock turfs
that can be mined. Included are also icon-states so that the two can be
easily distinguished during mapping.

Feedback welcome.

## Why It's Good For The Game
I'm not against using teleportation for away missions. Right now there
are a couple easter egg areas that can only be accessed that way.
However the risks of getting GBJ'd are immense if done randomly.

Also for some reason, despite having the secret z-trait injector for the
museum stops phasing/jaunting, the museum areas are not of the secret
type, so they don't block teleportation. WHATEVER, IT ISN'T LIKE IT HAS
SOME OMEGA LOOT WORTH THE TROUBLE

## Changelog

🆑
map: Made it a bit harder to get stuck on away missions if you willingly
or unwillingly use teleportation techniques. You still definitely can,
but usually only on sections of the map that can be reached one way or
another, including rock walls that can be mined, just not those that
cannot.
image: Updated the visuals for indestructible rock walls to match the
destructible ones.
balance: RNG teleportation should work marginally better around areas
and turfs where teleportation is restricted by skipping them instead of
having a chance to fumble because of that.
/🆑
2026-06-27 16:57:04 -07:00

39 lines
1.3 KiB
Plaintext

/turf/closed
layer = CLOSED_TURF_LAYER
plane = WALL_PLANE
abstract_type = /turf/closed
turf_flags = IS_SOLID
opacity = TRUE
density = TRUE
blocks_air = TRUE
init_air = FALSE
rad_insulation = RAD_MEDIUM_INSULATION
pass_flags_self = PASSCLOSEDTURF
tacmap_color = TACMAP_BLACK
/turf/closed/AfterChange()
. = ..()
SSair.high_pressure_delta -= src
/turf/closed/get_smooth_underlay_icon(mutable_appearance/underlay_appearance, turf/asking_turf, adjacency_dir)
return FALSE
/turf/closed/examine_descriptor(mob/user)
return "wall"
/**
* Some turfs (mineral) are big, so they need to be on the game plane at a high layer
* But they're also turfs, so we need to cut them out from the light mask plane
* So we draw them as if they were on the game plane, and then overlay a copy onto
* The wall plane (so emissives/light masks behave)
* I am so sorry
*/
/turf/closed/proc/add_large_wall_overlay(wall_icon, wall_state)
var/static/list/mutable_appearance/wall_overlays = list()
var/mutable_appearance/wall_overlay = wall_overlays["[wall_icon]-[wall_state]"]
if (!wall_overlay)
wall_overlay = mutable_appearance('icons/turf/mining.dmi', wall_state, appearance_flags = RESET_TRANSFORM)
wall_overlays["[wall_icon]-[wall_state]"] = wall_overlay
wall_overlay.plane = MUTATE_PLANE(WALL_PLANE, src)
overlays += wall_overlay