2024-06-30 05:43:43 +02:00
|
|
|
using Content.Shared.Chemistry.Reagent;
|
|
|
|
|
using Content.Shared.Nutrition.Components;
|
2025-05-23 12:32:22 -04:00
|
|
|
using Content.Shared.Nutrition.EntitySystems;
|
2024-06-30 05:43:43 +02:00
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
2025-05-23 12:32:22 -04:00
|
|
|
namespace Content.Shared.EntityEffects.Effects;
|
2024-06-30 05:43:43 +02:00
|
|
|
|
|
|
|
|
public sealed partial class WashCreamPieReaction : EntityEffect
|
|
|
|
|
{
|
|
|
|
|
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
|
|
|
|
|
=> Loc.GetString("reagent-effect-guidebook-wash-cream-pie-reaction", ("chance", Probability));
|
|
|
|
|
|
|
|
|
|
public override void Effect(EntityEffectBaseArgs args)
|
|
|
|
|
{
|
|
|
|
|
if (!args.EntityManager.TryGetComponent(args.TargetEntity, out CreamPiedComponent? creamPied)) return;
|
|
|
|
|
|
2025-05-23 12:32:22 -04:00
|
|
|
args.EntityManager.System<SharedCreamPieSystem>().SetCreamPied(args.TargetEntity, creamPied, false);
|
2024-06-30 05:43:43 +02:00
|
|
|
}
|
|
|
|
|
}
|