Skip to content

Commit 2eb763a

Browse files
committed
11.0.0 and translation fix
1 parent da63db3 commit 2eb763a

File tree

6 files changed

+36
-36
lines changed

6 files changed

+36
-36
lines changed

Scp035/EventHandlers.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
using Synapse;
2-
using Synapse.Api;
3-
using Synapse.Api.Items;
1+
using System.Collections.Generic;
42
using System.Linq;
5-
using System.Collections.Generic;
63
using MEC;
4+
using Synapse;
5+
using Synapse.Api;
6+
using Synapse.Api.Items;
77

88
namespace Scp035
99
{
@@ -100,7 +100,7 @@ public void Spawn035Item()
100100
var items = Map.Get.Items.Where(x => x.State == Synapse.Api.Enum.ItemState.Map);
101101
var pos = items.ElementAt(UnityEngine.Random.Range(0, items.Count())).Position;
102102

103-
var item = new SynapseItem(type + 100, 0f, 0, 0, 0);
103+
var item = new SynapseItem(type + 100);
104104
item.Drop(pos);
105105
}
106106
}

Scp035/PluginClass.cs

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Synapse;
22
using Synapse.Api.Plugin;
3-
using System.Collections.Generic;
43
using Synapse.Translation;
54

65
namespace Scp035
@@ -13,12 +12,12 @@ namespace Scp035
1312
SynapseMajor = 2,
1413
SynapseMinor = 5,
1514
SynapsePatch = 3,
16-
Version = "v.1.1.0"
15+
Version = "v.1.1.1"
1716
)]
1817
public class PluginClass : AbstractPlugin
1918
{
20-
[Synapse.Api.Plugin.Config(section = "Scp035")]
21-
public static Config Config;
19+
[Config(section = "Scp035")]
20+
public static PluginConfig Config;
2221

2322
[SynapseTranslation]
2423
public static new SynapseTranslation<PluginTranslation> Translation { get; set; }
@@ -45,7 +44,7 @@ public override void Load()
4544
Survived035 = "Das war <color=red>SCP-035</color> aber du hast es überlebt",
4645
InteractWith035 = "Du kannst nicht mit einem <color=red>SCP-035</color> Item interagieren",
4746
Pickup035 = "<b>Du hast <color=red>SCP-035</color> aufgehoben</b>",
48-
Spawn035 = "<b>Du bist jetzt <color=red>SCP-035</color></b",
47+
Spawn035 = "<b>Du bist jetzt <color=red>SCP-035</color></b>",
4948
KilledBy035 = "<b>Du wurdest von <color=red>SCP-035</color> umgebracht</b>"
5049
}, "GERMAN");
5150

Scp035/Config.cs Scp035/PluginConfig.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using Synapse.Config;
1+
using System.Collections.Generic;
22
using System.ComponentModel;
3-
using System.Collections.Generic;
3+
using Synapse.Config;
44

