mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
## 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>
8 lines
446 B
Plaintext
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?")
|