Skip to content

Commit

Permalink
bump exiled V
Browse files Browse the repository at this point in the history
  • Loading branch information
Vretu-Dev committed Jan 11, 2025
1 parent f13c11e commit b3e286b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
22 changes: 8 additions & 14 deletions UsefulHints/EventHandlers/Items/Hints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,11 @@ private static void OnGrenadeHurting(HurtingEventArgs ev)
// SCP 207 Handler
private static void OnPickingUpSCP207(PickingUpItemEventArgs ev)
{
if (ev.Pickup.Type == ItemType.SCP207 || ev.Pickup.Type == ItemType.AntiSCP207)
{
if (ev.Player.IsEffectActive<Scp207>() && ev.Pickup.Type != ItemType.AntiSCP207)
ev.Player.ShowHint($"<color=#A60C0E>{new string('\n', 10)}{string.Format(UsefulHints.Instance.Config.Scp207HintMessage, ev.Player.GetEffect(EffectType.Scp207).Intensity)}</color>", 4);
if (ev.Player.IsEffectActive<Scp207>() && ev.Pickup.Type == ItemType.SCP207)
ev.Player.ShowHint($"<color=#A60C0E>{new string('\n', 10)}{string.Format(UsefulHints.Instance.Config.Scp207HintMessage, ev.Player.GetEffect(EffectType.Scp207).Intensity)}</color>", 4);

if (ev.Player.IsEffectActive<AntiScp207>() && ev.Pickup.Type != ItemType.SCP207)
ev.Player.ShowHint($"<color=#C53892>{new string('\n', 10)}{string.Format(UsefulHints.Instance.Config.AntiScp207HintMessage, ev.Player.GetEffect(EffectType.AntiScp207).Intensity)}</color>", 4);
}
if (ev.Player.IsEffectActive<AntiScp207>() && ev.Pickup.Type == ItemType.AntiSCP207)
ev.Player.ShowHint($"<color=#C53892>{new string('\n', 10)}{string.Format(UsefulHints.Instance.Config.AntiScp207HintMessage, ev.Player.GetEffect(EffectType.AntiScp207).Intensity)}</color>", 4);
}
private static void OnEquipSCP207(ChangingItemEventArgs ev)
{
Expand All @@ -79,14 +76,11 @@ private static void OnEquipSCP207(ChangingItemEventArgs ev)
if (ev.Item == null)
return;

if (ev.Item.Type == ItemType.SCP207 || ev.Item.Type == ItemType.AntiSCP207)
{
if (ev.Player.IsEffectActive<Scp207>() && ev.Item.Type != ItemType.AntiSCP207)
ev.Player.ShowHint($"<color=#A60C0E>{new string('\n', 10)}{string.Format(UsefulHints.Instance.Config.Scp207HintMessage, ev.Player.GetEffect(EffectType.Scp207).Intensity)}</color>", 4);
if (ev.Player.IsEffectActive<Scp207>() && ev.Item.Type == ItemType.SCP207)
ev.Player.ShowHint($"<color=#A60C0E>{new string('\n', 10)}{string.Format(UsefulHints.Instance.Config.Scp207HintMessage, ev.Player.GetEffect(EffectType.Scp207).Intensity)}</color>", 4);

if (ev.Player.IsEffectActive<AntiScp207>() && ev.Item.Type != ItemType.SCP207)
ev.Player.ShowHint($"<color=#C53892>{new string('\n', 10)}{string.Format(UsefulHints.Instance.Config.AntiScp207HintMessage, ev.Player.GetEffect(EffectType.AntiScp207).Intensity)}</color>", 4);
}
if (ev.Player.IsEffectActive<AntiScp207>() && ev.Item.Type == ItemType.AntiSCP207)
ev.Player.ShowHint($"<color=#C53892>{new string('\n', 10)}{string.Format(UsefulHints.Instance.Config.AntiScp207HintMessage, ev.Player.GetEffect(EffectType.AntiScp207).Intensity)}</color>", 4);
}
}
// SCP 1576 Handler
Expand Down
2 changes: 1 addition & 1 deletion UsefulHints/UsefulHints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class UsefulHints : Plugin<Config>
public override string Name => "Useful Hints";
public override string Author => "Vretu";
public override string Prefix { get; } = "UH";
public override Version Version => new Version(1, 9, 7);
public override Version Version => new Version(1, 9, 8);
public override Version RequiredExiledVersion { get; } = new Version(9, 0, 0);
public override PluginPriority Priority { get; } = PluginPriority.Low;
public static UsefulHints Instance { get; private set; }
Expand Down
2 changes: 1 addition & 1 deletion UsefulHints/UsefulHints.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="ExMod.Exiled">
<Version>9.2.2</Version>
<Version>9.3.0</Version>
</PackageReference>
<PackageReference Include="Fody">
<Version>6.9.1</Version>
Expand Down

0 comments on commit b3e286b

Please sign in to comment.