Files
OldThink/Content.Shared/_White/Chaplain/HolyWeaponSystem.cs
Aviu00 4ad5531d62 Нерф священника (#264)
* - remove: Nuke HolyComponent.

* - tweak: SuitStorage for weapons.

* - tweak: More slots for weapons.

* - tweak: Cult magic tweaks.

* - fix: Fix desc.
2024-04-03 20:04:08 +03:00

28 lines
783 B
C#

using System.Linq;
using Content.Shared.Examine;
using Content.Shared.Hands.EntitySystems;
namespace Content.Shared._White.Chaplain;
public sealed class HolyWeaponSystem : EntitySystem
{
[Dependency] private readonly SharedHandsSystem _hands = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<HolyWeaponComponent, ExaminedEvent>(OnExamined);
}
private void OnExamined(Entity<HolyWeaponComponent> ent, ref ExaminedEvent args)
{
args.PushMarkup("[color=lightblue]Данное оружие наделено священной силой.[/color]");
}
public bool IsHoldingHolyWeapon(EntityUid uid)
{
return _hands.EnumerateHeld(uid).Any(HasComp<HolyWeaponComponent>);
}
}