mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 16:47:26 +00:00
* Add ability for GunComponent to track their holders * Add new component to allow Players to modify gun attributes * Allow users of melee weapons to also modify their weapons damage * Allow user stamina damage modifiers * Allow users of tools to also modify tool attributes * Delete old Oni component and systems * Replace oni components * Set default max spread angle to 180 degrees * Change modifier to multiplier to better reflect the math * Add documentation. * Add NetworkedComponent to new components
20 lines
542 B
C#
20 lines
542 B
C#
using Content.Shared._DV.Prying.Components;
|
|
using Content.Shared.Prying.Components;
|
|
|
|
namespace Content.Shared._DV.Prying.Systems;
|
|
|
|
public sealed partial class PlayerToolModifierSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<PlayerToolModifierComponent, GetPryTimeModifierEvent>(OnPry);
|
|
}
|
|
|
|
private void OnPry(Entity<PlayerToolModifierComponent> ent, ref GetPryTimeModifierEvent args)
|
|
{
|
|
args.PryTimeModifier *= ent.Comp.PryTimeMultiplier;
|
|
}
|
|
}
|