v1.4.4.1 (Blood in the Water Update)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Barotrauma.Items.Components;
|
||||
using Barotrauma.Extensions;
|
||||
using Barotrauma.Items.Components;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -132,6 +133,16 @@ namespace Barotrauma
|
||||
this.allowedLocationTypes.Add(locationType);
|
||||
}
|
||||
}
|
||||
public bool IsAllowedInAnyLocationType()
|
||||
{
|
||||
return allowedLocationTypes.None() || allowedLocationTypes.Contains("Any".ToIdentifier());
|
||||
}
|
||||
|
||||
public bool IsAllowedInLocationType(LocationType locationType)
|
||||
{
|
||||
if (locationType == null || IsAllowedInAnyLocationType()) { return true; }
|
||||
return allowedLocationTypes.Contains(locationType.Identifier);
|
||||
}
|
||||
|
||||
public void DetermineGapPositions(Submarine sub)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user