Add chemical scanning goggles (#18373)
* add chemical scanning goggles * add prototype and textures * .ftl stuff * add lathe, recipe, research stuff * missing description * emo review * remove static method + newlines --------- Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
This commit is contained in:
24
Content.Shared/Chemistry/SolutionScannerSystem.cs
Normal file
24
Content.Shared/Chemistry/SolutionScannerSystem.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Content.Shared.Chemistry.Components;
|
||||
using Content.Shared.Inventory;
|
||||
|
||||
namespace Content.Shared.Chemistry;
|
||||
|
||||
public sealed class SolutionScannerSystem : EntitySystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
SubscribeLocalEvent<SolutionScannerComponent, SolutionScanEvent>(OnSolutionScanAttempt);
|
||||
SubscribeLocalEvent<SolutionScannerComponent, InventoryRelayedEvent<SolutionScanEvent>>((e, c, ev) => OnSolutionScanAttempt(e, c, ev.Args));
|
||||
}
|
||||
|
||||
private void OnSolutionScanAttempt(EntityUid eid, SolutionScannerComponent component, SolutionScanEvent args)
|
||||
{
|
||||
args.CanScan = true;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class SolutionScanEvent : EntityEventArgs, IInventoryRelayEvent
|
||||
{
|
||||
public bool CanScan;
|
||||
public SlotFlags TargetSlots { get; } = SlotFlags.EYES;
|
||||
}
|
||||
Reference in New Issue
Block a user