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:
parent
57ca36f7da
commit
746daef599
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -259,6 +259,7 @@
|
|||
- type: Tag
|
||||
tags:
|
||||
- Write
|
||||
- WriteIgnoreStamps
|
||||
- Pickaxe
|
||||
- type: Sprite
|
||||
sprite: Objects/Misc/bureaucracy.rsi
|
||||
|
|
|
|||
|
|
@ -1110,6 +1110,9 @@
|
|||
- type: Tag
|
||||
id: Write
|
||||
|
||||
- type: Tag
|
||||
id: WriteIgnoreStamps
|
||||
|
||||
- type: Tag
|
||||
id: RifleStock
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue