Skip to content

Commit

Permalink
Merge pull request #332 from zxc8027/completed-command-fix
Browse files Browse the repository at this point in the history
Fix /complete Command Breaking Mission Progression
  • Loading branch information
TheNexusAvenger authored Apr 12, 2022
2 parents c0a4995 + b637cfb commit 70cb754
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 70cb754

Please sign in to comment.