Skip to content

Commit

Permalink
Merge pull request CleverRaven#69348 from prharvey/climate_control_fix
Browse files Browse the repository at this point in the history
Fix climate control base variation.
  • Loading branch information
Maleclypse authored Nov 14, 2023
2 parents 0d390ce + 2d95a81 commit 1e95dbc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9042,8 +9042,7 @@ units::temperature_delta Character::bodytemp_modifier_traits_floor() const
units::temperature Character::temp_corrected_by_climate_control( units::temperature temperature,
int heat_strength, int chill_strength ) const
{
const units::temperature_delta base_variation = units::from_celsius_delta( units::to_celsius(
BODYTEMP_NORM ) );
const units::temperature_delta base_variation = BODYTEMP_NORM - 27_C;
const units::temperature_delta variation_heat = base_variation * ( heat_strength / 100.0f );
const units::temperature_delta variation_chill = -base_variation * ( chill_strength / 100.0f );

Expand Down

0 comments on commit 1e95dbc

Please sign in to comment.