changed ambiguous naming from water and food to thirst and hunger. fixed For node execution
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user