forked from aly/qstbak
muffin v6.35
This commit is contained in:
parent
a10041e3fd
commit
ac85599236
7 changed files with 5916 additions and 5158 deletions
|
|
@ -93,6 +93,10 @@ internal static class SkipCondition
|
|||
{
|
||||
return true;
|
||||
}
|
||||
if (CheckLevelCondition(skipConditions))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (CheckQuestWorkConditions(elementId, step))
|
||||
{
|
||||
return true;
|
||||
|
|
@ -318,6 +322,16 @@ internal static class SkipCondition
|
|||
return false;
|
||||
}
|
||||
|
||||
private bool CheckLevelCondition(SkipStepConditions skipConditions)
|
||||
{
|
||||
if (skipConditions.MinimumLevel.HasValue && clientState.LocalPlayer != null && clientState.LocalPlayer.Level >= skipConditions.MinimumLevel.Value)
|
||||
{
|
||||
logger.LogInformation("Skipping step, as player level {CurrentLevel} >= minimum level {MinLevel}", clientState.LocalPlayer.Level, skipConditions.MinimumLevel.Value);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private bool CheckQuestWorkConditions(ElementId elementId, QuestStep step)
|
||||
{
|
||||
QuestProgressInfo questProgressInfo = questFunctions.GetQuestProgressInfo(elementId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue