[MIRROR] Fixes roundstart addiction runtime (#3540)

* fixes roundstart addiction runtime (#57051)

* Fixes roundstart addiction runtime

Co-authored-by: Time-Green <timkoster1@hotmail.com>
This commit is contained in:
SkyratBot
2021-02-20 23:11:00 +00:00
committed by GitHub
co-authored by Time-Green
parent 5cee81308b
commit eee02f0dc1
@@ -34,6 +34,6 @@
/mob/living/carbon/proc/on_nometabolism_trait_gain(datum/source)
SIGNAL_HANDLER
for(var/addiction_type in subtypesof(/datum/addiction))
mind.remove_addiction_points(addiction_type, MAX_ADDICTION_POINTS) //Remove the addiction!
mind?.remove_addiction_points(addiction_type, MAX_ADDICTION_POINTS) //Remove the addiction!
reagents.end_metabolization(keep_liverless = TRUE)