Remove prototype caching from TransformableContainerComponent (#38988)
Remove prototype caching from TransformableContainer
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using Content.Server.Animals.Systems;
|
||||
using Content.Server.Chemistry.EntitySystems;
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.Chemistry.Components;
|
||||
|
||||
@@ -19,19 +19,19 @@ public sealed partial class TransformableContainerComponent : Component
|
||||
/// It will revert to this when emptied.
|
||||
/// /// It defaults to the description of the parent entity unless overwritten.
|
||||
/// </summary>
|
||||
[DataField("initialDescription")]
|
||||
[DataField]
|
||||
public string? InitialDescription;
|
||||
|
||||
/// <summary>
|
||||
/// This stores whatever primary reagent is currently in the container.
|
||||
/// It is used to help determine if a transformation is needed on solution update.
|
||||
/// </summary>
|
||||
[DataField("currentReagent")]
|
||||
public ReagentPrototype? CurrentReagent;
|
||||
[DataField]
|
||||
public ProtoId<ReagentPrototype>? CurrentReagent;
|
||||
|
||||
/// <summary>
|
||||
/// This returns whether this container in a transformed or initial state.
|
||||
/// </summary>
|
||||
///
|
||||
[DataField("transformed")]
|
||||
[DataField]
|
||||
public bool Transformed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user