Compare commits

...

3 Commits

Author SHA1 Message Date
db192748b0 update changelog 2022-12-11 12:31:36 +01:00
a43ade2f3c adjust detection of high combat zones 2022-12-11 12:30:02 +01:00
a6b16fd5b8 commander entry happens when you relog
Use it to discern combat zone relogs.
2022-12-11 12:29:32 +01:00
2 changed files with 12 additions and 1 deletions

View File

@ -86,7 +86,7 @@ internal class TransactionParserContext {
if (OnFootKills > 0 || IsOnFoot == true) { if (OnFootKills > 0 || IsOnFoot == true) {
cztype = CombatZones.GroundCombatZone; cztype = CombatZones.GroundCombatZone;
// High on foot combat zones have enforcers that bring 80k a pop // High on foot combat zones have enforcers that bring 80k a pop
if (highest >= 80000) { if (highest >= 60000) {
grade = CombatZones.DifficultyHigh; grade = CombatZones.DifficultyHigh;
} else if (highest >= 30000) { } else if (highest >= 30000) {
// In medium conflict zones, the enforcers are worth 30k // In medium conflict zones, the enforcers are worth 30k
@ -902,10 +902,20 @@ internal class DropshipDeployParser : TransactionParserPart {
} }
} }
internal class CommanderParser : TransactionParserPart {
public void Parse(Entry entry, TransactionParserContext context, TransactionList transactions) {
// A commander entry happens when you log out, and log back in again
// for example when switching from Open, to Solo or PG.
context.DiscernCombatZone(transactions, entry);
context.ResetCombatZone();
}
}
public class TransactionParser { public class TransactionParser {
private static Dictionary<string, TransactionParserPart> ParserParts { get; } = new() private static Dictionary<string, TransactionParserPart> ParserParts { get; } = new()
{ {
{ Events.CapShipBond, new CapShipBondParser() }, { Events.CapShipBond, new CapShipBondParser() },
{ Events.Commander, new CommanderParser() },
{ Events.CommitCrime, new CommitCrimeParser() }, { Events.CommitCrime, new CommitCrimeParser() },
{ Events.Died, new DiedParser() }, { Events.Died, new DiedParser() },
{ Events.Disembark, new EmbarkDisembarkParser() }, { Events.Disembark, new EmbarkDisembarkParser() },

View File

@ -7,6 +7,7 @@
pick up missions done the previous day, and completed at the selected day. pick up missions done the previous day, and completed at the selected day.
* Add support for ground combat zones when done using Frontier Solutions (DropshipDeploy). * Add support for ground combat zones when done using Frontier Solutions (DropshipDeploy).
* Add more mission names for Thargoid war. * Add more mission names for Thargoid war.
* Relogs in an on foot combat zone are now properly detected.
## 0.2.2 on 07.12.2022 ## 0.2.2 on 07.12.2022