Welding tweaks (#27959)
This commit is contained in:
38
Content.Shared/Tools/Components/ToolRefinableComponent.cs
Normal file
38
Content.Shared/Tools/Components/ToolRefinableComponent.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
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";
|
||||
}
|
||||
Reference in New Issue
Block a user