Butanol Drink Fix (#19359)

fixes https://github.com/Aurorastation/Aurora.3/issues/19343
Fixes butanol becoming strength 0 after being ingested by Humans, due to
a mistake in handling the strength variable. I've removed the code
responsible, and made a small change that makes that part unnecessary
anyway. Tested and now working as intended.
This commit is contained in:
Crosarius
2024-06-08 16:39:04 +00:00
committed by GitHub
parent eea84a9409
commit c97b2e6719
2 changed files with 63 additions and 7 deletions
@@ -269,13 +269,11 @@
M.adjustNutritionLoss(-nutriment_factor * removed)
M.adjustHydrationLoss(-hydration_factor * removed)
if (adj_temp > 0 && M.bodytemperature < targ_temp) // 310 is the normal bodytemp. 310.055
M.bodytemperature = min(targ_temp, M.bodytemperature + (adj_temp * TEMPERATURE_DAMAGE_COEFFICIENT))
if (adj_temp < 0 && M.bodytemperature > targ_temp)
M.bodytemperature = min(targ_temp, M.bodytemperature - (adj_temp * TEMPERATURE_DAMAGE_COEFFICIENT))
else
strength = 0 //Only Unathi are intoxicated by butanol.
..()
if (adj_temp > 0 && M.bodytemperature < targ_temp) // 310 is the normal bodytemp. 310.055
M.bodytemperature = min(targ_temp, M.bodytemperature + (adj_temp * TEMPERATURE_DAMAGE_COEFFICIENT))
if (adj_temp < 0 && M.bodytemperature > targ_temp)
M.bodytemperature = min(targ_temp, M.bodytemperature - (adj_temp * TEMPERATURE_DAMAGE_COEFFICIENT))
/singleton/reagent/hydrazine
name = "Hydrazine"