let cyberpen edit stamped papers (#22457)

* let cyberpen edit stamped papers

* desc

* little more desc

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas 2023-12-13 21:33:31 +00:00 committed by Debug
parent 57ca36f7da
commit 746daef599
4 changed files with 8 additions and 2 deletions

View File

@ -100,7 +100,9 @@ namespace Content.Server.Paper
private void OnInteractUsing(EntityUid uid, PaperComponent paperComp, InteractUsingEvent args)
{
if (_tagSystem.HasTag(args.Used, "Write") && paperComp.StampedBy.Count == 0)
// only allow editing if there are no stamps or when using a cyberpen
var editable = paperComp.StampedBy.Count == 0 || _tagSystem.HasTag(args.Used, "WriteIgnoreStamps");
if (_tagSystem.HasTag(args.Used, "Write") && editable)
{
var writeEvent = new PaperWriteEvent(uid, args.User);
RaiseLocalEvent(args.Used, ref writeEvent);

View File

@ -267,7 +267,7 @@ uplink-clothing-outer-hardsuit-juggernaut-desc = Hyper resilient armor made of m
# Misc
uplink-cyberpen-name = Cybersun Pen
uplink-cyberpen-desc = Cybersun's legal department pen. Smells vaguely of hard-light and war profiteering.
uplink-cyberpen-desc = Cybersun's legal department pen, invaluable for forging documents and escaping prisons. Smells vaguely of hard-light and war profiteering.
uplink-decoy-disk-name = Decoy Nuclear Disk
uplink-decoy-disk-desc = A piece of plastic with a lenticular printing, made to look like a nuclear auth disk.

View File

@ -259,6 +259,7 @@
- type: Tag
tags:
- Write
- WriteIgnoreStamps
- Pickaxe
- type: Sprite
sprite: Objects/Misc/bureaucracy.rsi

View File

@ -1110,6 +1110,9 @@
- type: Tag
id: Write
- type: Tag
id: WriteIgnoreStamps
- type: Tag
id: RifleStock