mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
Alcoholism Buff (#11957)
This commit is contained in:
@@ -63,7 +63,12 @@
|
||||
filter_strength *= 1.1
|
||||
|
||||
if (owner.intoxication > 0)
|
||||
owner.intoxication -= min(owner.intoxication, filter_strength)
|
||||
var/bac = owner.get_blood_alcohol()
|
||||
var/res = owner.species ? owner.species.ethanol_resistance : 1
|
||||
if(bac >= INTOX_MUSCLEIMP * res) //Excessive blood alcohol, difficult to filter
|
||||
owner.intoxication -= min(owner.intoxication, filter_strength/2)
|
||||
else
|
||||
owner.intoxication -= min(owner.intoxication, filter_strength)
|
||||
if(!owner.intoxication)
|
||||
owner.handle_intoxication()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user