mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-19 06:28:40 +03:00
No spead merge (#475)
* Revert "[GoobPort] WIZ REAL (#465)"
This reverts commit 091a8ff433.
* fix local
This commit is contained in:
@@ -1,46 +1,34 @@
|
||||
// SPDX-FileCopyrightText: 2024 ScarKy0 <106310278+ScarKy0@users.noreply.github.com>
|
||||
// SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
|
||||
// SPDX-FileCopyrightText: 2025 Ilya246 <57039557+Ilya246@users.noreply.github.com>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
|
||||
|
||||
namespace Content.Server.Chemistry.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Used for embeddable entities that should try to inject a
|
||||
/// contained solution into a target over time while they are embbeded into.
|
||||
/// Used for embeddable entities that should try to inject their
|
||||
/// contained solution into the entity they are embedded in over time.
|
||||
/// </summary>
|
||||
[RegisterComponent, AutoGenerateComponentPause]
|
||||
public sealed partial class SolutionInjectWhileEmbeddedComponent : BaseSolutionInjectOnEventComponent {
|
||||
///<summary>
|
||||
///The time at which the injection will happen.
|
||||
///</summary>
|
||||
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoPausedField]
|
||||
public TimeSpan NextUpdate;
|
||||
|
||||
///<summary>
|
||||
///The delay between each injection in seconds.
|
||||
///</summary>
|
||||
[DataField]
|
||||
public TimeSpan UpdateInterval = TimeSpan.FromSeconds(3);
|
||||
[RegisterComponent]
|
||||
public sealed partial class SolutionInjectWhileEmbeddedComponent : BaseSolutionInjectOnEventComponent
|
||||
{
|
||||
/// <summary>
|
||||
/// The interval between injection attempts, in seconds.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public float UpdateInterval = 3.0f;
|
||||
|
||||
// <Goobstation> Goobstation - Shot syringes injecting over time
|
||||
/// <summary>
|
||||
/// Maximum amount of injections this can do on one embed.
|
||||
/// Unlimited if null.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public int? MaxInjections;
|
||||
/// <summary>
|
||||
/// Maximum number of injections that can be performed before the component removes itself.
|
||||
/// Null means unlimited.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public int? Injections = 5;
|
||||
|
||||
/// <summary>
|
||||
/// State: injections done on this entity so far.
|
||||
/// Set to null to uncap for this embed.
|
||||
/// Will be reset while not flying and not stuck in anything.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public int? Injections = 0;
|
||||
// </Goobstation>
|
||||
}
|
||||
/// <summary>
|
||||
/// Used to override the PierceArmor setting when fired from a SyringeGun.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool? PierceArmorOverride;
|
||||
|
||||
/// <summary>
|
||||
/// Used to speed up injections when fired from a SyringeGun.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float SpeedMultiplier = 1f;
|
||||
}
|
||||
Reference in New Issue
Block a user