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
@@ -777,7 +777,15 @@ namespace Barotrauma
var locationType = location.GetLocationTypeToDisplay();
bool includeGenericEvents = level.Type == LevelData.LevelType.LocationConnection || !locationType.IgnoreGenericEvents;
if (includeGenericEvents && eventSet.LocationTypeIdentifiers == null) { return true; }
return eventSet.LocationTypeIdentifiers != null && eventSet.LocationTypeIdentifiers.Any(identifier => identifier == locationType.Identifier);
if (eventSet.LocationTypeIdentifiers == null) { return false; }
// EventLocationType is used to have the event set consider the location id as something else, for example "city" to get events that go to city locations
bool hasMatchingEventLocationId = !locationType.EventLocationType.IsEmpty &&
eventSet.LocationTypeIdentifiers.Contains(locationType.EventLocationType);
bool hasMatchingLocationId = eventSet.LocationTypeIdentifiers.Contains(locationType.Identifier);
return hasMatchingEventLocationId || hasMatchingLocationId;
}
private Location GetEventLocation()