changed ambiguous naming from water and food to thirst and hunger. fixed For node execution

This commit is contained in:
2026-05-14 20:12:30 +02:00
parent a2acfcefd6
commit 6591dfe637
4 changed files with 9 additions and 5 deletions
+5 -1
View File
@@ -15,7 +15,11 @@ public class ForNode : ProgramNode
{
bool isConditionFulfilled = DetermineCondition();
amountExecuted++;
return isConditionFulfilled ? NodeResult.SUCCESS : NodeResult.CONDITIONFALSE;
if (isConditionFulfilled)
{
amountExecuted = 0;
}
return isConditionFulfilled ? NodeResult.CONDITIONFALSE : NodeResult.SUCCESS;
}
private bool DetermineCondition()