Compare commits

...

4 Commits

Author SHA1 Message Date
Renovate Bot
15293ae598 Update dependency NUnit.Analyzers to 4.9.2 2025-07-13 02:16:29 +00:00
c2a232d432 add deploy script 2025-07-13 03:37:30 +02:00
HoherGeist
017d966b83 Merge branch 'master' of https://git.ipost.rocks/code002lover/SecretPluginLaboratories 2025-07-13 03:36:27 +02:00
HoherGeist
6810309b46 Changes by code002lover
Blood Fueled Additions -HoherGeist
2025-07-13 03:35:31 +02:00
4 changed files with 23 additions and 2 deletions

View File

@ -1,5 +1,7 @@
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;
@ -36,7 +38,21 @@ 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,6 +35,7 @@ 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";
@ -159,6 +160,7 @@ public sealed class CustomClasses : Plugin
} }
NegromancerManager = new NegromancerManager(this); NegromancerManager = new NegromancerManager(this);
BloodFueledManager = new BloodFueledManager(this);
Instance = this; Instance = this;
} }

View File

@ -12,7 +12,7 @@
<PackageReference Include="coverlet.collector" Version="6.0.4"/> <PackageReference Include="coverlet.collector" Version="6.0.4"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1"/> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1"/>
<PackageReference Include="NUnit" Version="4.3.2"/> <PackageReference Include="NUnit" Version="4.3.2"/>
<PackageReference Include="NUnit.Analyzers" Version="4.8.1"/> <PackageReference Include="NUnit.Analyzers" Version="4.9.2"/>
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0"/> <PackageReference Include="NUnit3TestAdapter" Version="5.0.0"/>
</ItemGroup> </ItemGroup>

3
deploy.sh Executable file
View File

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