AddReagentOnTrigger (#39875)
* Trigger * Unnecessary(?) Checks * request * Update Co-Authored-By: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * cleanup * standard name * don't use name alias --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Co-authored-by: iaada <iaada@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Content.Shared.Chemistry.Components;
|
||||
|
||||
namespace Content.Shared.Trigger.Components.Effects;
|
||||
|
||||
/// <summary>
|
||||
/// Adds reagents to the specified solution when the trigger is activated.
|
||||
/// If TargetUser is true the user will have the solution added instead.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
public sealed partial class AddSolutionOnTriggerComponent : BaseXOnTriggerComponent
|
||||
{
|
||||
/// <summary>
|
||||
/// The name of the solution to add to.
|
||||
/// </summary>
|
||||
[DataField(required: true), AutoNetworkedField]
|
||||
public string Solution = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The reagent(s) to be added in the solution.
|
||||
/// </summary>
|
||||
[DataField(required: true), AutoNetworkedField]
|
||||
public Solution AddedSolution = default!;
|
||||
}
|
||||
Reference in New Issue
Block a user