Skip to content

Commit b40da8d

Browse files
committed
Update for new SL Release
1 parent 78444f1 commit b40da8d

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

Config.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using System.Collections.Generic;
99
using System.ComponentModel;
1010
using UnityEngine;
11-
using KeycardPermissions = Interactables.Interobjects.DoorUtils.KeycardPermissions;
1211

1312
namespace FacilityManagement
1413
{

ConfigBuild.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Exiled.API.Extensions;
66
using System;
77
using Exiled.API.Features;
8+
using Exiled.API.Enums;
89

910
namespace FacilityManagement
1011
{

EventHandlers.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -126,25 +126,25 @@ public void Custom914()
126126
{
127127
string Debug = "[Custom914]\n";
128128
{
129-
Debug += $"KnobChangeCooldown: {scp914._knobChangeCooldown} => {scp914Build.KnobChangeCooldown}\n";
130-
Debug += $"DoorOpenTime: {scp914._doorOpenTime} => {scp914Build.DoorOpenTime}\n";
131-
Debug += $"ItemUpgradeTime: {scp914._itemUpgradeTime} => {scp914Build.ItemUpgradeTime}\n";
132-
Debug += $"DoorCloseTime: {scp914._doorCloseTime} => {scp914Build.DoorCloseTime}\n";
133-
Debug += $"TotalSequenceTime: {scp914._totalSequenceTime} => {scp914Build.ActivationCooldown}\n";
129+
Debug += $"KnobChangeCooldown: {scp914.KnobChangeCooldown} => {scp914Build.KnobChangeCooldown}\n";
130+
Debug += $"DoorOpenTime: {scp914.DoorOpenTime} => {scp914Build.DoorOpenTime}\n";
131+
Debug += $"ItemUpgradeTime: {scp914.ItemUpgradeTime} => {scp914Build.ItemUpgradeTime}\n";
132+
Debug += $"DoorCloseTime: {scp914.DoorCloseTime} => {scp914Build.DoorCloseTime}\n";
133+
Debug += $"TotalSequenceTime: {scp914.TotalSequenceTime} => {scp914Build.ActivationCooldown}\n";
134134
}
135135
Log.Debug(Debug);
136136
}
137137

138138
if (scp914Build.KnobChangeCooldown is not null)
139-
scp914._knobChangeCooldown = scp914Build.KnobChangeCooldown.Value;
139+
scp914.KnobChangeCooldown = scp914Build.KnobChangeCooldown.Value;
140140
if (scp914Build.DoorOpenTime is not null)
141-
scp914._doorOpenTime = scp914Build.DoorOpenTime.Value;
141+
scp914.DoorOpenTime = scp914Build.DoorOpenTime.Value;
142142
if (scp914Build.ItemUpgradeTime is not null)
143-
scp914._itemUpgradeTime = scp914Build.ItemUpgradeTime.Value;
143+
scp914.ItemUpgradeTime = scp914Build.ItemUpgradeTime.Value;
144144
if (scp914Build.DoorCloseTime is not null)
145-
scp914._doorCloseTime = scp914Build.DoorCloseTime.Value;
145+
scp914.DoorCloseTime = scp914Build.DoorCloseTime.Value;
146146
if (scp914Build.ActivationCooldown is not null)
147-
scp914._totalSequenceTime = scp914Build.ActivationCooldown.Value;
147+
scp914.TotalSequenceTime = scp914Build.ActivationCooldown.Value;
148148

149149
}
150150
public void CustomWindow()
@@ -296,8 +296,8 @@ public void CustomDoorSet(Door door, DoorType type)
296296
string Debug = $"[CustomDoor] : {type}\n";
297297
Debug += $"Health: {(breakabledoor is null ? "Nan" : breakabledoor.Health)} => {doorBuild.Health.Value}\n";
298298
Debug += $"IgnoredDamageTypes: {(breakabledoor is null ? "Nan" : breakabledoor.IgnoredDamage)} => {doorBuild.DamageTypeIgnored}\n";
299-
Debug += $"RequiredPermissions: {door.RequiredPermissions.RequiredPermissions} => {doorBuild.RequiredPermission}\n";
300-
Debug += $"RequireAllPermission: {door.RequiredPermissions.RequireAll} => {doorBuild.RequireAllPermission}\n";
299+
Debug += $"RequiredPermissions: {door.KeycardPermissions} => {doorBuild.RequiredPermission}\n";
300+
Debug += $"RequireAllPermission: {door.Base.RequiredPermissions.RequireAll} => {doorBuild.RequireAllPermission}\n";
301301
Log.Debug(Debug);
302302
}
303303

