Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
stats through skills: stop killing unskilled characters #28685
Purpose of change
Describe the solution
std::pow does weird things when the base is less than 0, so just return 0 if the sum of skill bonus and the _offset is less than 0 instead of doing math and getting NaN results.
Describe alternatives you've considered
I really just want to fix this and get back to doing other things.
Mar 13, 2019
This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there: