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

Ammo extended effects loading issue repair #44750

Merged
merged 1 commit into from
Oct 10, 2020

Conversation

RoyBerube
Copy link
Contributor

Summary

SUMMARY: Bugfixes "Ammo extended effects - factory loading."

Purpose of change

Fixes #42795

This was affecting all extended effects and delete effects for ammo that was copied from a base item. These properties were simply not loading so copied ammo would neither add or delete any effects.

The cause can be traced back to PR #39899.

Describe the solution

Reinstate the old method used before the refactoring.

Describe alternatives you've considered

Rewrite the method in the generic factory. This is easier.

Testing

Test firing of explosive ammo. Explosions now happen. Killed self with splash damage from firing at zombie too close.

Inspected item descriptions of various derived ammos, such as reloaded .50 cal. Properties are now as expected according to the extended effects and delete effects.

Additional context

@kevingranade kevingranade merged commit 961d1d5 into CleverRaven:master Oct 10, 2020
@RoyBerube RoyBerube deleted the splash_damage branch October 11, 2020 05:03
@anothersimulacrum anothersimulacrum added [C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON labels Nov 8, 2020
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` [JSON] Changes (can be) made in JSON
Projects
None yet
Development

Successfully merging this pull request may close these issues.

40mm grenades deal no fragmentation/splash damage.
3 participants