Skip to content

Commit 569056d

Browse files
committed
RoomSafetyFailReason.KnownBad + public KnownUnsafeRooms
1 parent 1248aa0 commit 569056d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

SecretAPI/Enums/RoomSafetyFailReason.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,10 @@ public enum RoomSafetyFailReason
3535
/// Room safety check will fail if the listed room fails a <see cref="Physics.Raycast(Vector3, Vector3, out RaycastHit, float, int)"/> check.
3636
/// </summary>
3737
MissingFloor = 8,
38+
39+
/// <summary>
40+
/// Room safety check will fail if the listed room is part of <see cref="RoomExtensions.KnownUnsafeRooms"/>.
41+
/// </summary>
42+
KnownBad = 16,
3843
}
3944
}

SecretAPI/Extensions/RoomExtensions.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ public static class RoomExtensions
1616
{
1717
private const float RaycastDistance = 2;
1818

19-
private static readonly List<RoomName> KnownUnsafeRooms =
19+
/// <summary>
20+
/// Gets a list of <see cref="RoomName"/> that will be denied by <see cref="RoomSafetyFailReason.KnownBad"/>.
21+
/// </summary>
22+
public static List<RoomName> KnownUnsafeRooms { get; } =
2023
[
21-
RoomName.HczTesla, // Instant death
2224
RoomName.EzEvacShelter, // Stuck permanently
2325
RoomName.EzCollapsedTunnel, // Stuck permanently
2426
RoomName.HczWaysideIncinerator, // Death

0 commit comments

Comments
 (0)