RatAttack: apparently Mecha3 also has permit NAMES.
This commit is contained in:
parent
d9f940c7bc
commit
e14512f076
1 changed files with 3 additions and 2 deletions
|
@ -16,7 +16,7 @@ namespace RatAttack
|
|||
private static alterNERDtive.util.PipeServer<Ratsignal>? ratsignalPipe;
|
||||
|
||||
private static Regex RatsignalRegex = new Regex(
|
||||
@"^RATSIGNAL - CMDR (?<cmdr>.+) - Reported System: (?<system>.+) \(([0-9,\.]+ LY from .*|not in galaxy database|landmark)\)(?<permit> \x034\(Permit Required\)\x03)? - Platform: \x03(6|3|12)(?<platform>(PC|Xbox|PS4))\x03 - O2: (\x034)?(?<oxygen>(NOT )?OK)\x03? Language: .+ \(Case #(?<number>\d+)\) \((PC|XB|PS)_SIGNAL\)\v*$"
|
||||
@"^RATSIGNAL - CMDR (?<cmdr>.+) - Reported System: (?<system>.+) \(([0-9,\.]+ LY from .*|not in galaxy database|landmark)\)(?<permit> \x034\(((?<permitName>.*) )?Permit Required\)\x03)? - Platform: \x03(6|3|12)(?<platform>(PC|Xbox|PS4))\x03 - O2: (\x034)?(?<oxygen>(NOT )?OK)\x03? Language: .+ \(Case #(?<number>\d+)\) \((PC|XB|PS)_SIGNAL\)\v*$"
|
||||
);
|
||||
|
||||
private static VoiceAttackLog Log
|
||||
|
@ -87,12 +87,13 @@ namespace RatAttack
|
|||
string cmdr = match.Groups["cmdr"].Value;
|
||||
string system = match.Groups["system"].Value;
|
||||
bool permitLocked = match.Groups["permit"].Success;
|
||||
string permitName = match.Groups["permitName"].Value ?? "";
|
||||
string platform = match.Groups["platform"].Value;
|
||||
bool codeRed = match.Groups["oxygen"].Value.Equals("NOT OK");
|
||||
|
||||
int number = int.Parse(match.Groups["number"].Value);
|
||||
|
||||
Log.Debug($"new rat case, CMDR “{cmdr}” in “{system}” on {platform}, permit locked: {permitLocked}, code red: {codeRed} (#{number}).");
|
||||
Log.Debug($"New rat case: CMDR “{cmdr}” in “{system}” on {platform}, permit locked: {permitLocked}{(permitLocked && !permitName.Equals("") ? $" (permit name: {permitName})" : "")}, code red: {codeRed} (#{number}).");
|
||||
|
||||
CaseList[number] = new RatCase(cmdr, system, permitLocked, platform, codeRed, number);
|
||||
|
||||
|
|
Loading…
Reference in a new issue