mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user