namespace Content.Shared.Paper;
///
/// A system that prevents those with the IlliterateComponent from writing on paper.
/// Has no effect on reading ability.
///
public sealed class BlockWritingSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent(OnPaperWriteAttempt);
}
private void OnPaperWriteAttempt(Entity entity, ref PaperWriteAttemptEvent args)
{
args.FailReason = entity.Comp.FailWriteMessage;
args.Cancelled = true;
}
}