From 0c2b3de01a09ed6aafb781915397f4f5fbcdfe07 Mon Sep 17 00:00:00 2001 From: MyAngelKamikaze Date: Sat, 25 Nov 2023 19:02:03 +0900 Subject: [PATCH] fix phase base air raid --- .../Sortie/Battle/Phase/PhaseBaseAirRaid.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ElectronicObserver/Window/Tools/SortieRecordViewer/Sortie/Battle/Phase/PhaseBaseAirRaid.cs b/ElectronicObserver/Window/Tools/SortieRecordViewer/Sortie/Battle/Phase/PhaseBaseAirRaid.cs index 18f25666a..a161dafa6 100644 --- a/ElectronicObserver/Window/Tools/SortieRecordViewer/Sortie/Battle/Phase/PhaseBaseAirRaid.cs +++ b/ElectronicObserver/Window/Tools/SortieRecordViewer/Sortie/Battle/Phase/PhaseBaseAirRaid.cs @@ -52,7 +52,7 @@ public class PhaseBaseAirRaid : PhaseBase public string? TouchAircraftFriend => Stage1?.ApiTouchPlane switch { - [EquipmentId id and > 0, ..] => KCDatabase.Instance.MasterEquipments[(int)id].NameEN, + [EquipmentId id and > 0, ..] => KCDatabase.Instance.MasterEquipments[(int)id].NameEN, _ => null, }; public string? TouchAircraftFriendDisplay => TouchAircraftFriend switch @@ -63,7 +63,7 @@ public class PhaseBaseAirRaid : PhaseBase public string? TouchAircraftEnemy => Stage1?.ApiTouchPlane switch { - [_, EquipmentId id and > 0, ..] => KCDatabase.Instance.MasterEquipments[(int)id].NameEN, + [_, EquipmentId id and > 0, ..] => KCDatabase.Instance.MasterEquipments[(int)id].NameEN, _ => null, }; public string? TouchAircraftEnemyDisplay => TouchAircraftEnemy switch @@ -74,15 +74,15 @@ public class PhaseBaseAirRaid : PhaseBase public string? Stage2Display { get; protected set; } - public List PlayerTorpedoFlags { get; set; } - public List PlayerBomberFlags { get; set; } - public List PlayerHitFlags { get; set; } - public List PlayerDamage { get; set; } + public List PlayerTorpedoFlags { get; set; } = new(); + public List PlayerBomberFlags { get; set; } = new(); + public List PlayerHitFlags { get; set; } = new(); + public List PlayerDamage { get; set; } = new(); - public List EnemyTorpedoFlags { get; set; } - public List EnemyBomberFlags { get; set; } - public List EnemyHitFlags { get; set; } - public List EnemyDamage { get; set; } + public List EnemyTorpedoFlags { get; set; } = new(); + public List EnemyBomberFlags { get; set; } = new(); + public List EnemyHitFlags { get; set; } = new(); + public List EnemyDamage { get; set; } = new(); private List Squadrons { get; }