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

always replace vehicle ammunition ThingFilter #2867

Merged
merged 1 commit into from
Nov 4, 2023
Merged

Conversation

perkinslr
Copy link
Contributor

Changes

When changing the ammunition allowed in VF vehicles, just replace the ammunition thing filter, and have it resolve its references.

Reasoning

Without this, vehicles not supplying an empty <ammunition/> node in their turret def would break. Also, vehicles with only 1 type of ammo would behave oddly when scheduling reload jobs.

Alternatives

Only add a new node, and try to re-run resolve references.

Testing

Check tests you have performed:

  • Compiles without warnings
  • Game runs without errors
  • (For compatibility patches) ...with and without patched mod loaded
  • Playtested a colony (specify how long)

@perkinslr perkinslr requested review from a team as code owners November 2, 2023 07:16
Copy link

github-actions bot commented Nov 2, 2023

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-6729449705.zip

@github-actions github-actions bot added the Download in Comments This PR has a zipfile download available. label Nov 2, 2023
Copy link

github-actions bot commented Nov 2, 2023

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-6729662823.zip

Copy link
Contributor

@N7Huntsman N7Huntsman left a comment

Choose a reason for hiding this comment

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

Ran into a few errors during testing, but they appear to be on VF's side rather than ours. Has my nod.

@N7Huntsman N7Huntsman merged commit 40a6608 into Development Nov 4, 2023
@N7Huntsman N7Huntsman deleted the vfammo branch November 4, 2023 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Download in Comments This PR has a zipfile download available.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants