Added missing Symbol to the game, Improved move and explore logic, added map refresh for tiles.

This commit is contained in:
2026-05-09 09:38:34 +02:00
parent 342b6e490f
commit e00259cd31
13 changed files with 127 additions and 35 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ public class CraftNode : ProgramNode
if(GameData.availableResearch[item.Research].state != ResearchState.RESEARCHED) continue;
if (item.Inputs.Count > 0)
{
options.AddItem(item.GetReadableName());
options.AddItem(item.GetCraftingDisplay());
}
}
if (selectedItem != null)
+2 -3
View File
@@ -41,15 +41,14 @@ public class ExploreNode : ProgramNode
Vector3 target = pathPoints[0] - startPosition;
float distance = target.Length();
if (distance < 0.1f)
if (distance < 0.1f * Mathf.Sqrt(GameData.robotSpeed))
{
robot.Position = pathPoints[0];
Vector3I mapIndex = Pathfinding.GetClosestStartPoint(robot.Position);
Tile tile = GameData.map[mapIndex.Y].tiles[mapIndex.X, mapIndex.Z];
if (!tile.wasVisited)
{
tile.wasVisited = true;
tile.ContentNode.Visible = true;
tile.VisitTile();
}
pathPoints.Remove(pathPoints[0]);
if (pathPoints.Count <= 0)
+1 -2
View File
@@ -30,8 +30,7 @@ public class MoveNode : ProgramNode
Tile tile = GameData.map[mapIndex.Y].tiles[mapIndex.X, mapIndex.Z];
if (!tile.wasVisited)
{
tile.wasVisited = true;
tile.ContentNode.Visible = true;
tile.VisitTile();
}
pathPoints.Remove(pathPoints[0]);
if (pathPoints.Count <= 0)