public override bool Check(IQuestConditionContext context) { if (context.KilledNpc == null) { return(false); } return(context.KilledNpc.BotGroup == BotGroup); }
public override bool Check(IQuestConditionContext context) { if (context.KilledNpc == null) { return(false); } return(context.KilledNpc.Level >= Level); }
public override bool Check(IQuestConditionContext context) { if (context.KilledPlayer == null) { return(false); } return(Races.Contains(context.KilledPlayer.Race)); }
public override bool Check(IQuestConditionContext context) { if (string.IsNullOrEmpty(System) || (System.ToLower() == "any")) { return(true); } return(context.CapturedSystem == System); }
public override bool Check(IQuestConditionContext context) { if (context.CreatedStructure == null) { return(false); } return(context.CreatedStructure.Type == Structure); }
public override bool Check(IQuestConditionContext context) { if (context.KilledNpc == null) { return(false); } return(Colors.Contains(context.KilledNpc.Color)); }
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)); }
public override bool Check(IQuestConditionContext context) { return(context.PlayerLevel >= Level); }
public override void ResetVariable(IQuestConditionContext context) { context.ResetVariable <bool>("companion"); }
public override void ResetVariable(IQuestConditionContext context) { context.ResetVariable <int>(VariableName); }
public override bool Check(IQuestConditionContext context) { return(context.GetVariable <int>(OreId) >= Count); }
public override bool Check(IQuestConditionContext context) { return(QuestIds.All(qid => context.IsQuestCompleted(qid))); }
public virtual void ResetVariable(IQuestConditionContext context) { }
public void ResetVariables(IQuestConditionContext context) { Conditions.ForEach(c => c.ResetVariable(context)); }
public override bool Check(IQuestConditionContext context) { return(context.GetVariable <bool>(VariableName)); }
public bool Check(IQuestConditionContext context) { return(Conditions.All(c => c.Check(context))); }
public abstract bool Check(IQuestConditionContext context);