Remove gun .Owners (#14585)
This commit is contained in:
@@ -4,12 +4,13 @@ namespace Content.Server.Weapons.Ranged.Systems;
|
||||
|
||||
public sealed partial class GunSystem
|
||||
{
|
||||
protected override void SpinRevolver(RevolverAmmoProviderComponent component, EntityUid? user = null)
|
||||
protected override void SpinRevolver(EntityUid revolverUid, RevolverAmmoProviderComponent component, EntityUid? user = null)
|
||||
{
|
||||
base.SpinRevolver(component, user);
|
||||
base.SpinRevolver(revolverUid, component, user);
|
||||
var index = Random.Next(component.Capacity);
|
||||
|
||||
if (component.CurrentIndex == index) return;
|
||||
if (component.CurrentIndex == index)
|
||||
return;
|
||||
|
||||
component.CurrentIndex = index;
|
||||
Dirty(component);
|
||||
|
||||
Reference in New Issue
Block a user