Release 1.9.7.0 - Summer Update 2025
This commit is contained in:
@@ -18,7 +18,14 @@ namespace Barotrauma.Items.Components
|
||||
public readonly int MaxWires = 5;
|
||||
|
||||
public readonly string Name;
|
||||
public readonly LocalizedString DisplayName;
|
||||
private readonly LocalizedString _displayName;
|
||||
public LocalizedString DisplayName
|
||||
{
|
||||
get => DisplayNameOverride ?? _displayName;
|
||||
private init => _displayName = value;
|
||||
}
|
||||
|
||||
public LocalizedString DisplayNameOverride;
|
||||
|
||||
private readonly HashSet<Wire> wires;
|
||||
public IReadOnlyCollection<Wire> Wires => wires;
|
||||
@@ -160,8 +167,7 @@ namespace Barotrauma.Items.Components
|
||||
DisplayName = Name;
|
||||
}
|
||||
|
||||
IsPower = Name == "power_in" || Name == "power" || Name == "power_out";
|
||||
|
||||
IsPower = element.GetAttributeBool("ispower", Name is "power_in" or "power" or "power_out");
|
||||
|
||||
LoadedWires = new List<(ushort wireId, int? connectionIndex)>();
|
||||
foreach (var subElement in element.Elements())
|
||||
|
||||
Reference in New Issue
Block a user