refactor missions a bit

This commit is contained in:
2022-12-03 14:16:45 +01:00
parent ac3d1cd8b9
commit 8d72808fbf
5 changed files with 66 additions and 20 deletions

View File

@@ -499,7 +499,9 @@ internal class MissionCompletedParser : TransactionParserPart {
system_address == accepted_location.SystemAddress) {
// Source and target faction are the same, and this is the block
// for the source system. So we make a full mission completed entry.
transactions.Add(new MissionCompleted(entry) {
transactions.Add(new MissionCompleted() {
CompletedEntry = entry,
AcceptedEntry = accepted,
System = accepted_location.StarSystem,
Faction = source_faction_name,
SystemAddress = accepted_location.SystemAddress,
@@ -513,6 +515,7 @@ internal class MissionCompletedParser : TransactionParserPart {
// differs. Sometimes missions go to different systems but to
// the same faction.
transactions.Add(new InfluenceSupport() {
AcceptedEntry = accepted,
Faction = faction,
Influence = influences.Value,
System = system,