Added resource weights and layer unlock UI to the game.

This commit is contained in:
2026-05-09 13:53:00 +02:00
parent 677d8595db
commit 9fa1909dcb
7 changed files with 101 additions and 29 deletions
+16
View File
@@ -90,6 +90,22 @@ public partial class ResourceLoader
return symbols;
}
public static Dictionary<string, float[]> LoadResourceWeights()
{
Dictionary<string, float[]> weights = new Dictionary<string, float[]>()
{
{ "iron_ore", [0.05f,1] },
{ "tin_ore", [0.3f,0.7f] },
{ "copper_ore", [0.3f,0.7f] },
{ "mushroom", [0.3f,0.1f] },
{ "spider_silk", [0.8f,0.4f] },
{ "coal", [1,0.3f] },
{ "water", [0.4f,0.2f] },
{ "stone", [1,0.5f] },
};
return weights;
}
public static SortedDictionary<string, ItemData> LoadItems()
{