mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
Clean up subsystem Initialize(), require an explicit result returned, give a formal way to fail (for SSlua) (#69775)
* cleanup SS API, give SSlua a proper way to error out * New SS_INIT_ system
This commit is contained in:
@@ -12,7 +12,7 @@ PROCESSING_SUBSYSTEM_DEF(station)
|
||||
///Currently active announcer. Starts as a type but gets initialized after traits are selected
|
||||
var/datum/centcom_announcer/announcer = /datum/centcom_announcer/default
|
||||
|
||||
/datum/controller/subsystem/processing/station/Initialize(timeofday)
|
||||
/datum/controller/subsystem/processing/station/Initialize()
|
||||
|
||||
//If doing unit tests we don't do none of that trait shit ya know?
|
||||
// Autowiki also wants consistent outputs, for example making sure the vending machine page always reports the normal products
|
||||
@@ -22,7 +22,7 @@ PROCESSING_SUBSYSTEM_DEF(station)
|
||||
|
||||
announcer = new announcer() //Initialize the station's announcer datum
|
||||
|
||||
return ..()
|
||||
return SS_INIT_SUCCESS
|
||||
|
||||
///Rolls for the amount of traits and adds them to the traits list
|
||||
/datum/controller/subsystem/processing/station/proc/SetupTraits()
|
||||
|
||||
Reference in New Issue
Block a user