Health analyzer displays turns off when the battery dies (#16125)
This commit is contained in:
@@ -166,7 +166,6 @@ public sealed class PowerCellSystem : SharedPowerCellSystem
|
||||
|
||||
return HasCharge(uid, battery.UseRate, cell, user);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tries to use the <see cref="PowerCellDrawComponent.UseRate"/> for this entity.
|
||||
/// </summary>
|
||||
@@ -179,6 +178,7 @@ public sealed class PowerCellSystem : SharedPowerCellSystem
|
||||
|
||||
if (TryUseCharge(uid, battery.UseRate, cell, user))
|
||||
{
|
||||
_sharedAppearanceSystem.SetData(uid, PowerCellSlotVisuals.Enabled, HasActivatableCharge(uid, battery, cell, user));
|
||||
_activatable.CheckUsage(uid);
|
||||
return true;
|
||||
}
|
||||
@@ -243,6 +243,7 @@ public sealed class PowerCellSystem : SharedPowerCellSystem
|
||||
return false;
|
||||
}
|
||||
|
||||
_sharedAppearanceSystem.SetData(uid, PowerCellSlotVisuals.Enabled, battery.Charge > 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user