mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
* biogenerator * ack * test success! * fix tests * increase price of reagents (cherry picked from commit efe54e011e4c9b52c688b28cce686d26ff267c28)
32 lines
965 B
C#
32 lines
965 B
C#
using Content.Shared.Chemistry.Reagent;
|
|
using Content.Shared.Materials;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.Materials.Components;
|
|
|
|
/// <summary>
|
|
/// This is used for a machine that turns produce into a specified material.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(ProduceMaterialExtractorSystem))]
|
|
public sealed partial class ProduceMaterialExtractorComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The material that produce is converted into
|
|
/// </summary>
|
|
[DataField]
|
|
public ProtoId<MaterialPrototype> ExtractedMaterial = "Biomass";
|
|
|
|
/// <summary>
|
|
/// List of reagents that determines how much material is yielded from a produce.
|
|
/// </summary>
|
|
[DataField]
|
|
public List<ProtoId<ReagentPrototype>> ExtractionReagents = new()
|
|
{
|
|
"Nutriment"
|
|
};
|
|
|
|
[DataField]
|
|
public SoundSpecifier? ExtractSound = new SoundPathSpecifier("/Audio/Effects/waterswirl.ogg");
|
|
}
|