Added final features for this release. Now only polishing (if needed) remains.
Features: Sacrifice-Node, Maintain-Node, Options for screen type, lightcolor and soundvolume, tied in sound effects, game pause when menu is open, visibly open up gate when opening it.
This commit is contained in:
@@ -25,9 +25,12 @@ public partial class GameData
|
||||
public static Dictionary<int, List<Ingredient>> gateUnlocks;
|
||||
public static bool loadSaveOnStart = false;
|
||||
public static bool showTutorial = true;
|
||||
public static bool isPaused = false;
|
||||
|
||||
public static Color primaryColor = new Color("#276ac2");
|
||||
public static Color lightColor = new Color("#7efff5");
|
||||
public static int screenMode = 2;
|
||||
public static float soundVolume = 0.8f;
|
||||
|
||||
public static int ruinSize = 10;
|
||||
public static int layerSize = 20;
|
||||
@@ -44,12 +47,14 @@ public partial class GameData
|
||||
robotStats = new RobotStats();
|
||||
inventory = new Inventory();
|
||||
availableResearch = ResourceLoader.LoadResearch();
|
||||
map = null;
|
||||
robots.Clear();
|
||||
currentLayer = 0;
|
||||
visibleLayer = 0;
|
||||
lowestLayer = 0;
|
||||
maxRobotCount = 10;
|
||||
canMove = true;
|
||||
isPaused = false;
|
||||
}
|
||||
|
||||
public static void RebuildRobotStatsFromResearch()
|
||||
@@ -65,4 +70,22 @@ public partial class GameData
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static bool HasSpawnableRobotInInventory()
|
||||
{
|
||||
foreach (Item item in inventory.items)
|
||||
{
|
||||
if (robotStats.RobotTypes.ContainsKey(item.data.Id) && item.currentAmount > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool HasNoRobotRecovery()
|
||||
{
|
||||
return robots.Count <= 0 && !HasSpawnableRobotInInventory();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user