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

Enemy VIP capture/assassinate mission results handling #224

Open Finnik723 opened 1 year ago

Finnik723 commented 1 year ago

For making new mission types. On debriefing, add stats "STR_ENEMY_VIP_CAPTURED" if unit with getSpecialObjective() == SPECOBJ_ENEMY_VIP and getOriginalFaction() == FACTION_HOSTILE and getStatus() == STATUS_DEAD with value = getValue() * 2

Add new value for extendedObjectiveType property processing: STR_ENEMY_VIP On debriefing, with such extendedObjectiveType, when considering mission success, check, if all enemy units with getSpecialObjective() == SPECOBJ_ENEMY_VIP are either dead, or recovered alive. If true, mission succeed, debriefing _txtTitle->setText(tr("STR_MISSION_ACCOMPLISHED")), else STR_MISSION_FAILED