Solution spiking (#8984)

This commit is contained in:
Flipp Syder
2022-06-23 19:26:54 -07:00
committed by GitHub
parent f71a4a1f23
commit 25869cd501
7 changed files with 148 additions and 2 deletions

View File

@@ -33,6 +33,17 @@ public sealed class SpillableSystem : EntitySystem
SubscribeLocalEvent<SpillableComponent, LandEvent>(SpillOnLand);
SubscribeLocalEvent<SpillableComponent, GetVerbsEvent<Verb>>(AddSpillVerb);
SubscribeLocalEvent<SpillableComponent, GotEquippedEvent>(OnGotEquipped);
SubscribeLocalEvent<SpillableComponent, SolutionSpikeOverflowEvent>(OnSpikeOverflow);
}
private void OnSpikeOverflow(EntityUid uid, SpillableComponent component, SolutionSpikeOverflowEvent args)
{
if (!args.Handled)
{
SpillAt(args.Overflow, Transform(uid).Coordinates, "PuddleSmear");
}
args.Handled = true;
}
private void OnGotEquipped(EntityUid uid, SpillableComponent component, GotEquippedEvent args)