CorePoweredThrowerComponent.cs 885 B

12345678910111213141516171819202122232425
  1. using System.Numerics;
  2. using Content.Shared.Weapons.Melee.Components;
  3. using Robust.Shared.GameStates;
  4. namespace Content.Shared.Anomaly.Components;
  5. /// <summary>
  6. /// This is used for an entity with <see cref="MeleeThrowOnHitComponent"/> that is governed by an anomaly core inside of it.
  7. /// </summary>
  8. [RegisterComponent, NetworkedComponent]
  9. [Access(typeof(SharedAnomalyCoreSystem))]
  10. public sealed partial class CorePoweredThrowerComponent : Component
  11. {
  12. /// <summary>
  13. /// The ID of the item slot containing the core.
  14. /// </summary>
  15. [DataField, ViewVariables(VVAccess.ReadWrite)]
  16. public string CoreSlotId = "core_slot";
  17. /// <summary>
  18. /// A range for how much the stability variable on the anomaly will increase with each throw.
  19. /// </summary>
  20. [DataField, ViewVariables(VVAccess.ReadWrite)]
  21. public Vector2 StabilityPerThrow = new(0.1f, 0.2f);
  22. }