Added resource weights and layer unlock UI to the game.
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user