Compare commits

...

4 Commits

Author SHA1 Message Date
Renovate Bot
1aa2e4f9e2 Update dependency Northwood.LabAPI to 1.1.0 2025-07-13 02:16:43 +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
26 changed files with 45 additions and 24 deletions

View File

@ -32,6 +32,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -20,6 +20,6 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -32,7 +32,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

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

@ -50,6 +50,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -35,6 +35,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -35,6 +35,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -41,6 +41,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -35,6 +35,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -21,7 +21,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>

View File

@ -26,6 +26,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -21,7 +21,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>

View File

@ -20,6 +20,6 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -21,7 +21,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>

View File

@ -21,7 +21,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>

View File

@ -38,6 +38,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -36,6 +36,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -35,6 +35,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -25,7 +25,7 @@
<EmbeddedResource Include="Rust/target/x86_64-pc-windows-gnu/release/stats_tracker.dll" /> <EmbeddedResource Include="Rust/target/x86_64-pc-windows-gnu/release/stats_tracker.dll" />
<EmbeddedResource Include="Rust/target/x86_64-unknown-linux-gnu/release/libstats_tracker.so" /> <EmbeddedResource Include="Rust/target/x86_64-unknown-linux-gnu/release/libstats_tracker.so" />
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
<Target Name="RustBuild" BeforeTargets="PrepareForBuild"> <Target Name="RustBuild" BeforeTargets="PrepareForBuild">

View File

@ -21,7 +21,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>

View File

@ -21,7 +21,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>

View File

@ -21,7 +21,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>

View File

@ -38,6 +38,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -32,6 +32,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.0.2"/> <PackageReference Include="Northwood.LabAPI" Version="1.1.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

3
deploy.sh Executable file
View File

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