Makes tools and welders ECS, add ToolQualityPrototype. (#4741)
This commit is contained in:
committed by
GitHub
parent
f2760d0002
commit
365c7da4dc
@@ -1,5 +1,7 @@
|
||||
using Content.Shared.Tools;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Repairable
|
||||
@@ -12,6 +14,9 @@ namespace Content.Server.Repairable
|
||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("fuelCost")]
|
||||
public int FuelCost = 5;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("qualityNeeded", customTypeSerializer:typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
|
||||
public string QualityNeeded = "Welding";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("doAfterDelay")]
|
||||
public int DoAfterDelay = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user