| 1234567891011121314151617181920212223242526272829303132333435363738 |
- using Content.Shared.Storage;
- using Robust.Shared.GameStates;
- using Robust.Shared.Prototypes;
- using Content.Shared.Tools.Systems;
- namespace Content.Shared.Tools.Components;
- /// <summary>
- /// Used for something that can be refined by welder.
- /// For example, glass shard can be refined to glass sheet.
- /// </summary>
- [RegisterComponent, NetworkedComponent, Access(typeof(ToolRefinablSystem))]
- public sealed partial class ToolRefinableComponent : Component
- {
- /// <summary>
- /// The items created when the item is refined.
- /// </summary>
- [DataField(required: true)]
- public List<EntitySpawnEntry> RefineResult = new();
- /// <summary>
- /// The amount of time it takes to refine a given item.
- /// </summary>
- [DataField]
- public float RefineTime = 2f;
- /// <summary>
- /// The amount of fuel it takes to refine a given item.
- /// </summary>
- [DataField]
- public float RefineFuel = 3f;
- /// <summary>
- /// The tool type needed in order to refine this item.
- /// </summary>
- [DataField]
- public ProtoId<ToolQualityPrototype> QualityNeeded = "Welding";
- }
|