Gear Schematic HUD

Created in-flight equipment HUD & schematic display
This commit is contained in:
Reinier Vens 2020-12-31 19:53:16 +00:00
commit 1e273d691e
253 changed files with 19369 additions and 6296 deletions

View file

@ -38,6 +38,8 @@ public class Reactor : IBehavior, IOrderedBehavior
public Entity Entity { get; }
public EquippedItem Item { get; }
public ItemManager Context { get; }
public float Surplus { get; private set; }
public int Order => 100;
@ -67,6 +69,8 @@ public class Reactor : IBehavior, IOrderedBehavior
Item.AddHeat(charge / efficiency);
Entity.Energy += charge;
Surplus = Entity.Energy;
// We have an energy deficit, try to get some energy out of our capacitors first
if (Entity.Energy < 0)