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

Allow each armament to define ammo used #19362

Merged
merged 1 commit into from
Jun 11, 2021
Merged

Conversation

tjk-ws
Copy link
Contributor

@tjk-ws tjk-ws commented Apr 21, 2021

This allows modders to make certain weapons use more ammo from the same pool than others. Test case included: RA Longbow should be only able to fire half as many missiles against air as it does against ground, no unexpected changes with behavior of other use cases so far.

abcdefg30
abcdefg30 previously approved these changes Jun 10, 2021
Copy link
Member

@abcdefg30 abcdefg30 left a comment

Choose a reason for hiding this comment

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

Works as advertised. I wonder if we want to adjust the minelayer too:

pool.TakeAmmo(self, 1);

You can also remove the testcase now.

@tjk-ws
Copy link
Contributor Author

tjk-ws commented Jun 11, 2021

Works as advertised. I wonder if we want to adjust the minelayer too:

pool.TakeAmmo(self, 1);

You can also remove the testcase now.

done

abcdefg30
abcdefg30 previously approved these changes Jun 11, 2021
Copy link
Member

@abcdefg30 abcdefg30 left a comment

Choose a reason for hiding this comment

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

Thanks.

Smittytron
Smittytron previously approved these changes Jun 11, 2021
@Smittytron Smittytron merged commit a893cf9 into OpenRA:bleed Jun 11, 2021
@tjk-ws tjk-ws deleted the ammo branch June 11, 2021 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants