Fix battery charging stopping just short of being full (#34028)
This commit is contained in:
@@ -24,12 +24,6 @@ namespace Content.Server.Power.Components
|
||||
[DataField("startingCharge")]
|
||||
public float CurrentCharge;
|
||||
|
||||
/// <summary>
|
||||
/// True if the battery is fully charged.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public bool IsFullyCharged => MathHelper.CloseToPercent(CurrentCharge, MaxCharge);
|
||||
|
||||
/// <summary>
|
||||
/// The price per one joule. Default is 1 credit for 10kJ.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user