Files
Bubberstation/code/modules/unit_tests/orphaned_genturf.dm
LemonInTheDark efe3f3dfef Warns for genturf failures more clearly, makes planetary cleanup better (#83809)
## About The Pull Request

Ok so like, we recently had an issue where a genturf was not being
replaced, which fucked ALL of icemoon's atmosphere.

The fix was to not use a genturf with a conditionally generating area,
but that aside. (why is it CONDITIONAL TIME GREEEEEN)

Planetary turfs should act like immutable ones when roundstart
equalizing.

In addition, we should test to ensure none leaves genturfs floating
around post roundstart to avoid this sorta issue.

---------

Co-authored-by: Afevis <ShizCalev@users.noreply.github.com>
2024-06-11 22:48:01 -06:00

8 lines
446 B
Plaintext

/// Ensures we do not leave genturfs sitting around post work
/// They serve as notice to the mapper and have no functionality, but it's good to make note of it here
/datum/unit_test/orphaned_genturf
/datum/unit_test/orphaned_genturf/Run()
for(var/turf/open/genturf/orphaned in ALL_TURFS())
TEST_FAIL("Floating genturf ([orphaned.type]) detected at ([orphaned.x], [orphaned.y], [orphaned.z]) : [orphaned.loc.type]. Why was it not replaced?")