+++ /dev/null
-using Robust.Shared.GameStates;
-
-namespace Content.Shared.Fluids.Components;
-
-/// <summary>
-/// Blocks this entity's ability to spill solution containing entities via the verb menu.
-/// </summary>
-[RegisterComponent, NetworkedComponent]
-public sealed partial class PreventSpillerComponent : Component
-{
-
-}
private void AddSpillVerb(Entity<SpillableComponent> entity, ref GetVerbsEvent<Verb> args)
{
- if (!args.CanAccess || !args.CanInteract)
+ if (!args.CanAccess || !args.CanInteract || args.Hands == null)
return;
if (!_solutionContainerSystem.TryGetSolution(args.Target, entity.Comp.SolutionName, out var soln, out var solution))
if (solution.Volume == FixedPoint2.Zero)
return;
- if (HasComp<PreventSpillerComponent>(args.User))
- return;
-
-
Verb verb = new()
{
Text = Loc.GetString("spill-target-verb-get-data-text")
price: 50
- type: BadFood
- type: NonSpreaderZombie
- - type: PreventSpiller
- type: FireVisuals
sprite: Mobs/Effects/onfire.rsi
normalState: Mouse_burning
price: 50
- type: BadFood
- type: NonSpreaderZombie
- - type: PreventSpiller
- type: FireVisuals
sprite: Mobs/Effects/onfire.rsi
normalState: Mouse_burning
visualType: Large
messages: [ "snail-hurt-by-salt-popup" ]
probability: 0.66
-
+
- type: entity
parent: MobSnail
id: MobSnailInstantDeath