Added basic symbols for most of the resources and changed map to be revealed whilst robots are exploring.
This commit is contained in:
@@ -4,22 +4,14 @@ using Godot;
|
||||
|
||||
public class ResourceDistributor
|
||||
{
|
||||
public static List<string> resourceNames = new()
|
||||
{
|
||||
"Iron ore",
|
||||
"Stone",
|
||||
"Copper ore",
|
||||
"Spiderweb",
|
||||
"Mushroom",
|
||||
"Tin ore"
|
||||
};
|
||||
public static Dictionary<string, Texture2D> resources = ResourceLoader.LoadResourceSymbols();
|
||||
|
||||
public static string GetResource(List<string> current)
|
||||
{
|
||||
List<string> diff = resourceNames.Except(current).ToList();
|
||||
List<string> diff = resources.Keys.Except(current).ToList();
|
||||
if (diff.Count <= 0)
|
||||
{
|
||||
return resourceNames[GameData.rand.Next(resourceNames.Count)];
|
||||
return resources.Keys.ToList()[GameData.rand.Next(resources.Keys.Count)];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user