mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
changelog
This commit is contained in:
1 parent
96337ba634
commit
2a7af38d56
8 files changed
+97
-20
No files matched your search
@@ -820,6 +820,7 @@ public static class KingOfTheZones
|
||||
{
|
||||
if (downtimeExpire > now) continue;
|
||||
toRemove = zone;
|
||||
break;
|
||||
}
|
||||
|
||||
if (toRemove.HasValue) ZoneDowntimeExpire.Remove(toRemove.Value);
|
||||
|
||||
@@ -342,7 +342,7 @@ public static class NaturalDisasters
|
||||
else
|
||||
{
|
||||
PlainShipRoom collapsingRoom = nonCollapsedRooms.RandomElement();
|
||||
buildingCollapseInfo = (collapsingRoom.RoomId, Main.LIMap ? collapsingRoom.transform.position : RandomSpawn.SpawnMap.GetSpawnMap().Positions.TryGetValue(collapsingRoom.RoomId, out Vector2 spawnLocation) ? spawnLocation : collapsingRoom.transform.position);
|
||||
buildingCollapseInfo = (collapsingRoom.RoomId, Main.LIMap ? collapsingRoom.transform.position : RandomSpawn.SpawnMap.GetSpawnMap().Positions.GetValueOrDefault(collapsingRoom.RoomId, collapsingRoom.transform.position));
|
||||
}
|
||||
|
||||
Type disaster = pool.SelectMany(x => Enumerable.Repeat(x.Value, DisasterSpawnChances[x.Key].GetInt() / 5)).RandomElement();
|
||||
|
||||
Reference in new issue
Block a user