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 undefined charges-max handling #36723

Merged
merged 1 commit into from
Jan 5, 2020

Conversation

ymber
Copy link
Member

@ymber ymber commented Jan 5, 2020

Summary

SUMMARY: Bugfixes "Fix spawn quantities with no max specified"

Purpose of change

Fixes #35416
Itemgroup entries that defined charges-min but no charges-max were supposed to spawn the specified minimum up to the max of a container determined later. The actual behavior did not reflect the behavior described in the documentation.

Describe the solution

Implement the behavior described in documentation.

Testing

Bleach and ammonia don't always spawn as 2 charges now.

@ymber ymber added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Spawn Creatures, items, vehicles, locations appearing on map labels Jan 5, 2020
@BevapDin
Copy link
Contributor

BevapDin commented Jan 5, 2020

You may want to add a "Fixes #35416" line to your PR description. This will the automatically close the linked issue when this PR gets merged.

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` Spawn Creatures, items, vehicles, locations appearing on map
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bleach spawn randomization in science labs seems erroneous
3 participants