- [X] Switches testing to moq for mocking - [X] Converts race changer packets - [X] Renames some more folders and misc cleanup
20 lines
542 B
C#
20 lines
542 B
C#
namespace Server.Engines.MLQuests.Definitions
|
|
{
|
|
// Base class for escorts providing the AwardHumanInNeed option
|
|
public class BaseEscort : MLQuest
|
|
{
|
|
public BaseEscort() => CompletionNotice = CompletionNoticeShort;
|
|
|
|
public virtual bool AwardHumanInNeed => true;
|
|
|
|
public override void GetRewards(MLQuestInstance instance)
|
|
{
|
|
if (AwardHumanInNeed)
|
|
{
|
|
HumanInNeed.AwardTo(instance.Player);
|
|
}
|
|
|
|
base.GetRewards(instance);
|
|
}
|
|
}
|
|
}
|