Compare commits
1 Commits
9563910b35
...
66288fa1c7
Author | SHA1 | Date | |
---|---|---|---|
|
66288fa1c7 |
@ -1,7 +1,5 @@
|
|||||||
using LabApi.Events.Handlers;
|
|
||||||
using LabApi.Features.Wrappers;
|
using LabApi.Features.Wrappers;
|
||||||
using PlayerRoles.FirstPersonControl;
|
using PlayerRoles.FirstPersonControl;
|
||||||
using PlayerRoles.PlayableScps.Scp939;
|
|
||||||
using Logger = LabApi.Features.Console.Logger;
|
using Logger = LabApi.Features.Console.Logger;
|
||||||
using Random = System.Random;
|
using Random = System.Random;
|
||||||
|
|
||||||
@ -38,21 +36,7 @@ public class BloodFueledManager
|
|||||||
public BloodFueledManager(CustomClasses plugin)
|
public BloodFueledManager(CustomClasses plugin)
|
||||||
{
|
{
|
||||||
_plugin = plugin;
|
_plugin = plugin;
|
||||||
PlayerEvents.Hurt += ev =>
|
|
||||||
{
|
|
||||||
if (ev.DamageHandler is not Scp939DamageHandler damageHandler) return;
|
|
||||||
var attacker = Player.Get(damageHandler.Attacker.Hub);
|
|
||||||
if (attacker == null) return;
|
|
||||||
if (!IsBloodFueled(attacker)) return;
|
|
||||||
|
|
||||||
if (ev.Player.Health <= 0)
|
|
||||||
{
|
|
||||||
attacker.StaminaRemaining += 0.2f;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
attacker.StaminaRemaining += 0.1f;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,6 @@ public sealed class CustomClasses : Plugin
|
|||||||
public readonly CustomClassManager ClassManager = new();
|
public readonly CustomClassManager ClassManager = new();
|
||||||
public SerpentsHandManager SerpentsHandManager;
|
public SerpentsHandManager SerpentsHandManager;
|
||||||
public NegromancerManager NegromancerManager;
|
public NegromancerManager NegromancerManager;
|
||||||
public BloodFueledManager BloodFueledManager;
|
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public override string Name => "CustomClasses";
|
public override string Name => "CustomClasses";
|
||||||
@ -160,7 +159,6 @@ public sealed class CustomClasses : Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
NegromancerManager = new NegromancerManager(this);
|
NegromancerManager = new NegromancerManager(this);
|
||||||
BloodFueledManager = new BloodFueledManager(this);
|
|
||||||
|
|
||||||
Instance = this;
|
Instance = this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user