Skip to content

Commit 9d4f88e

Browse files
committed
fixed some bugs
1 parent 9056039 commit 9d4f88e

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Scp079Rework/Scp079Rework.csproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@
3535
<HintPath>..\packages\Lib.Harmony.2.0.4\lib\net472\0Harmony.dll</HintPath>
3636
</Reference>
3737
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
38-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\Assembly-CSharp.dll</HintPath>
38+
<HintPath>..\packages\SynapseSL.2.3.0-pre\lib\net472\Assembly-CSharp.dll</HintPath>
3939
</Reference>
4040
<Reference Include="Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
41-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\Assembly-CSharp-firstpass.dll</HintPath>
41+
<HintPath>..\packages\SynapseSL.2.3.0-pre\lib\net472\Assembly-CSharp-firstpass.dll</HintPath>
4242
</Reference>
4343
<Reference Include="LiteDB, Version=5.0.9.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
4444
<HintPath>..\packages\LiteDB.5.0.9\lib\net45\LiteDB.dll</HintPath>
4545
</Reference>
4646
<Reference Include="Mirror, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
47-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\Mirror.dll</HintPath>
47+
<HintPath>..\packages\SynapseSL.2.3.0-pre\lib\net472\Mirror.dll</HintPath>
4848
</Reference>
49-
<Reference Include="Synapse, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
50-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\Synapse.dll</HintPath>
49+
<Reference Include="Synapse, Version=2.3.0.0, Culture=neutral, processorArchitecture=MSIL">
50+
<HintPath>..\packages\SynapseSL.2.3.0-pre\lib\net472\Synapse.dll</HintPath>
5151
</Reference>
5252
<Reference Include="System" />
5353
<Reference Include="System.Core" />
@@ -59,13 +59,13 @@
5959
<Reference Include="System.Net.Http" />
6060
<Reference Include="System.Xml" />
6161
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
62-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\UnityEngine.dll</HintPath>
62+
<HintPath>..\packages\SynapseSL.2.3.0-pre\lib\net472\UnityEngine.dll</HintPath>
6363
</Reference>
6464
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
65-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\UnityEngine.CoreModule.dll</HintPath>
65+
<HintPath>..\packages\SynapseSL.2.3.0-pre\lib\net472\UnityEngine.CoreModule.dll</HintPath>
6666
</Reference>
6767
<Reference Include="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
68-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\UnityEngine.PhysicsModule.dll</HintPath>
68+
<HintPath>..\packages\SynapseSL.2.3.0-pre\lib\net472\UnityEngine.PhysicsModule.dll</HintPath>
6969
</Reference>
7070
<Reference Include="YamlDotNet, Version=8.0.0.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
7171
<HintPath>..\packages\YamlDotNet.8.1.2\lib\net45\YamlDotNet.dll</HintPath>

Scp079Rework/Scp079Robot.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ public override void DeSpawn()
6060
}
6161

6262
Player.Bypass = _bypass;
63-
if (Map.Get.HeavyController.ActiveGenerators >= 5) return;
64-
63+
if (Map.Get.HeavyController.Is079Recontained) return;
6564

6665
var locked = SynapseController.Server.Map.Round.RoundLock;
6766
SynapseController.Server.Map.Round.RoundLock = true;
6867
Timing.CallDelayed(0.1f, () =>
6968
{
70-
Player.RoleID = (int)RoleType.Scp079;
69+
if (Player.RoleID == (int)RoleType.Spectator)
70+
Player.RoleID = (int)RoleType.Scp079;
7171
SynapseController.Server.Map.Round.RoundLock = locked;
7272
NineTailedFoxAnnouncer.CheckForZombies(SynapseController.Server.Host.gameObject);
7373
});

Scp079Rework/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<packages>
33
<package id="Lib.Harmony" version="2.0.4" targetFramework="net472" />
44
<package id="LiteDB" version="5.0.9" targetFramework="net472" />
5-
<package id="SynapseSL" version="2.2.0" targetFramework="net472" />
5+
<package id="SynapseSL" version="2.3.0-pre" targetFramework="net472" />
66
<package id="YamlDotNet" version="8.1.2" targetFramework="net472" />
77
</packages>

0 commit comments

Comments
 (0)