Skip to content

Commit

Permalink
2.0.1
Browse files Browse the repository at this point in the history
* Added configuration for giving Ghostly effect to the NPC
  • Loading branch information
SrLicht committed Mar 12, 2024
1 parent ffea3d5 commit 047e905
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion SCP575/API/Extensions/BlackoutExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Interactables.Interobjects.DoorUtils;
using CustomPlayerEffects;
using Interactables.Interobjects.DoorUtils;
using MapGeneration;
using MEC;
using PluginAPI.Core;
Expand Down Expand Up @@ -168,6 +169,10 @@ public static void SpawnScp575(Player victim, float duration)

scp575.IsGodModeEnabled = true;

if (EntryPoint.Instance.Config.Scp575.RoleType != PlayerRoles.RoleTypeId.Scp106 && EntryPoint.Instance.Config.Scp575.GiveGhostlyEffect)
scp575.ReferenceHub.playerEffectsController.EnableEffect<Ghostly>();


Timing.CallDelayed(0.3f, () =>
{
Log.Debug("Moving dummy to the victim's room", EntryPoint.Instance.Config.DebugMode, EntryPoint.Prefix);
Expand Down
3 changes: 3 additions & 0 deletions SCP575/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ public class Scp575Config
[Description("Set the SCP-575 role, by default, it is SCP-106.")]
public RoleTypeId RoleType { get; set; } = RoleTypeId.Scp106;

[Description("If the roletype is not Scp106 i will give him the Ghostly effect for go throw the doors")]
public bool GiveGhostlyEffect { get; set; } = true;

/// <summary>
/// The death message that will appear when players are killed by SCP-575.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion SCP575/EntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class EntryPoint
/// <summary>
/// Gets the plugin version.
/// </summary>
public const string Version = "2.0.0";
public const string Version = "2.0.1";

/// <summary>
/// Private HarmonyID for unpatching assembly patches.
Expand Down

0 comments on commit 047e905

Please sign in to comment.