Fix torpedo count

This commit is contained in:
Andrew Cooper
2021-03-21 13:00:54 +11:00
parent 95ec6a2c02
commit 5e6aae3c19
3 changed files with 4 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ namespace SuperStarTrek.Objects
public float TotalEnergy { get; private set; }
public int DamagedSystemCount => _systems.Count(s => s.IsDamaged);
public IEnumerable<Subsystem> Systems => _systems;
public int TorpedoCount { get; }
public PhotonTubes PhotonTubes => (PhotonTubes)_commandExecutors[Command.TOR];
public bool IsDocked => _quadrant.EnterpriseIsNextToStarbase;
public bool IsStranded => TotalEnergy < 10 || Energy < 10 && ShieldControl.IsDamaged;