Compare commits
No commits in common. "017d966b83222f9c5d008e3f5ee4a282d767f82a" and "6d620dfd8553b805e72db72c9ada0af6e407f4c7" have entirely different histories.
017d966b83
...
6d620dfd85
@ -1,7 +1,5 @@
|
||||
using LabApi.Events.Handlers;
|
||||
using LabApi.Features.Wrappers;
|
||||
using PlayerRoles.FirstPersonControl;
|
||||
using PlayerRoles.PlayableScps.Scp939;
|
||||
using Logger = LabApi.Features.Console.Logger;
|
||||
using Random = System.Random;
|
||||
|
||||
@ -38,21 +36,7 @@ public class BloodFueledManager
|
||||
public BloodFueledManager(CustomClasses 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 SerpentsHandManager SerpentsHandManager;
|
||||
public NegromancerManager NegromancerManager;
|
||||
public BloodFueledManager BloodFueledManager;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string Name => "CustomClasses";
|
||||
@ -160,7 +159,6 @@ public sealed class CustomClasses : Plugin
|
||||
}
|
||||
|
||||
NegromancerManager = new NegromancerManager(this);
|
||||
BloodFueledManager = new BloodFueledManager(this);
|
||||
|
||||
Instance = this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user