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

Update hypotetical passive solar panel bionic to use irradiance #60445

Merged
merged 1 commit into from
Aug 27, 2022

Conversation

Hirmuolio
Copy link
Contributor

@Hirmuolio Hirmuolio commented Aug 25, 2022

Summary

Infrastructure "Update hypotetical passive solar panel bionic to use irradiance"

Purpose of change

In #59179 I missed this part of the code.

I believe it to be used for solar panel bionics that are passive (can't be turned on/off).
No such thing exists. The aftershock solar panel bionic can be turned on/off and does not use this part of the code. But if someone makes such creation it will now match the behavior of toggleable solar panel bionic.

Describe the solution

Compare solar irradiance instead of light level.

Describe alternatives you've considered

Remove support for hypotetical bionic that does not exist.

Testing

It is not used anywhere so it is untested. But the code is basically identical to activateable solar bionics so it should work.

Additional context

I have a feeling that Character::burn_fuel and Character::passive_power_gen could be somehow combined into one thing.

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` Bionics CBM (Compact Bionic Modules) Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Aug 25, 2022
@dseguin dseguin merged commit 6dbe967 into CleverRaven:master Aug 27, 2022
@Hirmuolio Hirmuolio deleted the solar branch August 27, 2022 10:10
Hirmuolio added a commit to Hirmuolio/Cataclysm-DDA that referenced this pull request Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions Bionics CBM (Compact Bionic Modules) [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants