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

Prevent hack rewards from being granted multiple times #1177

Merged
merged 2 commits into from
May 21, 2023

Conversation

Iridar
Copy link
Contributor

@Iridar Iridar commented May 14, 2023

Fixes #990

Would also make Skulljack Feedback Fix obsolete.

This fix lived happily in Core Collection Meta Mod for over two years and I had no complaints, and it's well tested, so I'm confident in it.

Also, I checked, abilities created using the X2Ability_HackRewards::ApplyEffectsToTemplate() that use class'XComGameState_Ability'.static.HackTriggerTargetListener do not suffer from this problem and don't require fixing.

It's worth noting that the proposed fix addresses only hack rewards from the base game. Mod added hack rewards (that are currently potentially fixed by CCMM) will not be affected.

Also, there's a hack reward "control all robots" in Shen's Last Gift, but since it can be obtained only by hacking one particular enemy, who obviously can't be hacked more than once, I think it's safe to ignore that one.

@Iridar Iridar added bug-basegame ready-to-review A pull request is ready to be reviewed labels May 14, 2023
@Iridar Iridar added this to the 1.25.0 milestone May 14, 2023
@Iridar Iridar self-assigned this May 14, 2023
@Iridar Iridar merged commit 1d9c3f5 into X2CommunityCore:master May 21, 2023
@Iridar Iridar deleted the 990-fix-hack-rewards branch May 21, 2023 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-basegame ready-to-review A pull request is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hack Rewards/Penalties Granted Multiple Times
2 participants