using Content.Shared.Examine; using Content.Shared.Ghost; using Content.Shared.Weapons.Melee.Events; namespace Content.Shared._White.Chaplain; public sealed class HolyWeaponSystem : EntitySystem { public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnExamined); SubscribeLocalEvent(OnMeleeAttempt); } private void OnMeleeAttempt(Entity ent, ref AttemptMeleeEvent args) { if (HasComp(args.User) || HasComp(args.User)) return; args.Cancelled = true; args.Message = $"Вам не хватает веры, чтобы использовать {Name(ent)}"; } private void OnExamined(Entity ent, ref ExaminedEvent args) { args.PushMarkup("[color=lightblue]Данное оружие наделено священной силой.[/color]"); } }