Added new release, updated nodes to contain tooltip text.

This commit is contained in:
2026-05-14 13:02:25 +02:00
parent 588879951d
commit a2acfcefd6
20 changed files with 21 additions and 4 deletions
+1
View File
@@ -7,6 +7,7 @@ public class CraftNode : ProgramNode
public CraftNode()
{
DisplayText = "Craft";
TooltipText = "Crafts the selected item the selected amount of times by consuming the required ingredients from the shared inventory.";
}
public override NodeResult Execute(Robot robot, double delta)
{
+1
View File
@@ -11,6 +11,7 @@ public class ExploreNode : ProgramNode
public ExploreNode()
{
DisplayText = "Explore";
TooltipText = "Explores nearby unknown tiles around the robot and reveals them for future navigation. \rContinues exploration until no unvisited tile is left.";
}
public override NodeResult Execute(Robot robot, double delta)
+1
View File
@@ -8,6 +8,7 @@ public class ForNode : ProgramNode
public ForNode()
{
DisplayText = "For";
TooltipText = "Repeats the connected branch (Top slot) for the configured amount of executions before continuing through the negative output. (Bottom slot)";
}
public override NodeResult Execute(Robot robot, double delta)
+1
View File
@@ -5,6 +5,7 @@ public class HarvestNode : ProgramNode
public HarvestNode()
{
DisplayText = "Harvest";
TooltipText = "Harvests one unit from the resource on the robot's current tile and adds the result to the shared inventory.";
}
public override NodeResult Execute(Robot robot, double delta)
+1
View File
@@ -9,6 +9,7 @@ public class IfNode : ProgramNode
public IfNode()
{
DisplayText = "If";
TooltipText = "Checks an inventory condition once. If the condition is true, execution follows the main output (Top slot); otherwise it follows the negative output. (Bottom slot)";
}
public override NodeResult Execute(Robot robot, double delta)
+1
View File
@@ -7,6 +7,7 @@ public class MaintainNode : ProgramNode
public MaintainNode()
{
DisplayText = "Maintain";
TooltipText = "Repairs the robot by consuming one matching gear and restoring a small amount of maintenance.";
}
public override NodeResult Execute(Robot robot, double delta)
+1
View File
@@ -10,6 +10,7 @@ public class MoveNode : ProgramNode
public MoveNode()
{
DisplayText = "Move";
TooltipText = "Moves the robot to the selected map coordinate. The path must be reachable from the robot's current position.";
}
public override NodeResult Execute(Robot robot, double delta)
+1
View File
@@ -6,6 +6,7 @@ public abstract class ProgramNode
public ProgramNode nextNode;
public ProgramNode NegativeNode;
public string DisplayText;
public string TooltipText;
public string lastExecutionMessage;
public abstract NodeResult Execute(Robot robot, double delta);
+1
View File
@@ -5,6 +5,7 @@ public class SacrificeNode : ProgramNode
public SacrificeNode()
{
DisplayText = "Sacrifice";
TooltipText = "Sacrifices the robot on its current tile to turn that tile's resource into an endless resource.";
}
public override NodeResult Execute(Robot robot, double delta)
+1
View File
@@ -3,6 +3,7 @@ public class StartNode : ProgramNode
public StartNode()
{
DisplayText = "Start";
TooltipText = "Marks where the robot begins executing the script. Every valid script needs exactly one Start node.";
}
public override NodeResult Execute(Robot robot, double delta)
+1
View File
@@ -9,6 +9,7 @@ public class WhileNode : ProgramNode
public WhileNode()
{
DisplayText = "While";
TooltipText = "Repeats the connected branch (Top slot) while the configured inventory condition remains true, then continues through the negative output. (Bottom slot)";
}
public override NodeResult Execute(Robot robot, double delta)