* sdf

* fsda

* fuck

* fuck2

* toolz

* sdaf

* sdfa

* saf

* sdfa

* sdfa

* sdf

* sdfa

* temp rename

* temp rename

* temp rename

* sdaf

* the pain is immensurable in the land of byond

* the curse of rah

* safd

* sadf

* sadf

* gf

* asf

* fssdfa

* sfd

* sadf

* sfda

* brah

* brah

* it's easier for you to fix this

* ffs

* brah

* brah
This commit is contained in:
Fluffy
2024-01-06 17:03:57 +01:00
committed by GitHub
parent 8c76cfa9ea
commit e867030c2e
331 changed files with 2348 additions and 1643 deletions
+6 -5
View File
@@ -4,7 +4,7 @@
/*
* Wondering if you should change this to run the tests? NO!
* Because the preproc checks for this in other areas too, set it in code\__defines\manual_unit_testing.dm instead!
* Because the preproc checks for this in other areas too, set it in code\__DEFINES\manual_unit_testing.dm instead!
*/
#ifdef UNIT_TEST
@@ -15,7 +15,7 @@
SUBSYSTEM_DEF(unit_tests_config)
name = "Unit Test Config"
init_order = SS_INIT_PERSISTENT_CONFIG
flags = SS_NO_FIRE
flags = SS_NO_FIRE | SS_NO_INIT
var/datum/unit_test/UT // Logging/output, use this to log things from outside where a specific unit_test is defined
@@ -31,7 +31,7 @@ SUBSYSTEM_DEF(unit_tests_config)
///How many times can the pod retries before the unit test is considered failed
var/retries = 0
/datum/controller/subsystem/unit_tests_config/New()
/datum/controller/subsystem/unit_tests_config/PreInit()
. = ..()
UT = new
@@ -110,7 +110,7 @@ SUBSYSTEM_DEF(unit_tests_config)
/*
The Unit Tests subsystem
*/
/datum/controller/subsystem/unit_tests
SUBSYSTEM_DEF(unit_tests)
name = "Unit Tests"
init_order = -1e6 // last.
var/list/queue = list()
@@ -145,7 +145,8 @@ SUBSYSTEM_DEF(unit_tests_config)
break
SSunit_tests_config.UT.notice("[queue.len] unit tests loaded.", __FILE__, __LINE__)
..()
return SS_INIT_SUCCESS
/datum/controller/subsystem/unit_tests/proc/start_game()
if (SSticker.current_state == GAME_STATE_PREGAME)
+1 -1
View File
@@ -7,7 +7,7 @@
for(var/datum/controller/subsystem/subsystem as anything in Master.subsystems)
if(subsystem.flags & SS_NO_INIT)
continue
if(!(subsystem.init_state & SS_INITSTATE_DONE))
if(!(subsystem.initialized))
var/message = "[subsystem] ([subsystem.type]) is a subsystem meant to initialize but doesn't get set as initialized."
if (subsystem.flags & SS_OK_TO_FAIL_INIT)