Faction Test 100.11.0.0

This commit is contained in:
Markus Isberg
2022-12-09 20:08:17 +02:00
parent e0c3754621
commit 1650735468
24 changed files with 210 additions and 457 deletions
@@ -224,8 +224,7 @@ namespace Barotrauma.Items.Components
if (character == null) { return false; }
if (character == Character.Controlled)
{
if (targetSections.Count == 0) { return false; }
Spray(character, deltaTime, applyColors: true);
Spray(character, deltaTime, applyColors: targetSections.Count > 0);
return true;
}
else
@@ -987,11 +987,8 @@ namespace Barotrauma.Items.Components
component.Color = borderComponent.OutlineColor = NoPowerColor;
}
if (Voltage < MinVoltage) { continue; }
if (!component.Visible) { continue; }
if (!(entity is Hull hull)) { continue; }
if (entity is not Hull hull) { continue; }
if (!submarineContainer.Rect.Contains(component.Rect))
{
if (hull.Submarine.Info.Type != SubmarineType.Player)
@@ -1001,6 +998,8 @@ namespace Barotrauma.Items.Components
}
}
if (Voltage < MinVoltage) { continue; }
hullDatas.TryGetValue(hull, out HullData? hullData);
if (hullData is null)
{