RatAttack: fixed RATSIGNAL parsing for “cardinal direction” addition to distance estimates for proc gen systems.

This commit is contained in:
alterNERDtive 2021-03-08 19:37:28 +01:00
parent 7511d59641
commit b2f8ec96d6
2 changed files with 3 additions and 1 deletions

View file

@ -12,6 +12,8 @@
* Fixed RATSIGNAL parsing for “Sagittarius A*” landmark.
* Fixed RATSIGNAL parsing for new wording of injected cases with no system
given.
* Fixed RATSIGNAL parsing for “cardinal direction” addition to distance
estimates for proc gen systems.
## SpanshAttack 7.2

View file

@ -18,7 +18,7 @@ namespace RatAttack
private static alterNERDtive.util.PipeServer<Ratsignal>? ratsignalPipe;
private static readonly Regex RatsignalRegex = new Regex(
@"^RATSIGNAL - CMDR (?<cmdr>.+) - Reported System: (None|unknown system|""(?<system>.+)""(\x0314)? \((?<systemInfo>([a-zA-Z0-9\s\(\)\-~]*([0-9,\.]+ LY from [a-zA-Z0-9\s\*]+)?|Not found in galaxy database|Invalid system name))\)(\x03)?(?<permit> \x037\(((?<permitName>.*) )?Permit Required\)\x03)?) - Platform: \x03(6|3|12)(?<platform>(PC|Xbox|Playstation))\x03 - O2: (\x034)?(?<oxygen>(NOT )?OK)\x03? - Language: .+ (- IRC Nick (?<nick>[a-zA-Z_\[\]\-]+))?\(\x02Case #(?<number>\d+)\x02\) \((PC|XB|PS)_SIGNAL\)\v*$"
@"^RATSIGNAL - CMDR (?<cmdr>.+) - Reported System: (None|unknown system|""(?<system>.+)""(\x0314)? \((?<systemInfo>([a-zA-Z0-9\s\(\)\-~""]*([0-9,\.]+ LY from [a-zA-Z0-9\s\*]+)?|Not found in galaxy database|Invalid system name))\)(\x03)?(?<permit> \x037\(((?<permitName>.*) )?Permit Required\)\x03)?) - Platform: \x03(6|3|12)(?<platform>(PC|Xbox|Playstation))\x03 - O2: (\x034)?(?<oxygen>(NOT )?OK)\x03? - Language: .+ (- IRC Nick (?<nick>[a-zA-Z_\[\]\-]+))?\(\x02Case #(?<number>\d+)\x02\) \((PC|XB|PS)_SIGNAL\)\v*$"
);
private static VoiceAttackLog Log