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

Generalize solarpack code #38770

Merged
merged 1 commit into from
Mar 18, 2020
Merged

Generalize solarpack code #38770

merged 1 commit into from
Mar 18, 2020

Conversation

ymber
Copy link
Member

@ymber ymber commented Mar 14, 2020

Summary

SUMMARY: Infrastructure "Generalize solarpack code"

Purpose of change

Allow new items to be defined without engine changes.

Describe the solution

Remove hardcoded item IDs from the code and define solar panel efficiency in JSON.

Testing

Items behave as before in game. No user facing changes.

@ymber ymber added [JSON] Changes (can be) made in JSON Bionics CBM (Compact Bionic Modules) [C++] Changes (can be) made in C++. Previously named `Code` Items / Item Actions / Item Qualities Items and how they work and interact labels Mar 14, 2020
src/character.cpp Outdated Show resolved Hide resolved
src/bionics.cpp Outdated Show resolved Hide resolved
src/item.cpp Outdated Show resolved Hide resolved
@ymber
Copy link
Member Author

ymber commented Mar 15, 2020

Moved solar_efficiency into itype so non-wearables can work as solar chargers in future.

@ZhilkinSerg ZhilkinSerg merged commit 90d218f into CleverRaven:master Mar 18, 2020
@ymber ymber deleted the solarpack branch March 18, 2020 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bionics CBM (Compact Bionic Modules) [C++] Changes (can be) made in C++. Previously named `Code` Items / Item Actions / Item Qualities Items and how they work and interact [JSON] Changes (can be) made in JSON
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants