DisplayCustomOverwatchActionPointOnUnitFlag

Tracking Issue: #724

Tags: compatibility

The base XCOM 2 behavior is to show an Overwatch "eye" icon under the unit flag only if the soldier has at least one "overwatch" Reserve Action Point. The icon is not displayed for Pistol Overwatch. This change addresses that issue, and also allows mods that add weapons with custom Overwatch Action Point to specify that action point name in XComGame.ini:

[XComGame.CHHelpers]
+ValidReserveAPForUnitFlag = "overwatch"
+ValidReserveAPForUnitFlag = "pistoloverwatch"

Compatibility: If you override UIUnitFlag::RealizeOverwatch, your code may undo this change.

Source code references