mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
* Clean up subsystem Initialize(), require an explicit result returned, give a formal way to fail (for SSlua) * [PR for MIRROR PR] Changes for 16248 (#16277) * Merge skyrat changes, update SR SS's, and remove lobby_eye * Apply suggestions from code review Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> * Update modular_skyrat/modules/autotransfer/code/autotransfer.dm Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> * restore lobby_cam for now Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> Co-authored-by: Tastyfish <crazychris32@gmail.com> Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
20 lines
573 B
Plaintext
20 lines
573 B
Plaintext
/*!
|
|
This subsystem mostly exists to populate and manage the withdrawal singletons.
|
|
*/
|
|
|
|
SUBSYSTEM_DEF(addiction)
|
|
name = "Addiction"
|
|
flags = SS_NO_FIRE
|
|
///Dictionary of addiction.type || addiction ref
|
|
var/list/all_addictions = list()
|
|
|
|
/datum/controller/subsystem/addiction/Initialize()
|
|
InitializeAddictions()
|
|
return SS_INIT_SUCCESS
|
|
|
|
///Ran on initialize, populates the addiction dictionary
|
|
/datum/controller/subsystem/addiction/proc/InitializeAddictions()
|
|
for(var/type in subtypesof(/datum/addiction))
|
|
var/datum/addiction/ref = new type
|
|
all_addictions[type] = ref
|