From 598cc90e8e849bcd18cde281db7b46d6b8b04e4e Mon Sep 17 00:00:00 2001 From: 81Denton <32391752+81Denton@users.noreply.github.com> Date: Fri, 14 Jun 2019 20:11:06 +0200 Subject: [PATCH] Adds reagent OD/addiction logging (#44460) --- code/modules/reagents/chemistry/holder.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/reagents/chemistry/holder.dm b/code/modules/reagents/chemistry/holder.dm index b1edb2f9f69..1235b05491e 100644 --- a/code/modules/reagents/chemistry/holder.dm +++ b/code/modules/reagents/chemistry/holder.dm @@ -290,10 +290,12 @@ if(R.volume >= R.overdose_threshold && !R.overdosed) R.overdosed = 1 need_mob_update += R.overdose_start(C) + log_game("[key_name(C)] has started overdosing on [R.name] at [R.volume] units.") if(R.addiction_threshold) if(R.volume >= R.addiction_threshold && !is_type_in_list(R, cached_addictions)) var/datum/reagent/new_reagent = new R.type() cached_addictions.Add(new_reagent) + log_game("[key_name(C)] has become addicted to [R.name] at [R.volume] units.") if(R.overdosed) need_mob_update += R.overdose_process(C) if(is_type_in_list(R,cached_addictions))