Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: fahrenheit to celsius, part 2 #3926

Merged
merged 10 commits into from
Dec 18, 2023

Conversation

scarf005
Copy link
Member

@scarf005 scarf005 commented Dec 16, 2023

Purpose of change

part 2 of #2570

Describe the solution

  • migrated weather class to use Celsius.
  • removed legacy usage of freezing_point.

Describe alternatives you've considered

remove discrete temperatures and manage it via enums (temperature_flag)

Testing

  • (to my surprise) local tests passed.
  • was able to load items with/without freezing_point field.

Additional context

  • after 5 months we're back.
  • TIL adding temperatures with temperatures makes no sense (hence C + C != F + F)

@github-actions github-actions bot added src changes related to source code. tests changes related to tests labels Dec 16, 2023
@scarf005 scarf005 changed the title refactor: fahrenheit to celsius, part 2 refactor: fahrenheit to celsius, part 2 Dec 16, 2023
@github-actions github-actions bot added docs PRs releated to docs page JSON related to game datas in JSON format. mods PR changes related to mods. labels Dec 16, 2023
@scarf005
Copy link
Member Author

oh fun, #3908 is preventing me from running all tests

@scarf005 scarf005 requested a review from joveeater December 16, 2023 15:16
src/item_factory.cpp Outdated Show resolved Hide resolved
src/weather.cpp Outdated Show resolved Hide resolved
@scarf005 scarf005 requested a review from Coolthulhu December 17, 2023 03:17
@scarf005 scarf005 force-pushed the remove-fahrenheit-part-2 branch from 355e36b to c4e735d Compare December 17, 2023 22:38
@scarf005 scarf005 merged commit 4b5f9ba into cataclysmbnteam:main Dec 18, 2023
12 checks passed
@scarf005 scarf005 deleted the remove-fahrenheit-part-2 branch December 18, 2023 02:34
scarf005 added a commit to scarf005/Cata-Rogall-Modpack that referenced this pull request Dec 21, 2023
해당 필드가 cataclysmbnteam/Cataclysm-BN#3926 에서 완전히 제거되며 발생한 오류 메시지 해결
scarf005 added a commit to cataclysmroguelikegallery/Cata-Rogall-Modpack that referenced this pull request Dec 21, 2023
해당 필드가 cataclysmbnteam/Cataclysm-BN#3926 에서 완전히 제거되며 발생한 오류 메시지 해결
NappingOcean pushed a commit to cataclysmroguelikegallery/Cata-Rogall-Modpack that referenced this pull request Feb 1, 2024
해당 필드가 cataclysmbnteam/Cataclysm-BN#3926 에서 완전히 제거되며 발생한 오류 메시지 해결
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs PRs releated to docs page JSON related to game datas in JSON format. mods PR changes related to mods. src changes related to source code. tests changes related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants