Skip to content

Commit

Permalink
Fix manually completed missions not being complete.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxc8027 committed Apr 10, 2022
1 parent 81f0f23 commit b637cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Uchu.World/Systems/Missions/MissionInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ public class MissionInstance
public List<MissionTaskInstance> Tasks { get; private set; }

/// <summary>
/// Checks if this mission is completed by checking if all sub-tasks are completed
/// Checks if this mission is completed by checking if all sub-tasks are completed or the state is completed
/// </summary>
/// <returns><c>true</c> if completed, <c>false</c> otherwise</returns>
public bool Completed => Tasks.All(t => t.Completed);
public bool Completed => State == MissionState.Completed || Tasks.All(t => t.Completed);

/// <summary>
/// Checks if this mission is can be repeated and the cooldown time is satisfied.
Expand Down

0 comments on commit b637cfb

Please sign in to comment.