Fixes code according to modern code style. Fixes a few expression bugs.

This commit is contained in:
Kamron Batman 2018-09-15 09:58:51 -07:00
parent 89eea25e5f
commit 970fd563b2
3324 changed files with 441118 additions and 433755 deletions

View file

@ -1,21 +1,21 @@
namespace Server.Engines.MLQuests.Definitions
{
// Base class for escorts providing the AwardHumanInNeed option
public class BaseEscort : MLQuest
{
public virtual bool AwardHumanInNeed => true;
// Base class for escorts providing the AwardHumanInNeed option
public class BaseEscort : MLQuest
{
public BaseEscort()
{
CompletionNotice = CompletionNoticeShort;
}
public BaseEscort()
{
CompletionNotice = CompletionNoticeShort;
}
public virtual bool AwardHumanInNeed => true;
public override void GetRewards( MLQuestInstance instance )
{
if ( AwardHumanInNeed )
HumanInNeed.AwardTo( instance.Player );
public override void GetRewards(MLQuestInstance instance)
{
if (AwardHumanInNeed)
HumanInNeed.AwardTo(instance.Player);
base.GetRewards( instance );
}
}
}
base.GetRewards(instance);
}
}
}