Skip to content

Commit

Permalink
fix: normal1.json is not valid name of map parameters json :(, repaired
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilz12 committed Dec 17, 2024
1 parent 476cf8e commit 8ec5548
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Server/Components/Pages/GamePage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
{ "Inventory", _inventory }
};
MapParameters mapParameters = MapParametersService.ReadMapParametersFromJson(
"Config/MapParameters/Normal1.json");
"Config/MapParameters/Normal.json");
_map = await MapGeneratorService.GetMap(mapParameters);
_mapDisplayData.ShowColorMap = true;

Expand Down
2 changes: 0 additions & 2 deletions Server/Modules/MapGenerator/Models/Node.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ public class Node : IPathfindingNode

[Required]
public float NoiseValue { get; set; }

public Color Color;
public int GCost { get; set; }
public int HCost { get; set; }
public int FCost => GCost + HCost;
Expand Down

0 comments on commit 8ec5548

Please sign in to comment.