mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 05:51:56 +01:00
Alcohol/Liver adjustments (#8477)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user