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

Updated Lure status effect so it ticks properly & isn't removed when the source unit dies #1294

Merged

Conversation

BlackDog86
Copy link
Contributor

Fixes #1286

@BlackDog86 BlackDog86 self-assigned this Dec 19, 2023
@BlackDog86 BlackDog86 added bug-basegame ready-to-review A pull request is ready to be reviewed labels Dec 19, 2023
@BlackDog86
Copy link
Contributor Author

BlackDog86 commented Dec 19, 2023

image

image

Tested and now ticks properly - this issue is only visible under fairly niche circumstances - the base game ships this ability as a passive (not a debuff), so even with YAF1 / show more debuff mods, the number of turns isn't displayed. The "Lost Lure Status Icon" mod changes this status effect to an ePerk_Penalty, making the number of turns then visible in YAF1 & exposing the fact that it doesn't actually tick properly under normal circumstances. I've adjusted the display in the PR to ePerk_Penalty as well so it's more transparent to the user.

@BlackDog86 BlackDog86 force-pushed the 1286-Fix-Ultrasonic-Lure-Duration branch 3 times, most recently from 2783a4b to 7548424 Compare December 19, 2023 16:46
@@ -2486,8 +2486,8 @@ static function X2Effect_Persistent CreateUltrasonicLureTargetStatusEffect()
UltrasonicLureTargetEffect = new class'X2Effect_Persistent';
UltrasonicLureTargetEffect.EffectName = default.UltrasonicLureName;
UltrasonicLureTargetEffect.DuplicateResponse = eDupe_Ignore;
UltrasonicLureTargetEffect.BuildPersistentEffect(default.ULTRASONICLURE_TURNS,, true);
UltrasonicLureTargetEffect.SetDisplayInfo(ePerkBuff_Passive, default.UltrasonicLureFriendlyName, default.UltrasonicLureFriendlyDesc, "img:///UILibrary_PerkIcons.UIPerk_mark" );
UltrasonicLureTargetEffect.BuildPersistentEffect(default.ULTRASONICLURE_TURNS,false,false,,eGameRule_PlayerTurnBegin); //Issue #1286 - Keep effect when source dies, tick on turn begin. Adjust icon and displayinfo to display as debuff rather than passive.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use Start Issue and End Issue tags when changes span multiple lines, and please add a HL-Docs ref:bugfixes entry.

…ff_Penalty so number of turns is properly displayed and updated the perk icon to be more sensible.
@BlackDog86 BlackDog86 force-pushed the 1286-Fix-Ultrasonic-Lure-Duration branch from 884afd1 to 291c719 Compare February 27, 2024 19:36
@BlackDog86
Copy link
Contributor Author

Docs tags updated

@Iridar Iridar added ready-for-merge the pull request was reviewed and is ready to be merged. and removed ready-to-review A pull request is ready to be reviewed labels Feb 27, 2024
@Iridar Iridar added this to the 1.28.0 milestone Feb 27, 2024
@Iridar Iridar merged commit 4e5a712 into X2CommunityCore:master Feb 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-basegame ready-for-merge the pull request was reviewed and is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ultrasonic lure duration is actually permanent
2 participants