Revert "Added Kill Tome (Death Note). (#39011)"
This reverts commit d0c104e4b0.
Revert suggested due to code issues and passed the voting.
@ScarKy0 has interest in fixing it
@xsainteer
<https://youtu.be/8RmeZKz-i_w?t=2151>
This commit is contained in:
@@ -187,7 +187,6 @@ public sealed class PaperSystem : EntitySystem
|
||||
{
|
||||
var ev = new PaperWriteAttemptEvent(entity.Owner);
|
||||
RaiseLocalEvent(args.Actor, ref ev);
|
||||
|
||||
if (ev.Cancelled)
|
||||
return;
|
||||
|
||||
@@ -212,9 +211,6 @@ public sealed class PaperSystem : EntitySystem
|
||||
|
||||
entity.Comp.Mode = PaperAction.Read;
|
||||
UpdateUserInterface(entity);
|
||||
|
||||
var writeAfterEv = new PaperAfterWriteEvent(args.Actor);
|
||||
RaiseLocalEvent(entity.Owner, ref writeAfterEv);
|
||||
}
|
||||
|
||||
private void OnRandomPaperContentMapInit(Entity<RandomPaperContentComponent> ent, ref MapInitEvent args)
|
||||
@@ -323,14 +319,6 @@ public record struct PaperWriteEvent(EntityUid User, EntityUid Paper);
|
||||
/// <summary>
|
||||
/// Cancellable event for attempting to write on a piece of paper.
|
||||
/// </summary>
|
||||
/// <param name="Paper">The paper that the writing will take place on.</param>
|
||||
/// <param name="paper">The paper that the writing will take place on.</param>
|
||||
[ByRefEvent]
|
||||
public record struct PaperWriteAttemptEvent(EntityUid Paper, string? FailReason = null, bool Cancelled = false);
|
||||
|
||||
/// <summary>
|
||||
/// Event raised on paper after it was written on by someone.
|
||||
/// </summary>
|
||||
/// <param name="Actor">Entity that wrote something on the paper.</param>
|
||||
[ByRefEvent]
|
||||
public readonly record struct PaperAfterWriteEvent(EntityUid Actor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user