factions for onfoot murders are right there
This commit is contained in:
@@ -319,15 +319,29 @@ internal class CommitCrimeParser : TransactionParserPart {
|
||||
victim = "Unknown";
|
||||
}
|
||||
|
||||
if (!context.NPCFaction.ContainsKey(victim)) {
|
||||
transactions.AddIncomplete(
|
||||
new FoulMurder(),
|
||||
"Crime victim was not properly scanned."
|
||||
);
|
||||
return;
|
||||
}
|
||||
string faction;
|
||||
|
||||
string faction = context.NPCFaction[victim];
|
||||
if (entry.IsCrime(CrimeTypes.OnFootMurder)) {
|
||||
if (entry.Faction == null) {
|
||||
transactions.AddIncomplete(
|
||||
new FoulMurder(),
|
||||
"On foot murder victim did not have a faction"
|
||||
);
|
||||
return;
|
||||
}
|
||||
// On foot murders are different, there the faction is
|
||||
// the faction the NPC belonged too
|
||||
faction = entry.Faction;
|
||||
} else {
|
||||
if (!context.NPCFaction.ContainsKey(victim)) {
|
||||
transactions.AddIncomplete(
|
||||
new FoulMurder(),
|
||||
"Crime victim was not properly scanned."
|
||||
);
|
||||
return;
|
||||
}
|
||||
faction = context.NPCFaction[victim];
|
||||
}
|
||||
|
||||
transactions.Add(new FoulMurder(entry) {
|
||||
System = context.CurrentSystem,
|
||||
|
||||
Reference in New Issue
Block a user