diff --git a/EDPlayerJournal/BGS/TransactionParser.cs b/EDPlayerJournal/BGS/TransactionParser.cs index 32c4bba..63ce7ad 100644 --- a/EDPlayerJournal/BGS/TransactionParser.cs +++ b/EDPlayerJournal/BGS/TransactionParser.cs @@ -1,7 +1,4 @@ using EDPlayerJournal.Entries; -using System.Collections.Generic; -using System.Reflection.Metadata.Ecma335; -using System.Transactions; namespace EDPlayerJournal.BGS; @@ -788,9 +785,20 @@ internal class ShutdownParser : TransactionParserPart { } } +internal class CapShipBondParser : TransactionParserPart { + public void Parse(Entry entry, TransactionParserContext context, TransactionList transactions) { + if (entry.GetType() != typeof(CapShipBondEntry)) { + return; + } + + context.HaveSeenCapShip = true; + } +} + public class TransactionParser { private static Dictionary ParserParts { get; } = new() { + { Events.CapShipBond, new CapShipBondParser() }, { Events.CommitCrime, new CommitCrimeParser() }, { Events.Disembark, new EmbarkDisembarkParser() }, { Events.Docked, new DockedParser() },