Compare commits

..

1 Commits

Author SHA1 Message Date
Renovate Bot
d85cba6685 Update dependency NUnit.Analyzers to 4.9.2 2025-07-13 01:17:59 +00:00
3 changed files with 1 additions and 22 deletions

View File

@ -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;
};
} }
} }

View File

@ -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;
} }

View File

@ -1,3 +0,0 @@
#!/bin/bash
cp output/*.dll "testbau/SCP Secret Laboratory/LabAPI/plugins/7777/"