Caution! This might be very complex to implement and could break a lot of things, but here we go:
An ability to undo/revert/take away a researched upgrade via code. For example, on building death. Gameplay use case - suits buildings which grant an upgrade by default or when researched, and the player would have to build the building again, or even pay for the upgrade again, so the upgrade effect is active as long as the building is alive.
UndoUpgradeWhenDeadBehavior
UndoUpgrades = Upgrade_Nationalism
End
Reverting an upgrade should clear any affected logic - commandsets, weapons, armors, etc.
If this is ever implemented, undo upgrade triggers can be expanded to work with other triggers than building deaths.
Caution! This might be very complex to implement and could break a lot of things, but here we go:
An ability to undo/revert/take away a researched upgrade via code. For example, on building death. Gameplay use case - suits buildings which grant an upgrade by default or when researched, and the player would have to build the building again, or even pay for the upgrade again, so the upgrade effect is active as long as the building is alive.
Reverting an upgrade should clear any affected logic - commandsets, weapons, armors, etc.
If this is ever implemented, undo upgrade triggers can be expanded to work with other triggers than building deaths.