Skip to content

Commit

Permalink
fix smol brain debug lines
Browse files Browse the repository at this point in the history
  • Loading branch information
joker-119 committed Jan 18, 2020
1 parent 01782ad commit 4213de7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
9 changes: 2 additions & 7 deletions EXILED_Events/Patches/Scp096ProcessLookingOverride.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ public static bool Prefix(Scp096PlayerScript __instance, float amount)
{
try
{
Plugin.Info($"Scp-096 Enrage event check.");
if (EventPlugin.Scp096PatchDisable)
return true;

Plugin.Info($"Scp-096 Enrage event check2");

__instance._rageProgress += amount;
if (__instance._rageProgress <
(double) __instance.rageCurve.Evaluate(Mathf.Min(PlayerManager.players.Count, 20)))
return false;
Plugin.Info($"Scp-096 Enrage event firing..");
bool allow = true;
Events.InvokeScp096Enrage(__instance, ref allow);
if (allow == false)
Expand All @@ -46,11 +43,9 @@ public static bool Prefix(Scp096PlayerScript __instance)
{
try
{
Plugin.Info($"Scp-096 Calm event check.");
if (EventPlugin.Scp096PatchDisable)
return true;

Plugin.Info($"Scp-096 calm event firing..");

bool allow = true;
Events.InvokeScp096Calm(__instance, ref allow);
return allow;
Expand Down
Binary file not shown.
5 changes: 2 additions & 3 deletions EXILED_Main/ServerNamePatch.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Harmony;
using Telepathy;

namespace EXILED
{
Expand All @@ -8,8 +7,8 @@ public class ServerNamePatch
{
public static void Postfix()
{
ServerConsole._serverName = ServerConsole._serverName.Replace("SM119.0.0", "");
ServerConsole._serverName += " <size=1>SM119.1.0.0 (EXILED)</size>";
ServerConsole._serverName = ServerConsole._serverName.Replace("<size=1>SM119.0.0</size>", "");
ServerConsole._serverName += " <size=1>SM119.1.0.2 (EXILED)</size>";
}
}
}

0 comments on commit 4213de7

Please sign in to comment.