Chemical Improvements & Tweaks: Side-effects, overdoses, and more. (#9708)

This commit is contained in:
sadkermit
2020-09-01 13:29:40 +01:00
committed by GitHub
parent 47fbd436df
commit 36dc8a5220
30 changed files with 727 additions and 254 deletions

View File

@@ -120,10 +120,13 @@
var/can_heal = damage && damage < max_damage && (damage % damage_threshold_value || owner.chem_effects[CE_BRAIN_REGEN] || (!past_damage_threshold(3) && owner.chem_effects[CE_STABLE]))
var/damprob
var/brain_regen_amount = owner.chem_effects[CE_BRAIN_REGEN] / 10
//Effects of bloodloss
switch(blood_volume)
if(BLOOD_VOLUME_SAFE to INFINITY)
if(can_heal)
if(can_heal && owner.chem_effects[CE_BRAIN_REGEN])
damage = max(damage - brain_regen_amount, 0)
else if(can_heal)
damage = max(damage-1, 0)
if(BLOOD_VOLUME_OKAY to BLOOD_VOLUME_SAFE)
if(prob(1))