From 140f0fbc418a1b3cdc118af00426b6fd9a1b7fbf Mon Sep 17 00:00:00 2001 From: Inutt <1228850-inutt@users.noreply.gitlab.com> Date: Fri, 5 Dec 2025 00:21:48 +0000 Subject: [PATCH] Revert "[#2532] Ignore Loadout If Embarked" This reverts commit b85705c13ab1f2e02ae612894fdd743b06fe269b. --- plugins/inara.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/plugins/inara.py b/plugins/inara.py index bf1a36f9..33b43094 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -106,7 +106,6 @@ class This: self.materials: list[dict[str, Any]] | None = None self.last_credits: int = 0 # Send credit update soon after Startup / new game self.storedmodules: list[dict[str, Any]] | None = None - self.embarked: bool = False # Boarded Someone Else's Ship? Should always start as False. self.loadout: dict[str, Any] | None = None self.fleet: list[dict[str, Any]] | None = None self.shipswap: bool = False # just swapped ship @@ -534,13 +533,6 @@ def journal_entry( # noqa: C901, CCR001 power_data = {'powerName': entry["Power"], 'rankValue': entry["Rank"]} new_add_event('setCommanderRankPower', entry['timestamp'], power_data) - # Handle Embark/Disembark Events - if event_name == 'Embark': - this.embarked = True - - if event_name == 'Disembark': - this.embarked = False - # Ship change if event_name == 'Loadout' and this.shipswap: this.loadout = make_loadout(state) @@ -830,7 +822,7 @@ def journal_entry( # noqa: C901, CCR001 for ship in this.fleet: new_add_event('setCommanderShip', entry['timestamp'], ship) # Loadout - if event_name == 'Loadout' and not this.embarked: # Ignore Loadout Events if Embarked + if event_name == 'Loadout': loadout = make_loadout(state) if this.loadout != loadout: this.loadout = loadout