Merge pull request #8201 from Citadel-Station-13/kevinz000-patch-19

Changes OD thresholds to match RP server and only trigger when you /exceed/ it per definition of threshold
This commit is contained in:
deathride58
2019-05-21 08:05:54 -04:00
committed by GitHub
+2 -2
View File
@@ -269,11 +269,11 @@
if(C.reagent_check(R) != 1)
if(can_overdose)
if(R.overdose_threshold)
if(R.volume >= R.overdose_threshold && !R.overdosed)
if(R.volume > R.overdose_threshold && !R.overdosed)
R.overdosed = 1
need_mob_update += R.overdose_start(C)
if(R.addiction_threshold)
if(R.volume >= R.addiction_threshold && !is_type_in_list(R, cached_addictions))
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)
if(R.overdosed)