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

Start of initiative interruptions behave too much like genuine turn starts #1325

Open
TacGit1 opened this issue Apr 19, 2024 · 0 comments
Open
Assignees
Milestone

Comments

@TacGit1
Copy link

TacGit1 commented Apr 19, 2024

Initiative interruptions are special, occurring when it isn't the unit's turn. In X2TacticalGameRuleset, in the function: SetupUnitActionsForGroupTurnBegin, it calls SetupActionsForBeginTurn from XComGameState_Unit. In SetupActionsForBeginTurn, things like untouchable, bGotFreeFireAction, and, very critically, CleanupUnitValues(eCleanup_BeginTurn) is here. This means if a skirmisher interrupts a turn, but had untouchable, a hair trigger occurrence, or had some eCleanup_BeginTurn unit values on them, they all get cleared as if their real turn has started.

As another example, if a templar had Interrupt and Parry, their Parry gets cleared on interruption.

I have a fix set up that uses unit values, though this will be my first submission to the CHL, so gonna need some help/time doing this properly.

@TacGit1 TacGit1 changed the title Start of initiative interruptions behave too much like start of turn interruptions Start of initiative interruptions behave too much like genuine turn starts Apr 19, 2024
@BlackDog86 BlackDog86 added this to the 1.29.0 milestone Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants