mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 20:20:33 +01:00
## About The Pull Request Moves addiction processing in life to within the inverted stasis check Note, this includes both withdrawal effects and addiction healing ## Why It's Good For The Game Addictions have several ticking maluses that you would expect stasis to stop, but doesn't So it seems sensible, for consistency reasons, to stop addictions from ticking up or down while in stasis ## Changelog 🆑 Melbert balance: Stasis now stops addiction ticks while active - meaning addictions will not apply their ticking withdrawal effects, but also won't heal over time /🆑
20 lines
589 B
Plaintext
20 lines
589 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/datum/addiction/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
|