55
namespace Scp035
66
{
7-
public class Config : AbstractConfigSection
7+
public class PluginConfig : AbstractConfigSection
88
{
99
[Description("The Health of Scp035")]
1010
public int Scp035Health = 150;

Scp035/Scp035.csproj

+15-15
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,23 @@
3131
<WarningLevel>4</WarningLevel>
3232
</PropertyGroup>
3333
<ItemGroup>
34-
<Reference Include="0Harmony, Version=2.0.4.0, Culture=neutral, processorArchitecture=MSIL">
35-
<HintPath>..\packages\Lib.Harmony.2.0.4\lib\net472\0Harmony.dll</HintPath>
34+
<Reference Include="0Harmony, Version=2.1.1.0, Culture=neutral, processorArchitecture=MSIL">
35+
<HintPath>..\packages\Lib.Harmony.2.1.1\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.5.3\lib\net472\Assembly-CSharp.dll</HintPath>
38+
<HintPath>..\packages\SynapseSL.2.7.0-dev4\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.5.3\lib\net472\Assembly-CSharp-firstpass.dll</HintPath>
41+
<HintPath>..\packages\SynapseSL.2.7.0-dev4\lib\net472\Assembly-CSharp-firstpass.dll</HintPath>
4242
</Reference>
43-
<Reference Include="LiteDB, Version=5.0.9.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
44-
<HintPath>..\packages\LiteDB.5.0.9\lib\net45\LiteDB.dll</HintPath>
43+
<Reference Include="LiteDB, Version=5.0.11.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
44+
<HintPath>..\packages\LiteDB.5.0.11\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.5.3\lib\net472\Mirror.dll</HintPath>
47+
<HintPath>..\packages\SynapseSL.2.7.0-dev4\lib\net472\Mirror.dll</HintPath>
4848
</Reference>
49-
<Reference Include="Synapse, Version=2.5.3.0, Culture=neutral, processorArchitecture=MSIL">
50-
<HintPath>..\packages\SynapseSL.2.5.3\lib\net472\Synapse.dll</HintPath>
49+
<Reference Include="Synapse, Version=2.7.0.0, Culture=neutral, processorArchitecture=MSIL">
50+
<HintPath>..\packages\SynapseSL.2.7.0-dev4\lib\net472\Synapse.dll</HintPath>
5151
</Reference>
5252
<Reference Include="System" />
5353
<Reference Include="System.Core" />
@@ -62,21 +62,21 @@
6262
<Reference Include="System.Net.Http" />
6363
<Reference Include="System.Xml" />
6464
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
65-
<HintPath>..\packages\SynapseSL.2.5.3\lib\net472\UnityEngine.dll</HintPath>
65+
<HintPath>..\packages\SynapseSL.2.7.0-dev4\lib\net472\UnityEngine.dll</HintPath>
6666
</Reference>
6767
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
68-
<HintPath>..\packages\SynapseSL.2.5.3\lib\net472\UnityEngine.CoreModule.dll</HintPath>
68+
<HintPath>..\packages\SynapseSL.2.7.0-dev4\lib\net472\UnityEngine.CoreModule.dll</HintPath>
6969
</Reference>
7070
<Reference Include="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
71-
<HintPath>..\packages\SynapseSL.2.5.3\lib\net472\UnityEngine.PhysicsModule.dll</HintPath>
71+
<HintPath>..\packages\SynapseSL.2.7.0-dev4\lib\net472\UnityEngine.PhysicsModule.dll</HintPath>
7272
</Reference>
73-
<Reference Include="YamlDotNet, Version=8.0.0.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
74-
<HintPath>..\packages\YamlDotNet.8.1.2\lib\net45\YamlDotNet.dll</HintPath>
73+
<Reference Include="YamlDotNet, Version=11.0.0.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
74+
<HintPath>..\packages\YamlDotNet.11.2.1\lib\net45\YamlDotNet.dll</HintPath>
7575
</Reference>
7676
</ItemGroup>
7777
<ItemGroup>
7878
<Compile Include="EventHandlers.cs" />
79-
<Compile Include="Config.cs" />
79+
<Compile Include="PluginConfig.cs" />
8080
<Compile Include="PluginTranslation.cs" />
8181
<Compile Include="Scp035PlayerScript.cs" />
8282
<Compile Include="PluginClass.cs" />

Scp035/Scp035PlayerScript.cs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using MEC;
22
using Synapse.Api;
3+
using Synapse.Api.Enum;
34
using System.Collections.Generic;
45

56
namespace Scp035
@@ -22,7 +23,7 @@ public Scp035PlayerScript() { }
2223
public override void Spawn()
2324
{
2425
if(_target == null)
25-
Player.RoleType = RoleType.ChaosInsurgency;
26+
Player.RoleType = RoleType.ChaosRifleman;
2627
else
2728
{
2829
Player.RoleType = _target.RoleType;
@@ -35,9 +36,9 @@ public override void Spawn()
3536
}
3637

3738
Timing.CallDelayed(0.2f, () => Player.Position = _target.Position);
38-
Player.Ammo5 = _target.Ammo5;
39-
Player.Ammo7 = _target.Ammo7;
40-
Player.Ammo9 = _target.Ammo9;
39+
40+
foreach (var type in (AmmoType[])System.Enum.GetValues(typeof(AmmoType)))
41+
Player.AmmoBox[type] = _target.AmmoBox[type];
4142

4243
_target.RoleID = (int)RoleType.Spectator;
4344

Scp035/packages.config

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Lib.Harmony" version="2.0.4" targetFramework="net472" />
4-
<package id="LiteDB" version="5.0.9" targetFramework="net472" />
5-
<package id="SynapseSL" version="2.5.3" targetFramework="net472" />
3+
<package id="Lib.Harmony" version="2.1.1" targetFramework="net472" />
4+
<package id="LiteDB" version="5.0.11" targetFramework="net472" />
5+
<package id="SynapseSL" version="2.7.0-dev4" targetFramework="net472" />
66
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net472" />
7-
<package id="YamlDotNet" version="8.1.2" targetFramework="net472" />
7+
<package id="YamlDotNet" version="11.2.1" targetFramework="net472" />
88
</packages>

0 commit comments

Comments
 (0)