Hotfix for some DSL bugs (For node not working, Exploration not taking next layers into account)

This commit is contained in:
2026-05-19 20:59:15 +02:00
parent dc3912fa70
commit 121cc1eb03
8 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -14,12 +14,12 @@ public class ForNode : ProgramNode
public override NodeResult Execute(Robot robot, double delta)
{
bool isConditionFulfilled = DetermineCondition();
amountExecuted++;
if (isConditionFulfilled)
{
amountExecuted = 0;
}
return isConditionFulfilled ? NodeResult.SUCCESS : NodeResult.CONDITIONFALSE;
amountExecuted++;
return isConditionFulfilled ? NodeResult.CONDITIONFALSE : NodeResult.SUCCESS;
}
private bool DetermineCondition()