From 68a2767c39294fa9683d6e6f838b760d8c7de5bd Mon Sep 17 00:00:00 2001 From: Phoebe Date: Sun, 25 Feb 2024 19:14:08 +0100 Subject: [PATCH] Match remaining parts of ``EscapeInterdiction`` --- plugins/inara.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/inara.py b/plugins/inara.py index 8528f07b..0a18b9ae 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -1066,6 +1066,12 @@ def journal_entry( # noqa: C901, CCR001 if 'Interdictor' in entry: data['opponentName'] = entry['Interdictor'] + elif 'Faction' in entry: + data['opponentName'] = entry['Faction'] + + elif 'Power' in entry: + data['opponentName'] = entry['Power'] + elif 'isThargoid' in entry and entry['isThargoid']: data['opponentName'] = 'Thargoid'