From 7ace15d846eddaced5f1c4c9f95fd9119a027084 Mon Sep 17 00:00:00 2001 From: Thalpy <48600475+ThalpySci@users.noreply.github.com> Date: Mon, 21 Oct 2019 20:58:15 +0100 Subject: [PATCH] oops --- code/modules/reagents/reagent_containers.dm | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/code/modules/reagents/reagent_containers.dm b/code/modules/reagents/reagent_containers.dm index 9ae9d46601..e146057976 100644 --- a/code/modules/reagents/reagent_containers.dm +++ b/code/modules/reagents/reagent_containers.dm @@ -173,20 +173,16 @@ cached_icon = icon_state var/damage var/cause - var/pHresistance = 3 if(beaker_weakness_bitflag & PH_WEAK) - pHresistance = 0 //if weak, pH 2, else -1 + if(reagents.pH < 2) + damage = (2 - reagents.pH)/20 + cause = "from the extreme pH" + playsound(get_turf(src), 'sound/FermiChem/bufferadd.ogg', 50, 1) - if(reagents.pH < (2-pHresistance)) //2 or -1 - damage = ((2-pHresistance) - reagents.pH)/20 //2 - -3 = -1, -1 - -2 = 1 I think this is right? - cause = "from the extreme pH" - playsound(get_turf(src), 'sound/FermiChem/bufferadd.ogg', 50, 1) - - - if(reagents.pH > (12+pHresistance)) //12 or 15 - damage = (reagents.pH - (12+pHresistance))/20 - cause = "from the extreme pH" - playsound(get_turf(src), 'sound/FermiChem/bufferadd.ogg', 50, 1) + if(reagents.pH > 12) + damage = (reagents.pH - 12)/20 + cause = "from the extreme pH" + playsound(get_turf(src), 'sound/FermiChem/bufferadd.ogg', 50, 1) if(beaker_weakness_bitflag & TEMP_WEAK) if(reagents.chem_temp >= 444)