diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Power/PowerContainer.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Power/PowerContainer.cs index dce278300..ede2a3c1b 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Power/PowerContainer.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Power/PowerContainer.cs @@ -63,6 +63,14 @@ namespace Barotrauma.Items.Components } } } + + [Serialize(10.0f, true), Editable(ToolTip = "How fast the device can be recharged. "+ + "For example, a recharge speed of 100 kW and a capacity of 1000 kW*min would mean it takes 10 minutes to fully charge the device.")] + public float MaxRechargeSpeed + { + get { return maxRechargeSpeed; } + set { maxRechargeSpeed = Math.Max(value, 1.0f); } + } [Serialize(10.0f, true), Editable] public float RechargeSpeed @@ -76,14 +84,6 @@ namespace Barotrauma.Items.Components } } - [Serialize(10.0f, true), Editable(ToolTip = "How fast the device can be recharged. "+ - "For example, a recharge speed of 100 kW and a capacity of 1000 kW*min would mean it takes 10 minutes to fully charge the device.")] - public float MaxRechargeSpeed - { - get { return maxRechargeSpeed; } - set { maxRechargeSpeed = Math.Max(value, 1.0f); } - } - public PowerContainer(Item item, XElement element) : base(item, element) {