mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
# Description By extremely popular demand(Both internally, and from our downstreams), this PR reimplements Part Upgrading. Since some of the systems that this PR touches were substantially changed since the removal of Parts, I had to do a lot of very in depth by-hand edits of individual systems. Shockingly, the only one that really proved any trouble was Cloning System, so I'm genuinely surprised wizden didn't substantially touch any of these codes since removing parts.. # Changelog 🆑 - add: Part Upgrading has returned! --------- Signed-off-by: VMSolidus <evilexecutive@gmail.com> Co-authored-by: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com>
27 lines
924 B
C#
27 lines
924 B
C#
using Content.Shared.Construction.Prototypes;
|
|
using Content.Shared.MedicalScanner;
|
|
using Robust.Shared.Containers;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.Medical.Components
|
|
{
|
|
[RegisterComponent]
|
|
public sealed partial class MedicalScannerComponent : SharedMedicalScannerComponent
|
|
{
|
|
public const string ScannerPort = "MedicalScannerReceiver";
|
|
public ContainerSlot BodyContainer = default!;
|
|
public EntityUid? ConnectedConsole;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public float CloningFailChanceMultiplier = 1f;
|
|
|
|
public float MetemKarmaBonus = 0.25f;
|
|
|
|
[DataField(customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>))]
|
|
public string MachinePartCloningFailChance = "Capacitor";
|
|
|
|
[DataField]
|
|
public float PartRatingFailMultiplier = 0.75f;
|
|
}
|
|
}
|