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

Add support for intensity to vitamin deficiencies [WIP] #16402

Closed
wants to merge 1 commit into from

Conversation

mugling
Copy link
Contributor

@mugling mugling commented Apr 25, 2016

Resulting from discussion in #16393

The first deficiency level will have little/no penalties and exists to provide 2 days warning that you are becoming deficient (numbers subject to change).

@mugling mugling changed the title Add support for intensity to vitamin deficiencies Add support for intensity to vitamin deficiencies [WIP] Apr 25, 2016
@mugling
Copy link
Contributor Author

mugling commented Apr 25, 2016

Marked WIP as JSON implantation is likely to change further

std::vector<std::pair<efftype_id, int>> deficiency_;
std::vector<std::pair<efftype_id, int>> excess_;
std::vector<std::pair<int, std::pair<efftype_id, int>>> deficiency_;
std::vector<std::pair<int, std::pair<efftype_id, int>>> excess_;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look very alike in every aspect. Could they be replaced with a single vector having values below/above zero to represent deficiency/excess respectively (as it is now)? This would prevent duplication.

@mugling
Copy link
Contributor Author

mugling commented May 8, 2016

See #16577

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants