Alcohol/Liver adjustments (#8477)

This commit is contained in:
Doxxmedearly
2020-03-22 21:14:01 -03:00
committed by GitHub
parent eab79682ef
commit f1c6c31d93
3 changed files with 15 additions and 3 deletions
+4 -2
View File
@@ -59,10 +59,12 @@
filter_strength = INTOX_FILTER_BRUISED
if(is_broken())
filter_strength = INTOX_FILTER_DAMAGED
if(BP_IS_ROBOTIC(src))
filter_strength *= 1.1
if (owner.intoxication > 0)
owner.intoxication -= min(owner.intoxication, filter_strength*PROCESS_ACCURACY)
if (!owner.intoxication)
owner.intoxication -= min(owner.intoxication, filter_strength)
if(!owner.intoxication)
owner.handle_intoxication()
if(toxin_type in owner.chem_effects)