Formatting FIxes (#58)

This commit is contained in:
Kamron Batman 2019-10-04 23:08:13 -07:00 committed by GitHub
parent 57fb9fb525
commit 096d39609e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1318 changed files with 11633 additions and 22129 deletions

View file

@ -55,10 +55,7 @@ namespace Server.Engines.MLQuests.Objectives
#endregion
}
public override BaseObjectiveInstance CreateInstance(MLQuestInstance instance)
{
return new KillObjectiveInstance(this, instance);
}
public override BaseObjectiveInstance CreateInstance(MLQuestInstance instance) => new KillObjectiveInstance(this, instance);
}
#region Timed
@ -66,10 +63,8 @@ namespace Server.Engines.MLQuests.Objectives
public class TimedKillObjective : KillObjective
{
public TimedKillObjective(TimeSpan duration, int amount, Type[] types, TextDefinition name, QuestArea area = null)
: base(amount, types, name, area)
{
: base(amount, types, name, area) =>
Duration = duration;
}
public override bool IsTimed => true;
public override TimeSpan Duration{ get; }
@ -116,10 +111,7 @@ namespace Server.Engines.MLQuests.Objectives
return false;
}
public override bool IsCompleted()
{
return Slain >= Objective.DesiredAmount;
}
public override bool IsCompleted() => Slain >= Objective.DesiredAmount;
public override void WriteToGump(Gump g, ref int y)
{