[MIRROR] Addiction rework (#3445)

* Addiction rework

* a

Co-authored-by: Qustinnus <Floydje123@hotmail.com>
Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
This commit is contained in:
SkyratBot
2021-02-17 14:26:44 +00:00
committed by GitHub
co-authored by Qustinnus Gandalf2k15
parent 43febe3145
commit 3b85cf1430
45 changed files with 607 additions and 500 deletions
+19
View File
@@ -0,0 +1,19 @@
/*!
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