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

[WIP] Refactor player hardcoded effects and include tests #40270

Closed
wants to merge 3 commits into from

Conversation

wapcaplet
Copy link
Contributor

Summary

SUMMARY: Infrastructure "Refactor player hardcoded effects and include tests"

Purpose of change

To begin some refactoring of player::hardcoded_effects and include some test cases.

Describe the solution

Adds test cases to tests/player_effect_test.cpp and refactors some code in src/player_hardcoded_effects.cpp.

more to come

Describe alternatives you've considered

The single hardcoded_effects function is in dire need of some refactoring, splitting up, and JSONifying (not to mention testing). I expect to tackle testing and some modest refactoring with this PR, but plan to leave more extensive overhaul and conversion to be more data-driven for a later PR.

Testing

tests/cata_test [player][effect]

Additional context

This is spin-off part 3 of #40064

WIP since there is considerable work remaining.

This commit includes a mess of in-progress and not-particularly-good
tests on player::hardcoded_effects.
@mlangsdorf mlangsdorf added Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Code: Tests Measurement, self-control, statistics, balancing. labels May 7, 2020
@stale
Copy link

stale bot commented Jun 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

@stale stale bot added the stale Closed for lack of activity, but still valid. label Jun 11, 2020
@kevingranade
Copy link
Member

Still in progress?

@stale stale bot removed the stale Closed for lack of activity, but still valid. label Jun 11, 2020
@wapcaplet
Copy link
Contributor Author

Still in progress?

Yeah, on the back burner but hopefully not dead yet.

@wapcaplet wapcaplet marked this pull request as draft July 13, 2020 21:18
@wapcaplet
Copy link
Contributor Author

Probably not going to finish this.

@wapcaplet wapcaplet closed this Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Code: Tests Measurement, self-control, statistics, balancing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants