mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 08:37:26 +00:00
* add codersprite * add code for upgrade kits * add upgrade kits * add recipes for upgrade kits to industrial engineering * disable funny recipes * remove RE * fuck it make it a warning --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
22 lines
514 B
C#
22 lines
514 B
C#
using Content.Shared.Examine;
|
|
|
|
namespace Content.Shared._DV.Construction;
|
|
|
|
public sealed class UpgradedMachineSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<UpgradedMachineComponent, ExaminedEvent>(OnExamined);
|
|
}
|
|
|
|
private void OnExamined(Entity<UpgradedMachineComponent> ent, ref ExaminedEvent args)
|
|
{
|
|
if (!args.IsInDetailsRange)
|
|
return;
|
|
|
|
args.PushMarkup(Loc.GetString(ent.Comp.Upgrade));
|
|
}
|
|
}
|