Skip to content

Display diff of combat stats for upgradeable units#107

Closed
efrec wants to merge 8 commits intoAsyncTI4:mainfrom
efrec:feat/show-unit-combat-upgrades
Closed

Display diff of combat stats for upgradeable units#107
efrec wants to merge 8 commits intoAsyncTI4:mainfrom
efrec:feat/show-unit-combat-upgrades

Conversation

@efrec
Copy link
Copy Markdown

@efrec efrec commented Jan 28, 2026

Work done

Displays the delta in combat stats on the unit details of upgradeable units.

When looking around the interface today, I didn't find a quick way to inspect my potential technology picks or unit upgrades. This was the most simple way to view that info, in my opinion, right on the unit detail popover.

Some considerations:

  • This might not be the ideal place for that info.
  • This introduces a minor inconsistency that units that are not unlocked (War Sun) have no preview/unit detail to show.

Also, I am a TypeScript noob. I suspect this code is not entirely up to par. I'm not using an LLM/etc. so at least my noob mistakes are natty.

Testing

Working in tests. I noticed a small delay on click which might be normal.

I tested using my local game (first time playing today) and did not notice issues. But I'm a TI4 noob, too, so maybe there are more exotic combinations to test.

{14B8A74F-399D-4FFA-A79C-846FEA785B28}

@efrec efrec force-pushed the feat/show-unit-combat-upgrades branch from 314a8c2 to 8d323a9 Compare January 28, 2026 22:56
@efrec efrec marked this pull request as ready for review January 28, 2026 23:03
@efrec efrec changed the title get diff of combat stats for upgraded units Display diff of combat stats for upgradeable units Jan 28, 2026
@efrec efrec force-pushed the feat/show-unit-combat-upgrades branch from e6fcaef to fe443cc Compare February 8, 2026 16:44
@efrec efrec closed this Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant