#W# MLQuests: Escortable quests are now working. I just need to add more of them. Added moongate to Shiver Island.
This commit is contained in:
parent
ac47317723
commit
b23e5fdd52
17 changed files with 167 additions and 127 deletions
|
|
@ -0,0 +1,20 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue