mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-03 09:37:27 +00:00
Update (MOST) instances of EntityUid, Component in GunSystem to Entity<T> (#41966)
* Entity<T>, skipping Magazine and ChamberMagazine * missed some * AUGH!! * ballistic examine * dotnet hates me * WHY ARE YOU CALLED THAT!!!! * cheers aada
This commit is contained in:
@@ -27,18 +27,18 @@ public sealed partial class GunSignalControlSystem : EntitySystem
|
||||
return;
|
||||
|
||||
if (args.Port == gunControl.Comp.TriggerPort)
|
||||
_gun.AttemptShoot(gunControl, gun);
|
||||
_gun.AttemptShoot((gunControl, gun));
|
||||
|
||||
if (!TryComp<AutoShootGunComponent>(gunControl, out var autoShoot))
|
||||
return;
|
||||
|
||||
if (args.Port == gunControl.Comp.TogglePort)
|
||||
_gun.SetEnabled(gunControl, autoShoot, !autoShoot.Enabled);
|
||||
_gun.SetEnabled((gunControl, autoShoot), !autoShoot.Enabled);
|
||||
|
||||
if (args.Port == gunControl.Comp.OnPort)
|
||||
_gun.SetEnabled(gunControl, autoShoot, true);
|
||||
_gun.SetEnabled((gunControl, autoShoot), true);
|
||||
|
||||
if (args.Port == gunControl.Comp.OffPort)
|
||||
_gun.SetEnabled(gunControl, autoShoot, false);
|
||||
_gun.SetEnabled((gunControl, autoShoot), false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user