Added survival mechanic that consumes inventory items if needed.
This commit is contained in:
@@ -11,9 +11,10 @@ public partial class RobotDisplay : PanelContainer
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
string programName = robot.currentProgram ?? "";
|
||||
if (programName != currentScript.Text)
|
||||
string status = $"{programName} | Heat {robot.heat:0}% | Maintenance {robot.maintenance:0}%";
|
||||
if (status != currentScript.Text)
|
||||
{
|
||||
currentScript.Text = programName;
|
||||
currentScript.Text = status;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user