XCOM: Chimera Squad

XCOM: Chimera Squad

39 ratings
Ends Turn Tooltips
   
Award
Favorite
Favorited
Unfavorite
Tags: UI, QoL
File Size
Posted
67.633 KB
18 Oct, 2020 @ 11:31am
1 Change Note ( view )

Subscribe to download
Ends Turn Tooltips

Description
Adds a message to the ability tooltip if using the ability will end the turn.

Firaxis had this mostly implemented, so this mod is really only one line of new code. I could probably modify it to use a ScreenListener instead of a class override, but I figured it wasn't worth it to set up that hack for such a small change.

Known Issues
  • None

Compatibility
  • Overrides the UITacticalHUD_AbilityTooltip class
7 Comments
Juravis 7 Nov, 2020 @ 10:00pm 
Sample:

https://ibb.co/qBQ7KLn

Note: Deadeye does not exhibit the issue
Juravis 7 Nov, 2020 @ 9:58pm 
You'll need to add an exception. Blueblood's pistol fire does not end the turn, but the tooltip detects it does. Even Icon Colors is confused and needs a manual exception.

Exception is in 'PistolStandardShot', Desperado makes it not end the turn.

// Action Point
ActionPointCost = new class'X2AbilityCost_DesperadoActionPoints';
ActionPointCost.iNumPoints = 1;
ActionPointCost.bConsumeAllPoints = true;
Template.AbilityCosts.AddItem(ActionPointCost);
Loc[K]e 21 Oct, 2020 @ 2:37pm 
Great Job! :sectoid:
=[NK]= Col. Jack O'Neil 20 Oct, 2020 @ 8:25pm 
FYI BT, this was AA's response to any conflict
"I do not override UITacticalHUD_AbilityTooltip."
=[NK]= Col. Jack O'Neil 19 Oct, 2020 @ 10:29pm 
Thanks!
BTernaryTau  [author] 19 Oct, 2020 @ 5:25pm 
Probably, unless one of their mods overrides UITacticalHUD_AbilityTooltip as well.
=[NK]= Col. Jack O'Neil 19 Oct, 2020 @ 5:05pm 
Would this work along side all of advent avengers changes???