mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 14:07:53 +03:00
Port medical patches from [Goob-Station](https://github.com/Goob-Station/Goob-Station). Prs: https://github.com/space-wizards/space-station-14/pull/30230 https://github.com/Goob-Station/Goob-Station/pull/493 https://github.com/Goob-Station/Goob-Station/pull/663 https://github.com/Goob-Station/Goob-Station/pull/1086 https://github.com/Goob-Station/Goob-Station/pull/1072 https://github.com/Goob-Station/Goob-Station/pull/1243 https://github.com/Goob-Station/Goob-Station/pull/1246 https://github.com/Goob-Station/Goob-Station/pull/1707 --- <details><summary><h1>Media</h1></summary> <p>  </p> </details> --- 🆑 deltanedas, jorgun, fishbait_x, Huffs-The-Frezone, Teapug, Speebr0, CerberusWolfie, yglop, botanySupremist, Will-Oliver-Br - add: Added medical patches - add: Added a guidebook entry for medical patches. --------- Signed-off-by: Will-Oliver-Br <164823659+Will-Oliver-Br@users.noreply.github.com> Co-authored-by: deltanedas <39013340+deltanedas@users.noreply.github.com> Co-authored-by: fishbait <gnesse@gmail.com> Co-authored-by: unknown <Administrator@DESKTOP-PMRIVVA.kommune.indresogn.no> Co-authored-by: Fishbait <Fishbait@git.ml> Co-authored-by: Theapug <159912420+Teapug@users.noreply.github.com> Co-authored-by: Speebro <100388782+Speebr0@users.noreply.github.com> Co-authored-by: Speebro <speebro@notreal.com> Co-authored-by: John Willis <143434770+CerberusWolfie@users.noreply.github.com> Co-authored-by: yglop <95057024+yglop@users.noreply.github.com> Co-authored-by: botanySupremist <160211017+botanySupremist@users.noreply.github.com> Co-authored-by: botanySupremist <definitelyrealBotSupremist@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using Content.Shared.FixedPoint;
|
|
|
|
namespace Content.Server.Medical.Components;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class MedicalPatchComponent : Component
|
|
{
|
|
[DataField]
|
|
public string SolutionName = "drink";
|
|
[DataField]
|
|
public FixedPoint2 TransferAmount = FixedPoint2.New(1);
|
|
/// <summary>
|
|
/// if this is a single use patch, gets destroyed or replaced when empty or removed.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool SingleUse = false;
|
|
/// <summary>
|
|
/// if single use what the Entity shud be replaced whit
|
|
/// </summary>
|
|
[DataField]
|
|
public string? TrashObject = "UsedMedicalPatch";
|
|
/// <summary>
|
|
/// how often the patch shud transfer sulution
|
|
/// </summary>
|
|
[DataField]
|
|
public float UpdateTime = 1f;
|
|
|
|
[DataField]
|
|
public TimeSpan NextUpdate = TimeSpan.Zero;
|
|
/// <summary>
|
|
/// if any set ammount shud be transfered when the patch is attatched,
|
|
/// </summary>
|
|
[DataField]
|
|
public FixedPoint2 InjectAmmountOnAttatch = FixedPoint2.New(0);
|
|
/// <summary>
|
|
/// if a Percentage of the remaining soulution shud be transfered when attatched, use 0 - 100
|
|
/// </summary>
|
|
[DataField]
|
|
public FixedPoint2 InjectPercentageOnAttatch = FixedPoint2.New(0);
|
|
}
|
|
|
|
|