Incediary Shells (#6208)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
ScalyChimp
2022-01-30 13:44:45 +00:00
committed by GitHub
parent 45c0862394
commit 004c678853
10 changed files with 107 additions and 5 deletions

View File

@@ -49,6 +49,15 @@ namespace Content.Server.Atmos.EntitySystems
SubscribeLocalEvent<FlammableComponent, StartCollideEvent>(OnCollideEvent);
SubscribeLocalEvent<FlammableComponent, IsHotEvent>(OnIsHotEvent);
SubscribeLocalEvent<FlammableComponent, TileFireEvent>(OnTileFireEvent);
SubscribeLocalEvent<IgniteOnCollideComponent, StartCollideEvent>(IgniteOnCollide);
}
private void IgniteOnCollide(EntityUid uid, IgniteOnCollideComponent component, StartCollideEvent args)
{
var otherfixture = args.OtherFixture.Body.Owner;
if (EntityManager.TryGetComponent(otherfixture, out FlammableComponent flammable))
flammable.FireStacks += component.FireStacks;
Ignite(otherfixture, flammable);
}
private void OnInteractUsingEvent(EntityUid uid, FlammableComponent flammable, InteractUsingEvent args)