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

Percent chance for AOE ammo effects #37190

Conversation

ZhilkinSerg
Copy link
Contributor

Summary

SUMMARY: None

Purpose of change

Helps with #36900

Describe the solution

Refactor ammo effects to use percent (i.e. x_in_100 ) chance instead of one_in chance for AOE.

Testing

Test that single affected ammo effect (PLASMA) spawns field 50% of the time (one_in_2 previously).

Additional context

I did not rename json field and kept it name chance. We can review this later.

@ZhilkinSerg ZhilkinSerg added [JSON] Changes (can be) made in JSON [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Items: Ammo / Guns Ammunition for all kinds of weapons and these weapons themselves labels Jan 18, 2020
@ZhilkinSerg ZhilkinSerg force-pushed the refactor-ammo-effect-percent-chance branch from 9625eef to de7ac79 Compare January 18, 2020 20:09
@kevingranade kevingranade merged commit ffc3ce3 into CleverRaven:master Jan 31, 2020
@ZhilkinSerg ZhilkinSerg deleted the refactor-ammo-effect-percent-chance branch January 31, 2020 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Items: Ammo / Guns Ammunition for all kinds of weapons and these weapons themselves [JSON] Changes (can be) made in JSON
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants