Skip to content

Commit

Permalink
Fix debug v2 (#449)
Browse files Browse the repository at this point in the history
Может поможет
А может и нет

no cl, no fun
  • Loading branch information
FaDeOkno authored Sep 10, 2024
1 parent 831da0b commit 97e986f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Content.Server/ADT/Shadekin/ShadekinSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public override void Initialize()

SubscribeLocalEvent<ShadekinComponent, ShadekinTeleportActionEvent>(OnTeleport);
SubscribeLocalEvent<ShadekinComponent, ExaminedEvent>(OnExamine);
SubscribeLocalEvent<ShadekinComponent, ComponentInit>(OnMapInit);
SubscribeLocalEvent<ShadekinComponent, ComponentInit>(OnInit);
SubscribeLocalEvent<ShadekinComponent, ComponentShutdown>(OnShutdown);

SubscribeLocalEvent<ShadekinComponent, HumanoidProfileLoadedEvent>(OnProfileLoaded);
SubscribeLocalEvent<ShadekinComponent, MapInitEvent>(OnMapInit);
}

public override void Update(float frameTime)
Expand Down Expand Up @@ -84,7 +84,7 @@ public override void Update(float frameTime)
}
}

private void OnMapInit(EntityUid uid, ShadekinComponent comp, ComponentInit args)
private void OnInit(EntityUid uid, ShadekinComponent comp, ComponentInit args)
{
_alert.ShowAlert(uid, _proto.Index<AlertPrototype>("ShadekinPower"), (short) Math.Clamp(Math.Round(comp.PowerLevel / 50f), 0, 4));
}
Expand All @@ -96,7 +96,7 @@ private void OnShutdown(EntityUid uid, ShadekinComponent comp, ComponentShutdown
_action.RemoveAction(uid, comp.ActionEntity);
}

private void OnProfileLoaded(EntityUid uid, ShadekinComponent comp, ref HumanoidProfileLoadedEvent args)
private void OnMapInit(EntityUid uid, ShadekinComponent comp, MapInitEvent args)
{
// if ( // Оно очень странно получается, работает только при позднем подключении
// args.Profile.Appearance.EyeColor.B < 100f &&
Expand Down

0 comments on commit 97e986f

Please sign in to comment.