v1.5.7.0 (Summer Update)
This commit is contained in:
@@ -7,7 +7,7 @@ using System.Linq;
|
||||
|
||||
namespace Barotrauma.Items.Components
|
||||
{
|
||||
partial class Pump : Powered, IServerSerializable, IClientSerializable
|
||||
partial class Pump : Powered, IServerSerializable, IClientSerializable, IDeteriorateUnderStress
|
||||
{
|
||||
private float flowPercentage;
|
||||
private float maxFlow;
|
||||
@@ -85,6 +85,8 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
public override bool UpdateWhenInactive => true;
|
||||
|
||||
public float CurrentStress => Math.Abs(flowPercentage / 100.0f);
|
||||
|
||||
public Pump(Item item, ContentXElement element)
|
||||
: base(item, element)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user