@@ -306,9 +306,9 @@ public void CustomDoorSet(Door door, DoorType type)
306306
if (doorBuild.DamageTypeIgnored is not null && breakabledoor is not null)
307307
breakabledoor.IgnoredDamage = doorBuild.DamageTypeIgnored.Value;
308308
if (doorBuild.RequiredPermission is not null)
309-
door.RequiredPermissions.RequiredPermissions = doorBuild.RequiredPermission.Value;
309+
door.KeycardPermissions = doorBuild.RequiredPermission.Value;
310310
if (doorBuild.RequireAllPermission is not null)
311-
door.RequiredPermissions.RequireAll = doorBuild.RequireAllPermission.Value;
311+
door.Base.RequiredPermissions.RequireAll = doorBuild.RequireAllPermission.Value;
312312
}
313313
}
314314
}

FacilityManagement.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
</ItemGroup>
7979
<ItemGroup>
8080
<PackageReference Include="ExMod.Exiled">
81-
<Version>9.1.0</Version>
81+
<Version>9.6.0-beta8</Version>
8282
</PackageReference>
8383
<PackageReference Include="Lib.Harmony">
8484
<Version>2.2.2</Version>

Patches/IntercomText/IntercomPatch.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ private static void Prefix(BaseIntercom __instance)
4848
if (!string.IsNullOrEmpty(FacilityManagement.Singleton.CustomText))
4949
value = IntercomDisplay.IcomText.Unknown;
5050

51-
if (ServerConsole.singleton.NameFormatter.Commands is null || FacilityManagement.Singleton.Config.CustomText is null || !FacilityManagement.Singleton.Config.CustomText.TryGetValue(value, out string content) || string.IsNullOrEmpty(content))
51+
if (ServerConsole.Singleton.NameFormatter.Commands is null || FacilityManagement.Singleton.Config.CustomText is null || !FacilityManagement.Singleton.Config.CustomText.TryGetValue(value, out string content) || string.IsNullOrEmpty(content))
5252
return;
53-
if (!ServerConsole.singleton.NameFormatter.TryProcessExpression(content, "FacilityManagement", out string result))
53+
if (!ServerConsole.Singleton.NameFormatter.TryProcessExpression(content, "FacilityManagement", out string result))
5454
{
5555
Log.Error(result);
5656
}

Patches/IntercomText/NameFormaterPatch.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public static void AddCustomInterpolatedCommand()
2929
{
3030
try
3131
{
32-
if (ServerConsole.singleton.NameFormatter.Commands.ContainsKey("intercom_speech_remaining_time"))
32+
if (ServerConsole.Singleton.NameFormatter.Commands.ContainsKey("intercom_speech_remaining_time"))
3333
return;
34-
Utils.CommandInterpolation.InterpolatedCommandFormatter interpolatedCommandFormatter = ServerConsole.singleton.NameFormatter;
34+
Utils.CommandInterpolation.InterpolatedCommandFormatter interpolatedCommandFormatter = ServerConsole.Singleton.NameFormatter;
3535

3636
// Int
3737
interpolatedCommandFormatter.Commands.Add("intercom_speech_remaining_time", (List<string> args) => Mathf.CeilToInt(Intercom.SpeechRemainingTime).ToString());
@@ -43,7 +43,7 @@ public static void AddCustomInterpolatedCommand()
4343
interpolatedCommandFormatter.Commands.Add("intercom_is_in_use", (List<string> args) => (Intercom.Speaker is not null).ToString());
4444

4545
// CustomText replace
46-
ServerConsole.singleton.NameFormatter = interpolatedCommandFormatter;
46+
ServerConsole.Singleton.NameFormatter = interpolatedCommandFormatter;
4747

4848
}
4949
catch (Exception ex)

0 commit comments

Comments
 (0)