Release 1.9.7.0 - Summer Update 2025

This commit is contained in:
Regalis11
2025-06-17 16:38:11 +03:00
parent 22227f13e5
commit ea5a2bc693
297 changed files with 7344 additions and 2421 deletions
@@ -138,10 +138,15 @@ namespace Barotrauma
return allowedLocationTypes.None() || allowedLocationTypes.Contains("Any".ToIdentifier());
}
public bool IsAllowedInLocationType(LocationType locationType)
/// <param name="requireLocationTypeSpecific">Does the module need to be explicitly configured as suitable for the location type, or is it ok if it's allowed for any location type?</param>
public bool IsAllowedInLocationType(LocationType locationType, bool requireLocationTypeSpecific = false)
{
if (locationType == null || IsAllowedInAnyLocationType()) { return true; }
return allowedLocationTypes.Contains(locationType.Identifier);
if (locationType == null) { return true; }
if (!requireLocationTypeSpecific && IsAllowedInAnyLocationType()) { return true; }
return
allowedLocationTypes.Contains(locationType.Identifier) ||
(!locationType.UseOutpostModulesOfLocationType.IsEmpty && allowedLocationTypes.Contains(locationType.UseOutpostModulesOfLocationType));
}
public void DetermineGapPositions(Submarine sub)