Skip to content

Commit

Permalink
Ship type quest tracker was not supporting the "All" type
Browse files Browse the repository at this point in the history
  • Loading branch information
Jebzou committed Dec 28, 2024
1 parent 1f71fb5 commit 207a639
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ public bool ConditionMet(IFleetData fleet)
bool flagshipCondition = !Model.MustBeFlagship ||
Model.Types.Contains(ships[0].MasterShip.ShipType);

int shipCount = ships.Count(s => Model.Types.Contains(s.MasterShip.ShipType));
int shipCount = Model.Types.Contains(ShipTypes.All) switch
{
true => ships.Count,
_ => ships.Count(s => Model.Types.Contains(s.MasterShip.ShipType)),
};

bool countCondition = Compare(shipCount, Model.Count, Model.ComparisonType);

Expand Down

0 comments on commit 207a639

Please sign in to comment.