Skip to content

Commit

Permalink
feat: NAND conditions for player made helpers
Browse files Browse the repository at this point in the history
This default logic to be that conditions attached to a step are the things which all need to pass to move on to the next step.

This may be flawed for many use-cases.
  • Loading branch information
Zoinkwiz committed Nov 25, 2024
1 parent 40c96b0 commit bfdae8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/questhelper/questimport/JsonToQuest.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.google.gson.Gson;
import com.questhelper.requirements.Requirement;
import com.questhelper.requirements.conditional.Conditions;
import com.questhelper.requirements.util.LogicType;
import com.questhelper.steps.ConditionalStep;
import com.questhelper.steps.DetailedQuestStep;
import com.questhelper.steps.QuestStep;
Expand Down Expand Up @@ -121,7 +122,7 @@ private ConditionalStep assembleQuestSteps(JsonQuestHelper helper, List<QuestSte
Conditions conditions = null;
if (condRequirements != null && !condRequirements.isEmpty())
{
conditions = new Conditions(condRequirements);
conditions = new Conditions(LogicType.NAND, condRequirements);
}

rootStep.addStep(conditions, questStep);
Expand Down

0 comments on commit bfdae8c

Please sign in to comment.