Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8 from SynapseSL/V.2.2.1
Browse files Browse the repository at this point in the history
V.2.2.1
  • Loading branch information
GrafDimenzio authored Nov 30, 2020
2 parents 44dd65f + 024c335 commit 191ed27
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Synapse/Api/Scp914.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public Scp914Recipe(global::Scp914.Scp914Recipe recipe)
rough = recipe.rough.Select(x => (int)x).ToList();
coarse = recipe.coarse.Select(x => (int)x).ToList();
oneToOne = recipe.oneToOne.Select(x => (int)x).ToList();
fine = recipe.oneToOne.Select(x => (int)x).ToList();
fine = recipe.fine.Select(x => (int)x).ToList();
veryFine = recipe.veryFine.Select(x => (int)x).ToList();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private static bool Prefix(Scp914.Scp914Machine __instance)

if (!allow) return false;

var vanillaitems = items.Select(x => x.pickup);
var vanillaitems = items.Where(x => x.State == Api.Enum.ItemState.Map).Select(x => x.pickup);
var vanillaplayers = players.Select(x => x.ClassManager);

try
Expand Down
6 changes: 5 additions & 1 deletion Synapse/Patches/SynapsePatches/ShootPermissionPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ private static bool Prefix(WeaponManager __instance,out bool __result, Character
{
if (shooter.Team == Team.SCP && target.Team == Team.SCP) __result = false;

else if (Server.Get.FF) __result = shooter.Team != target.Team;
var ff = Server.Get.FF;
if (forceFriendlyFire)
ff = true;

else if (!ff) __result = shooter.Team != target.Team;
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions Synapse/SynapseController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ private void PatchMethods()

public const int SynapseMajor = 2;
public const int SynapseMinor = 2;
public const int SynapsePatch = 0;
public const string SynapseVersion = "2.2.0";
public const int SynapsePatch = 1;
public const string SynapseVersion = "2.2.1";
}

0 comments on commit 191ed27

Please sign in to comment.