Gear Schematic HUD
Created in-flight equipment HUD & schematic display
This commit is contained in:
parent
6db7c65961
commit
1e273d691e
253 changed files with 19369 additions and 6296 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue