Allow Flares to light cigarettes (#29476)

* Allow Flares to light cigarettes

* !IsHot check

* nicer looking(and I think the right way to do that...)

* heh, whoops

* Adds IgnitionEvent, IgnitionSource now functions as IsHot when Ignited

* Fixes + remove redundancy

* Hows this?

* press enter

Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>

* Flare is not forever hot anymore

* Formatting fixes

* Make IgnitionEvent readonly

---------

Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
This commit is contained in:
Cojoke
2024-07-01 16:14:38 -05:00
committed by GitHub
parent ed2789a0e4
commit fe7dbb42b3
4 changed files with 20 additions and 6 deletions

View File

@@ -0,0 +1,7 @@
namespace Content.Server.IgnitionSource;
/// <summary>
/// Raised in order to toggle the ignitionSourceComponent on an entity on or off
/// </summary>
[ByRefEvent]
public readonly record struct IgnitionEvent(bool Ignite = false);