-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: fahrenheit to celsius in codebase, part 1 (#2570)
* refactor: constexpr for `TOOL_LIFT_FACTOR` and `JACK_LIMIT` * feat: add long double override for celsius literal * refactor: use celsius on namespace `temperatures` * refactor: `average_annual_termperature` to `units::temperature` * refactor: use `_seconds` notation * refactor: use early return for `weather_effect::acid` * refactor: `calc_hourly_rotpoints_at_temp` to accept `units::temperature` please forgive me for shilling SI unit this much. Hardcoded as changing to celsius reduces array size a lot, and i've spent 6h unsuccessfully porting this calc_hourly_rotpoints_at_temp to work with celsius * fix: make annual average namespaced * fix: remove `SPRING_TEMPERATURE` already managed by `weather_manager::update_weather` * refactor: use early return * fix: redundant comment --------- Co-authored-by: olanti-p <[email protected]>
- Loading branch information
Showing
9 changed files
with
134 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.