Shield UI Tweak

Greyed out and swapped shield icon when enemy has no shield equipped
This commit is contained in:
Reinier Vens 2021-04-29 00:21:33 +01:00
commit e295b1a1ab
13 changed files with 368 additions and 86 deletions

View file

@ -26,12 +26,11 @@ public class ShieldData : BehaviorData
}
}
public class Shield : Behavior
public class Shield : Behavior, IProgressBehavior
{
public float Efficiency { get; private set; }
public float EnergyUsage { get; private set; }
private ShieldData _data;
public Shield(ShieldData data, EquippedItem item) : base(data, item)
@ -60,4 +59,6 @@ public class Shield : Behavior
Entity.TryConsumeEnergy(damage * EnergyUsage);
AddHeat(damage / Efficiency);
}
public virtual float Progress => Item.ThermalPerformance;
}