From 132d090fd574303c1d76837a1dcfb810a58c6f83 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Wed, 28 Dec 2022 09:53:02 +0100 Subject: [PATCH] add API to determine on foot missions --- EDPlayerJournal/Mission.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/EDPlayerJournal/Mission.cs b/EDPlayerJournal/Mission.cs index 7ee86c1..0f1f1d7 100644 --- a/EDPlayerJournal/Mission.cs +++ b/EDPlayerJournal/Mission.cs @@ -255,6 +255,18 @@ public class Mission : IComparable { /// public List FactionEffects { get; set; } = new List(); + /// + /// Returns true if the name is an on foot mission. + /// + public bool IsOnFoot { + get { + if (string.IsNullOrEmpty(Name)) { + return false; + } + + return Name.Contains("OnFoot"); + } + } public bool IsPassengerMission { get {