723Studio / OpenXcom_FTA

Fork of OXCE project with additions to support From the Ashes project
http://x-comfromtheashes.tilda.ws/
GNU General Public License v3.0
14 stars 18 forks source link

Craft property - engine cooldown, turns until mission abortion available #219

Closed Finnik723 closed 9 months ago

Finnik723 commented 1 year ago

Add new RuleCraft property, loaded from YAML - engineCooldown: int, default 0 in constructor. If engineCooldown > 0, on calling BattlescapeState::btnAbortClick(Action *) check if SavedBattleGame *battleGame->getTurn() < engineCooldown, don't show AbortMissionState, instead display CustomBattleMessageState with BattleMessage:

title = "STR_ENGINE_COOLDOWN_TITLE"
content = "STR_ENGINE_COOLDOWN_CONTENT"
answer = "STR_OK"
background = "TAC00.SCR"