2022-11-16 16:02:36 -05:00
|
|
|
using Content.Shared.Construction.Prototypes;
|
2021-06-09 22:19:39 +02:00
|
|
|
using Content.Shared.DragDrop;
|
|
|
|
|
using Content.Shared.MedicalScanner;
|
2021-03-01 15:24:46 -08:00
|
|
|
using Robust.Shared.Containers;
|
2022-11-16 16:02:36 -05:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2019-09-18 20:24:55 +02:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Medical.Components
|
2019-09-18 20:24:55 +02:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2022-03-07 21:45:52 -06:00
|
|
|
public sealed class MedicalScannerComponent : SharedMedicalScannerComponent
|
2019-09-18 20:24:55 +02:00
|
|
|
{
|
2022-08-04 00:05:17 -04:00
|
|
|
public const string ScannerPort = "MedicalScannerReceiver";
|
2022-03-07 21:45:52 -06:00
|
|
|
public ContainerSlot BodyContainer = default!;
|
2022-08-04 00:05:17 -04:00
|
|
|
public EntityUid? ConnectedConsole;
|
2020-09-02 06:07:54 -04:00
|
|
|
|
2022-11-16 16:02:36 -05:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float CloningFailChanceMultiplier = 1f;
|
|
|
|
|
|
|
|
|
|
[DataField("machinePartCloningFailChance", customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>))]
|
2023-04-28 23:23:49 -04:00
|
|
|
public string MachinePartCloningFailChance = "Capacitor";
|
2022-11-16 16:02:36 -05:00
|
|
|
|
|
|
|
|
[DataField("partRatingCloningFailChanceMultiplier")]
|
|
|
|
|
public float PartRatingFailMultiplier = 0.75f;
|
2019-09-18 20:24:55 +02:00
|
|
|
}
|
|
|
|
|
}
|