From 3f49c538aabad40fa12935778c58b9ebc552b559 Mon Sep 17 00:00:00 2001 From: warquys <64769541+warquys@users.noreply.github.com> Date: Tue, 8 Feb 2022 01:23:45 +0100 Subject: [PATCH 1/4] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index f0c3199..6581fb8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ # VT-Api VT-API is an API for Synapse plugins from SCP sl game. This API is complementary to that of synapse and offers methods and functionality for SCP sl plugins. + +# Installation +Download the last release (here)[https://github.com/VT-DevGiT/VT-Api/releases]. Drop the VT-Api.dll in the Synapse\dependencies folder. + +# Developers +If you want to add my code to synapse do it ! +If you want to contribute go ahead, but tempted to use my conventions ! +If you want to use my API, use there! You can check my exemple (here)[] ! + From 355ec7eeff01ca28d50a18a2cda1983c684c3e7a Mon Sep 17 00:00:00 2001 From: Valentin Arthur Thomas <64769541+warquys@users.noreply.github.com> Date: Tue, 8 Feb 2022 01:32:44 +0100 Subject: [PATCH 2/4] Update testbuild.yml --- .github/workflows/testbuild.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/testbuild.yml b/.github/workflows/testbuild.yml index 2a8fa6a..c6379ad 100644 --- a/.github/workflows/testbuild.yml +++ b/.github/workflows/testbuild.yml @@ -2,10 +2,10 @@ name: TestBuild on: pull_request: - branches: [ master, devlopement ] + branches: [ main, devlopement ] push: - branches: [ master ] + branches: [ main ] env: # Path to the solution file relative to the root of the project. @@ -34,4 +34,4 @@ jobs: working-directory: ${{env.GITHUB_WORKSPACE}} # Add additional options to the MSBuild command line here (like platform or verbosity level). # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference - run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} + run: msbuild /m /t:VT-Api /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} From b9c3a0c28761f96c991c309ddf0c36466c59a98a Mon Sep 17 00:00:00 2001 From: warquys <64769541+warquys@users.noreply.github.com> Date: Tue, 8 Feb 2022 01:23:45 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index f0c3199..6581fb8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ # VT-Api VT-API is an API for Synapse plugins from SCP sl game. This API is complementary to that of synapse and offers methods and functionality for SCP sl plugins. + +# Installation +Download the last release (here)[https://github.com/VT-DevGiT/VT-Api/releases]. Drop the VT-Api.dll in the Synapse\dependencies folder. + +# Developers +If you want to add my code to synapse do it ! +If you want to contribute go ahead, but tempted to use my conventions ! +If you want to use my API, use there! You can check my exemple (here)[] ! + From 2a3864286fa8b4e1b04fadc70e7f470efdbac059 Mon Sep 17 00:00:00 2001 From: warquys <64769541+warquys@users.noreply.github.com> Date: Wed, 9 Feb 2022 20:31:56 +0100 Subject: [PATCH 4/4] fix github check --- README.md | 2 +- .../VtEvent/MapPaches/Scp914IventoryProcessorPatches.cs | 2 +- .../Patches/VtEvent/MapPaches/Scp914PickupProcessorPatches.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6581fb8..2125ce7 100644 --- a/README.md +++ b/README.md @@ -7,5 +7,5 @@ Download the last release (here)[https://github.com/VT-DevGiT/VT-Api/releases]. # Developers If you want to add my code to synapse do it ! If you want to contribute go ahead, but tempted to use my conventions ! -If you want to use my API, use there! You can check my exemple (here)[] ! +If you want to use my API, use there! You can check my exemple (here)[https://github.com/VT-DevGiT/VT-Api/tree/main/Exemple-Plugin] ! diff --git a/VT-Api/Patches/VtEvent/MapPaches/Scp914IventoryProcessorPatches.cs b/VT-Api/Patches/VtEvent/MapPaches/Scp914IventoryProcessorPatches.cs index 7dd447f..9acd765 100644 --- a/VT-Api/Patches/VtEvent/MapPaches/Scp914IventoryProcessorPatches.cs +++ b/VT-Api/Patches/VtEvent/MapPaches/Scp914IventoryProcessorPatches.cs @@ -35,7 +35,7 @@ private static bool FirearmUpgradePatch(FirearmItemProcessor __instance, Scp914K foreach (ItemType newType in items) { - if (item is Firearm firearm1 == false) + if (!(item is Firearm firearm1)) throw new InvalidOperationException("FirearmItemProcessor can't be used for non-firearm items, such as " + item.ItemTypeId); var destroyOldItem = newType == oldItem.ItemType; diff --git a/VT-Api/Patches/VtEvent/MapPaches/Scp914PickupProcessorPatches.cs b/VT-Api/Patches/VtEvent/MapPaches/Scp914PickupProcessorPatches.cs index 2d9f6fc..6fbea55 100644 --- a/VT-Api/Patches/VtEvent/MapPaches/Scp914PickupProcessorPatches.cs +++ b/VT-Api/Patches/VtEvent/MapPaches/Scp914PickupProcessorPatches.cs @@ -40,7 +40,7 @@ private static bool AmmoUpgradePatch(AmmoItemProcessor __instance, Scp914KnobSet return false; } - if (ipb is AmmoPickup ammoPickup == false) // change this in C#9 + if (!(ipb is AmmoPickup ammoPickup)) // change this in C#9 return false; var change = 0; @@ -122,7 +122,7 @@ private static bool FirearmUpgradePatch(FirearmItemProcessor __instance, Scp914K newItem = SynapseItem.None; } - if (ipb is FirearmPickup oldFirearmPickup == false) + if (!(ipb is FirearmPickup oldFirearmPickup)) throw new InvalidOperationException("FirearmItemProcessor can't be used for non-firearm items, such as " + newItemBase?.ItemTypeId ?? "Unknow");