1
0
Fork 0
forked from aly/qstbak

muffin v6.35

This commit is contained in:
alydev 2025-10-29 06:43:45 +10:00
parent a10041e3fd
commit ac85599236
7 changed files with 5916 additions and 5158 deletions

View file

@ -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);