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

Remove legacy JobGiver_ConfigurableHostilityResponse #3568

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

mszabo-wikia
Copy link
Contributor

Changes

Remove the old JobGiver_ConfigurableHostilityResponse class, unused since 7ea3841.

Reasoning

This was replaced by a Harmony patch in 2019 (7ea3841), but was later inadvertently added back to compilation after the csproj was overhauled. That in turn broke the Harmony patch because it started targeting the legacy class rather than RimWorld's own vanilla JobGiver_ConfigurableHostilityResponse, causing red errors when a pawn set to attack nearby hostiles automatically had an empty weapon and encountered a hostile pawn.

Testing

Check tests you have performed:

  • Compiles without warnings
  • Game runs without errors
  • Playtested a colony - when a pawn is set to automatically attack hostiles and is carrying a gun, they'll now shoot at them if they have ammo and melee them with the gun if they have no ammo. Previously, a red error occurred if they had no ammo.

@mszabo-wikia mszabo-wikia requested review from a team as code owners November 24, 2024 21:23
This was replaced by a Harmony patch in 2019 (7ea3841), but was later inadvertently added back to compilation after the csproj was overhauled. That in turn broke the Harmony patch because it started targeting the legacy class rather than RimWorld's own vanilla JobGiver_ConfigurableHostilityResponse, causing red errors when a pawn set to attack nearby hostiles automatically had an empty weapon and encountered a hostile pawn.
Copy link

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

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

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-11999712818.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.

Solves the issue in testing--pawns without ammo for their weapon being controlled by automatic behavior will now attempt to close to melee range instead of throwing errors.

@N7Huntsman N7Huntsman merged commit 4fc5f61 into Development Nov 26, 2024
3 checks passed
@N7Huntsman N7Huntsman deleted the remove-old-jobgiver branch November 26, 2024 01:14
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