diff --git a/MoreWeapons/CustomItemType.cs b/MoreWeapons/CustomItemType.cs index 0cda40c..3873817 100644 --- a/MoreWeapons/CustomItemType.cs +++ b/MoreWeapons/CustomItemType.cs @@ -2,7 +2,7 @@ { public enum CustomItemType : int { - Tranquilizer = 36, + Tranquilizer = 50, GrenadeLauncher, ShotGun, Sniper, diff --git a/MoreWeapons/Handlers/Scp1499Handler.cs b/MoreWeapons/Handlers/Scp1499Handler.cs index 14b0d51..1be8ae1 100644 --- a/MoreWeapons/Handlers/Scp1499Handler.cs +++ b/MoreWeapons/Handlers/Scp1499Handler.cs @@ -60,6 +60,12 @@ public class Scp1499PlayerScript : MonoBehaviour public void Use1499() { + if(player.Zone == Synapse.Api.Enum.ZoneType.Pocket) + { + player.GiveTextHint("You can't use it right now"); + return; + } + if (IsInDimension) { player.Position = OldPosition; diff --git a/MoreWeapons/MoreWeapons.csproj b/MoreWeapons/MoreWeapons.csproj index 3299c2e..1851e9f 100644 --- a/MoreWeapons/MoreWeapons.csproj +++ b/MoreWeapons/MoreWeapons.csproj @@ -37,19 +37,19 @@ ..\packages\Lib.Harmony.2.0.4\lib\net472\0Harmony.dll - ..\packages\SynapseSL.2.2.0\lib\net472\Assembly-CSharp.dll + ..\packages\SynapseSL.2.3.0\lib\net472\Assembly-CSharp.dll - ..\packages\SynapseSL.2.2.0\lib\net472\Assembly-CSharp-firstpass.dll + ..\packages\SynapseSL.2.3.0\lib\net472\Assembly-CSharp-firstpass.dll ..\packages\LiteDB.5.0.9\lib\net45\LiteDB.dll - ..\packages\SynapseSL.2.2.0\lib\net472\Mirror.dll + ..\packages\SynapseSL.2.3.0\lib\net472\Mirror.dll - - ..\packages\SynapseSL.2.2.0\lib\net472\Synapse.dll + + ..\packages\SynapseSL.2.3.0\lib\net472\Synapse.dll @@ -61,13 +61,13 @@ - ..\packages\SynapseSL.2.2.0\lib\net472\UnityEngine.dll + ..\packages\SynapseSL.2.3.0\lib\net472\UnityEngine.dll - ..\packages\SynapseSL.2.2.0\lib\net472\UnityEngine.CoreModule.dll + ..\packages\SynapseSL.2.3.0\lib\net472\UnityEngine.CoreModule.dll - ..\packages\SynapseSL.2.2.0\lib\net472\UnityEngine.PhysicsModule.dll + ..\packages\SynapseSL.2.3.0\lib\net472\UnityEngine.PhysicsModule.dll ..\packages\YamlDotNet.8.1.2\lib\net45\YamlDotNet.dll diff --git a/MoreWeapons/packages.config b/MoreWeapons/packages.config index 739f278..699d113 100644 --- a/MoreWeapons/packages.config +++ b/MoreWeapons/packages.config @@ -2,6 +2,6 @@ - + \ No newline at end of file