| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using Content.Shared.Damage;
- using Content.Shared.Tools;
- using Robust.Shared.Prototypes;
- using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
- namespace Content.Server.Repairable
- {
- [RegisterComponent]
- public sealed partial class RepairableComponent : Component
- {
- /// <summary>
- /// All the damage to change information is stored in this <see cref="DamageSpecifier"/>.
- /// </summary>
- /// <remarks>
- /// 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>
- [DataField]
- public DamageSpecifier? Damage;
- [DataField]
- public int FuelCost = 5;
- [DataField]
- public ProtoId<ToolQualityPrototype> QualityNeeded = "Welding";
- [DataField]
- public int DoAfterDelay = 1;
- /// <summary>
- /// A multiplier that will be applied to the above if an entity is repairing themselves.
- /// </summary>
- [DataField]
- public float SelfRepairPenalty = 3f;
- /// <summary>
- /// Whether or not an entity is allowed to repair itself.
- /// </summary>
- [DataField]
- public bool AllowSelfRepair = true;
- }
- }
|