add fuel costs back to finishing welding (#27030)
* add fuel costs back to welding * ack * meh * eek!
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.Tools;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Server.Repairable
|
||||
@@ -14,28 +15,28 @@ namespace Content.Server.Repairable
|
||||
/// If this data-field is specified, it will change damage by this amount instead of setting all damage to 0.
|
||||
/// in order to heal/repair the damage values have to be negative.
|
||||
/// </remarks>
|
||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("damage")]
|
||||
[DataField]
|
||||
public DamageSpecifier? Damage;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("fuelCost")]
|
||||
[DataField]
|
||||
public int FuelCost = 5;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("qualityNeeded", customTypeSerializer:typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
|
||||
public string QualityNeeded = "Welding";
|
||||
[DataField]
|
||||
public ProtoId<ToolQualityPrototype> QualityNeeded = "Welding";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("doAfterDelay")]
|
||||
[DataField]
|
||||
public int DoAfterDelay = 1;
|
||||
|
||||
/// <summary>
|
||||
/// A multiplier that will be applied to the above if an entity is repairing themselves.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("selfRepairPenalty")]
|
||||
[DataField]
|
||||
public float SelfRepairPenalty = 3f;
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not an entity is allowed to repair itself.
|
||||
/// </summary>
|
||||
[DataField("allowSelfRepair")]
|
||||
[DataField]
|
||||
public bool AllowSelfRepair = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user