#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
24
Scripts/Engines/MLQuests/Definitions/BaseEscort.cs
Normal file
24
Scripts/Engines/MLQuests/Definitions/BaseEscort.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions
|
||||
{
|
||||
// Base class for escorts providing the AwardHumanInNeed option
|
||||
public class BaseEscort : MLQuest
|
||||
{
|
||||
public virtual bool AwardHumanInNeed { get { return true; } }
|
||||
|
||||
public BaseEscort()
|
||||
{
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
}
|
||||
|
||||
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