2024-05-29 14:06:50 -04:00
|
|
|
using Content.Shared.Storage;
|
2024-06-02 22:28:53 -05:00
|
|
|
using Robust.Shared.GameStates;
|
2024-04-19 19:20:30 -04:00
|
|
|
using Robust.Shared.Prototypes;
|
2024-06-02 22:28:53 -05:00
|
|
|
using Content.Shared.Tools.Systems;
|
2020-11-22 07:05:30 +03:00
|
|
|
|
2024-06-02 22:28:53 -05:00
|
|
|
namespace Content.Shared.Tools.Components;
|
2024-04-19 19:20:30 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Used for something that can be refined by welder.
|
|
|
|
|
/// For example, glass shard can be refined to glass sheet.
|
|
|
|
|
/// </summary>
|
2024-06-02 22:28:53 -05:00
|
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(ToolRefinablSystem))]
|
|
|
|
|
public sealed partial class ToolRefinableComponent : Component
|
2020-11-22 07:05:30 +03:00
|
|
|
{
|
2024-05-29 14:06:50 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// The items created when the item is refined.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField(required: true)]
|
|
|
|
|
public List<EntitySpawnEntry> RefineResult = new();
|
2024-04-19 19:20:30 -04:00
|
|
|
|
2024-05-29 14:06:50 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// The amount of time it takes to refine a given item.
|
|
|
|
|
/// </summary>
|
2024-04-19 19:20:30 -04:00
|
|
|
[DataField]
|
|
|
|
|
public float RefineTime = 2f;
|
2021-10-07 13:01:27 +02:00
|
|
|
|
2024-05-29 14:06:50 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// The amount of fuel it takes to refine a given item.
|
|
|
|
|
/// </summary>
|
2024-04-19 19:20:30 -04:00
|
|
|
[DataField]
|
2024-06-02 22:28:53 -05:00
|
|
|
public float RefineFuel = 3f;
|
2020-11-22 07:05:30 +03:00
|
|
|
|
2024-05-29 14:06:50 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// The tool type needed in order to refine this item.
|
|
|
|
|
/// </summary>
|
2024-04-19 19:20:30 -04:00
|
|
|
[DataField]
|
|
|
|
|
public ProtoId<ToolQualityPrototype> QualityNeeded = "Welding";
|
2020-11-22 07:05:30 +03:00
|
|
|
}
|