mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 16:17:27 +00:00
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
25 lines
653 B
C#
25 lines
653 B
C#
using Content.Server.Paper;
|
|
|
|
namespace Content.Server.Nuke
|
|
{
|
|
public sealed class NukeCodePaperSystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly NukeCodeSystem _codes = default!;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
SubscribeLocalEvent<NukeCodePaperComponent, MapInitEvent>(OnMapInit);
|
|
}
|
|
|
|
private void OnMapInit(EntityUid uid, NukeCodePaperComponent component, MapInitEvent args)
|
|
{
|
|
PaperComponent? paper = null;
|
|
if (!Resolve(uid, ref paper))
|
|
return;
|
|
|
|
paper.Content += _codes.Code;
|
|
}
|
|
}
|
|
}
|