Skip to content

Commit

Permalink
Make mobs without hands unable to spill jugs (space-wizards#31438)
Browse files Browse the repository at this point in the history
* make mobs without hands unable to spill jugs

* snails
  • Loading branch information
slarticodefast authored Sep 9, 2024
1 parent 82464da commit 2187aef
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 20 deletions.
12 changes: 0 additions & 12 deletions Content.Shared/Fluids/Components/PreventSpillerComponent.cs

This file was deleted.

6 changes: 1 addition & 5 deletions Content.Shared/Fluids/SharedPuddleSystem.Spillable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private void OnExamined(Entity<SpillableComponent> entity, ref ExaminedEvent arg

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))
Expand All @@ -46,10 +46,6 @@ private void AddSpillVerb(Entity<SpillableComponent> entity, ref GetVerbsEvent<V
if (solution.Volume == FixedPoint2.Zero)
return;

if (HasComp<PreventSpillerComponent>(args.User))
return;


Verb verb = new()
{
Text = Loc.GetString("spill-target-verb-get-data-text")
Expand Down
1 change: 0 additions & 1 deletion Resources/Prototypes/Entities/Mobs/NPCs/animals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,6 @@
price: 50
- type: BadFood
- type: NonSpreaderZombie
- type: PreventSpiller
- type: FireVisuals
sprite: Mobs/Effects/onfire.rsi
normalState: Mouse_burning
Expand Down
3 changes: 1 addition & 2 deletions Resources/Prototypes/Entities/Mobs/NPCs/space.yml
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,6 @@
price: 50
- type: BadFood
- type: NonSpreaderZombie
- type: PreventSpiller
- type: FireVisuals
sprite: Mobs/Effects/onfire.rsi
normalState: Mouse_burning
Expand All @@ -506,7 +505,7 @@
visualType: Large
messages: [ "snail-hurt-by-salt-popup" ]
probability: 0.66

- type: entity
parent: MobSnail
id: MobSnailInstantDeath
Expand Down

0 comments on commit 2187aef

Please sign in to comment.