Hardlight spear tweaks (#3)

* - tweak: Increased hardlight spear throw force and use delay

* - fix: Hardlight spear can now hit holocarps when thrown

* - add: New sprites for hardlight spear

* - fix: Fix duping hardlight spears by inserting them into containers
This commit is contained in:
Aviu00
2024-01-31 21:47:18 +09:00
committed by GitHub
parent 699f42c45b
commit 27d4cf977f
10 changed files with 63 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
using Content.Shared.Throwing;
namespace Content.Server._White.Other.ChangeThrowForceSystem;
public sealed class ChangeThrowForceSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<ChangeThrowForceComponent, BeforeThrowEvent>(HandleThrow);
}
private void HandleThrow(EntityUid uid, ChangeThrowForceComponent component, ref BeforeThrowEvent args)
{
args.ThrowStrength = component.ThrowForce;
}
}