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

Fix items having inappropriate charges in chargen #39898

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

Demoragon
Copy link
Contributor

Summary

SUMMARY: Bugfixes "Fix items with inappropriate charges in chargen"

Purpose of change

Fixes #39176 - half-full magazines and other items with inappropriate charges in chargen.

Describe the solution

This bug is caused by some code in profession.cpp, that used to fix bullets & batteries randomizing their numbers in chargen (#38675). But now this problem is solved differently and it looks like this part of code is just useless.

Describe alternatives you've considered

Testing

Deleted this part of code, compiled the game, made sure, that items have appropriate charges, which are defined in professions.json

Additional context

Gangster profession with items having appropriate charges.
image

@Demoragon Demoragon changed the title fix items having inappropriate charges in chargen Fix items having inappropriate charges in chargen Apr 25, 2020
@ifreund ifreund added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` labels Apr 26, 2020
Copy link
Contributor

@ifreund ifreund left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Items with charges spawning exactly half-full in chargen
2 participants