Merge pull request #5495 from Anewbe/drinking_problem

Drinking more booze gets you drunk faster
This commit is contained in:
Atermonera
2018-08-15 21:12:20 -07:00
committed by GitHub

View File

@@ -98,20 +98,21 @@
M.adjustToxLoss(removed) //Sterilizing, if only by a little bit. Also already doubled above.
M.add_chemical_effect(CE_ALCOHOL, 1)
var/effective_dose = dose * strength_mod * (1 + volume/60) //drinking a LOT will make you go down faster
if(dose * strength_mod >= strength) // Early warning
if(effective_dose >= strength) // Early warning
M.make_dizzy(18) // It is decreased at the speed of 3 per tick
if(dose * strength_mod >= strength * 2) // Slurring
if(effective_dose >= strength * 2) // Slurring
M.slurring = max(M.slurring, 90)
if(dose * strength_mod >= strength * 3) // Confusion - walking in random directions
if(effective_dose >= strength * 3) // Confusion - walking in random directions
M.Confuse(60)
if(dose * strength_mod >= strength * 4) // Blurry vision
if(effective_dose >= strength * 4) // Blurry vision
M.eye_blurry = max(M.eye_blurry, 30)
if(dose * strength_mod >= strength * 5) // Drowsyness - periodically falling asleep
if(effective_dose >= strength * 5) // Drowsyness - periodically falling asleep
M.drowsyness = max(M.drowsyness, 60)
if(dose * strength_mod >= strength * 6) // Toxic dose
if(effective_dose >= strength * 6) // Toxic dose
M.add_chemical_effect(CE_ALCOHOL_TOXIC, toxicity*3)
if(dose * strength_mod >= strength * 7) // Pass out
if(effective_dose >= strength * 7) // Pass out
M.paralysis = max(M.paralysis, 60)
M.sleeping = max(M.sleeping, 90)