Пример #1
0
 public override bool Check(IQuestConditionContext context)
 {
     if (context.KilledNpc == null)
     {
         return(false);
     }
     return(context.KilledNpc.BotGroup == BotGroup);
 }
Пример #2
0
 public override bool Check(IQuestConditionContext context)
 {
     if (context.KilledNpc == null)
     {
         return(false);
     }
     return(context.KilledNpc.Level >= Level);
 }
Пример #3
0
 public override bool Check(IQuestConditionContext context)
 {
     if (context.KilledPlayer == null)
     {
         return(false);
     }
     return(Races.Contains(context.KilledPlayer.Race));
 }
Пример #4
0
 public override bool Check(IQuestConditionContext context)
 {
     if (string.IsNullOrEmpty(System) || (System.ToLower() == "any"))
     {
         return(true);
     }
     return(context.CapturedSystem == System);
 }
Пример #5
0
 public override bool Check(IQuestConditionContext context)
 {
     if (context.CreatedStructure == null)
     {
         return(false);
     }
     return(context.CreatedStructure.Type == Structure);
 }
Пример #6
0
 public override bool Check(IQuestConditionContext context)
 {
     if (context.KilledNpc == null)
     {
         return(false);
     }
     return(Colors.Contains(context.KilledNpc.Color));
 }
Пример #7
0
 public override bool Check(IQuestConditionContext context)
 {
     if (context.CraftedModule == null)
     {
         return(false);
     }
     return((context.CraftedModule.Color == Color) && (context.CraftedModule.Level >= Level) && (context.CraftedModule.Slot == ModuleType));
 }
Пример #8
0
 public override bool Check(IQuestConditionContext context)
 {
     return(context.PlayerLevel >= Level);
 }
Пример #9
0
 public override void ResetVariable(IQuestConditionContext context)
 {
     context.ResetVariable <bool>("companion");
 }
Пример #10
0
 public override void ResetVariable(IQuestConditionContext context)
 {
     context.ResetVariable <int>(VariableName);
 }
Пример #11
0
 public override bool Check(IQuestConditionContext context)
 {
     return(context.GetVariable <int>(OreId) >= Count);
 }
Пример #12
0
 public override bool Check(IQuestConditionContext context)
 {
     return(QuestIds.All(qid => context.IsQuestCompleted(qid)));
 }
Пример #13
0
 public virtual void ResetVariable(IQuestConditionContext context)
 {
 }
Пример #14
0
 public void ResetVariables(IQuestConditionContext context)
 {
     Conditions.ForEach(c => c.ResetVariable(context));
 }
Пример #15
0
 public override bool Check(IQuestConditionContext context)
 {
     return(context.GetVariable <bool>(VariableName));
 }
Пример #16
0
 public bool Check(IQuestConditionContext context)
 {
     return(Conditions.All(c => c.Check(context)));
 }
Пример #17
0
 public abstract bool Check(IQuestConditionContext context);