Remove gun .Owners (#14585)

This commit is contained in:
metalgearsloth
2023-03-11 20:08:22 +11:00
committed by GitHub
parent 19f5c403b5
commit 330bb7bb14
18 changed files with 333 additions and 280 deletions

View File

@@ -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);