* Made more things blessable * Removed junk * Remove whatever that was * Make bowls blessable * New mixablesolution component, converted everything to work with it * Fix minor mishaps * Fix extra spaces in bottle yml * Fix last extra space, fix bottle havign the wrong solution name * Remvoe unneeded event(I think), fix alcohol bottles not being mixable * I missed cans
28 lines
878 B
C#
28 lines
878 B
C#
using Content.Shared.Chemistry.Components;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Chemistry.Reaction;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class ReactionMixerComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// A list of IDs for categories of reactions that can be mixed (i.e. HOLY for a bible, DRINK for a spoon)
|
|
/// </summary>
|
|
[ViewVariables]
|
|
[DataField]
|
|
public List<ProtoId<MixingCategoryPrototype>> ReactionTypes = default!;
|
|
|
|
/// <summary>
|
|
/// A string which identifies the string to be sent when successfully mixing a solution
|
|
/// </summary>
|
|
[ViewVariables]
|
|
[DataField]
|
|
public LocId MixMessage = "default-mixing-success";
|
|
}
|
|
|
|
[ByRefEvent]
|
|
public record struct MixingAttemptEvent(EntityUid Mixed, bool Cancelled = false);
|
|
|
|
public readonly record struct AfterMixingEvent(EntityUid Mixed, EntityUid Mixer);
|