mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-05 22:43:46 +00:00
Co-authored-by: Krysonism <49783092+Krysonism@users.noreply.github.com> Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
20 lines
571 B
Plaintext
20 lines
571 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(timeofday)
|
|
InitializeAddictions()
|
|
return ..()
|
|
|
|
///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
|