thargoid combat zones are called "AX" combat zones ingame

This commit is contained in:
Florian Stinglmayr 2022-12-03 20:42:38 +01:00
parent f5f6d538f0
commit cb8698dd42
6 changed files with 24 additions and 8 deletions

View File

@ -66,7 +66,7 @@ public class CombatZone : Transaction {
/// Returns true if it is a thargoid combat zone /// Returns true if it is a thargoid combat zone
/// </summary> /// </summary>
public bool IsThargoid { public bool IsThargoid {
get { return string.Compare(Type, CombatZones.ThargoidCombatZone) == 0; } get { return string.Compare(Type, CombatZones.AXCombatZone) == 0; }
} }
public override int CompareTo(Transaction? obj) { public override int CompareTo(Transaction? obj) {

View File

@ -112,7 +112,7 @@ internal class TransactionParserContext {
cztype = CombatZones.ShipCombatZone; cztype = CombatZones.ShipCombatZone;
} else if (ThargoidScoutKills > 0 && ThargoidInterceptorKills > 0) { } else if (ThargoidScoutKills > 0 && ThargoidInterceptorKills > 0) {
// Could be a thargoid combat zones if interceptors and scouts are there // Could be a thargoid combat zones if interceptors and scouts are there
cztype = CombatZones.ThargoidCombatZone; cztype = CombatZones.AXCombatZone;
// Still unknown // Still unknown
grade = null; grade = null;
} else { } else {

View File

@ -15,9 +15,9 @@ public class CombatZones {
public static readonly string ShipCombatZone = "Ship"; public static readonly string ShipCombatZone = "Ship";
/// <summary> /// <summary>
/// Thargoid combat zone /// AX combat zone
/// </summary> /// </summary>
public static readonly string ThargoidCombatZone = "Thargoid"; public static readonly string AXCombatZone = "AX";
/// <summary> /// <summary>
/// Difficulty low /// Difficulty low
@ -33,4 +33,9 @@ public class CombatZones {
/// Difficulty high /// Difficulty high
/// </summary> /// </summary>
public static readonly string DifficultyHigh = "High"; public static readonly string DifficultyHigh = "High";
/// <summary>
/// Very high difficulty, so far AX combat zone only
/// </summary>
public static readonly string DifficultyVeryHigh = "Very High";
} }

View File

@ -110,13 +110,14 @@
<Button x:Name="Low" Content="Low" Click="Low_Click"/> <Button x:Name="Low" Content="Low" Click="Low_Click"/>
<Button x:Name="Med" Content="Med" Click="Med_Click"/> <Button x:Name="Med" Content="Med" Click="Med_Click"/>
<Button x:Name="High" Content="High" Click="High_Click"/> <Button x:Name="High" Content="High" Click="High_Click"/>
<Button x:Name="VeryHigh" Content="Very High" Click="VeryHigh_Click" />
</StackPanel> </StackPanel>
</Expander> </Expander>
<Expander Header="Type"> <Expander Header="Type">
<StackPanel Orientation="Vertical"> <StackPanel Orientation="Vertical">
<Button Content="Ground" x:Name="Ground" Click="Ground_Click"/> <Button Content="Ground" x:Name="Ground" Click="Ground_Click"/>
<Button Content="Ship" x:Name="Ship" Click="Ship_Click"/> <Button Content="Ship" x:Name="Ship" Click="Ship_Click"/>
<Button Content="Thargoid" x:Name="Thargoid" Click="Thargoid_Click"/> <Button Content="AX" x:Name="Thargoid" Click="Thargoid_Click"/>
</StackPanel> </StackPanel>
</Expander> </Expander>
</StackPanel> </StackPanel>

View File

@ -309,6 +309,16 @@ public partial class MainWindow : Window {
RefreshView(); RefreshView();
} }
private void VeryHigh_Click(object sender, RoutedEventArgs e) {
CombatZone transaction = GetTransaction<CombatZone>(sender);
if (transaction == null) {
return;
}
transaction.Grade = CombatZones.DifficultyVeryHigh;
RefreshView();
}
private void Ground_Click(object sender, RoutedEventArgs e) { private void Ground_Click(object sender, RoutedEventArgs e) {
CombatZone transaction = GetTransaction<CombatZone>(sender); CombatZone transaction = GetTransaction<CombatZone>(sender);
if (transaction == null) { if (transaction == null) {
@ -335,7 +345,7 @@ public partial class MainWindow : Window {
return; return;
} }
transaction.Type = CombatZones.ThargoidCombatZone; transaction.Type = CombatZones.AXCombatZone;
RefreshView(); RefreshView();
} }

View File

@ -56,14 +56,14 @@ public class UITransaction {
} }
} }
public Visibility IsThargoidCombatZone { public Visibility IsAXCombatZone {
get { get {
CombatZone combat = Transaction as CombatZone; CombatZone combat = Transaction as CombatZone;
if (combat == null) { if (combat == null) {
return Visibility.Hidden; return Visibility.Hidden;
} }
if (string.Compare(combat.Type, CombatZones.ThargoidCombatZone) == 0) { if (string.Compare(combat.Type, CombatZones.AXCombatZone) == 0) {
return Visibility.Visible; return Visibility.Visible;
} }