mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-02-14 19:30:01 +01:00
* Entity<T>, skipping Magazine and ChamberMagazine * missed some * AUGH!! * ballistic examine * dotnet hates me * WHY ARE YOU CALLED THAT!!!! * cheers aada
19 lines
476 B
C#
19 lines
476 B
C#
using Content.Shared.Weapons.Ranged.Components;
|
|
|
|
namespace Content.Server.Weapons.Ranged.Systems;
|
|
|
|
public sealed partial class GunSystem
|
|
{
|
|
protected override void SpinRevolver(Entity<RevolverAmmoProviderComponent> ent, EntityUid? user = null)
|
|
{
|
|
base.SpinRevolver(ent, user);
|
|
var index = Random.Next(ent.Comp.Capacity);
|
|
|
|
if (ent.Comp.CurrentIndex == index)
|
|
return;
|
|
|
|
ent.Comp.CurrentIndex = index;
|
|
Dirty(ent);
|
|
}
|
|
}
|