Removed extra comp name attributes (#6449)
This commit is contained in:
@@ -7,7 +7,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
|
||||
|
||||
namespace Content.Server.Weapon.Melee.EnergySword
|
||||
{
|
||||
[RegisterComponent, ComponentProtoName("EnergySword")]
|
||||
[RegisterComponent]
|
||||
internal class EnergySwordComponent : Component
|
||||
{
|
||||
public Color BladeColor = Color.DodgerBlue;
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace Content.Server.Weapon.Ranged.Ammunition.Components
|
||||
/// Stores ammo and can quickly transfer ammo into a magazine.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[ComponentProtoName("AmmoBox")]
|
||||
[Friend(typeof(GunSystem))]
|
||||
public sealed class AmmoBoxComponent : Component
|
||||
{
|
||||
|
||||
@@ -25,7 +25,6 @@ namespace Content.Server.Weapon.Ranged.Ammunition.Components
|
||||
/// Generally used for bullets but can be used for other things like bananas
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[ComponentProtoName("Ammo")]
|
||||
[Friend(typeof(GunSystem))]
|
||||
public sealed class AmmoComponent : Component, ISerializationHooks
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
|
||||
namespace Content.Server.Weapon.Ranged.Ammunition.Components
|
||||
{
|
||||
[RegisterComponent, ComponentProtoName("RangedMagazine")]
|
||||
[RegisterComponent]
|
||||
public class RangedMagazineComponent : Component
|
||||
{
|
||||
public readonly Stack<EntityUid> SpawnedAmmo = new();
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Content.Server.Weapon.Ranged.Ammunition.Components
|
||||
/// <summary>
|
||||
/// Used to load certain ranged weapons quickly
|
||||
/// </summary>
|
||||
[RegisterComponent, ComponentProtoName("SpeedLoader")]
|
||||
[RegisterComponent]
|
||||
public class SpeedLoaderComponent : Component
|
||||
{
|
||||
[DataField("caliber")] public BallisticCaliber Caliber = BallisticCaliber.Unspecified;
|
||||
|
||||
@@ -10,7 +10,7 @@ using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Weapon.Ranged.Barrels.Components
|
||||
{
|
||||
[RegisterComponent, NetworkedComponent, ComponentProtoName("BatteryBarrel"), ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||
public sealed class BatteryBarrelComponent : ServerRangedBarrelComponent
|
||||
{
|
||||
// The minimum change we need before we can fire
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
|
||||
/// <summary>
|
||||
/// Shotguns mostly
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, ComponentProtoName("BoltActionBarrel"), ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||
public sealed class BoltActionBarrelComponent : ServerRangedBarrelComponent
|
||||
{
|
||||
// Originally I had this logic shared with PumpBarrel and used a couple of variables to control things
|
||||
|
||||
@@ -14,7 +14,7 @@ using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Weapon.Ranged.Barrels.Components
|
||||
{
|
||||
[RegisterComponent, NetworkedComponent, ComponentProtoName("MagazineBarrel"), ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||
public sealed class MagazineBarrelComponent : ServerRangedBarrelComponent
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entities = default!;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
|
||||
/// <summary>
|
||||
/// Bolt-action rifles
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, ComponentProtoName("PumpBarrel"), ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||
public sealed class PumpBarrelComponent : ServerRangedBarrelComponent, ISerializationHooks
|
||||
{
|
||||
public override int ShotsLeft
|
||||
|
||||
@@ -15,7 +15,7 @@ using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Weapon.Ranged.Barrels.Components
|
||||
{
|
||||
[RegisterComponent, ComponentProtoName("RevolverBarrel"), NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||
public sealed class RevolverBarrelComponent : ServerRangedBarrelComponent, ISerializationHooks
|
||||
{
|
||||
[ViewVariables]
|
||||
|
||||
Reference in New Issue
Block a user