Unstable 0.1500.4.0 (Shrek edition)

This commit is contained in:
Markus Isberg
2021-09-23 21:29:31 +09:00
parent 5a6bbcc79e
commit 3043a9a7bc
124 changed files with 3571 additions and 1848 deletions
@@ -2563,10 +2563,18 @@ namespace Barotrauma
if (PositionsOfInterest.Any(p => p.PositionType == PositionType.Cave))
{
positionType = PositionType.Cave;
if (allValidLocations.Any(l => l.Edge.NextToCave))
{
allValidLocations.RemoveAll(l => !l.Edge.NextToCave);
}
}
else if (PositionsOfInterest.Any(p => p.PositionType == PositionType.SidePath))
{
positionType = PositionType.SidePath;
if (allValidLocations.Any(l => l.Edge.NextToSidePath))
{
allValidLocations.RemoveAll(l => !l.Edge.NextToSidePath);
}
}
var poi = PositionsOfInterest.GetRandom(p => p.PositionType == positionType, randSync: Rand.RandSync.Server);