From 1c8dbc578883a1832104ec44126bdeebdb18b984 Mon Sep 17 00:00:00 2001 From: DreamySkrell <107256943+DreamySkrell@users.noreply.github.com> Date: Sun, 9 Oct 2022 17:53:31 +0200 Subject: [PATCH] Psionics firing pin (#14545) --- code/modules/projectiles/pins.dm | 12 ++++++++++++ html/changelogs/DreamySkrell-PR-14545.yml | 6 ++++++ 2 files changed, 18 insertions(+) create mode 100644 html/changelogs/DreamySkrell-PR-14545.yml diff --git a/code/modules/projectiles/pins.dm b/code/modules/projectiles/pins.dm index e6a2917a928..1201ae24b2e 100644 --- a/code/modules/projectiles/pins.dm +++ b/code/modules/projectiles/pins.dm @@ -105,6 +105,18 @@ Pins Below. else return 0 +// Psionics pin, checks for psionics (psi aug not included) +/obj/item/device/firing_pin/psionic + name = "psionics firing pin" + desc = "This is a psionics-locked firing pin which only authorizes users who are capable of psionics." + fail_message = "PSIONICS CHECK FAILED." + +/obj/item/device/firing_pin/psionic/pin_auth(mob/living/user) + if(user.can_commune()) + return 1 + else + return 0 + // Implant pin, checks for implant /obj/item/device/firing_pin/implant name = "implant-keyed firing pin" diff --git a/html/changelogs/DreamySkrell-PR-14545.yml b/html/changelogs/DreamySkrell-PR-14545.yml new file mode 100644 index 00000000000..0c3fb9f25d5 --- /dev/null +++ b/html/changelogs/DreamySkrell-PR-14545.yml @@ -0,0 +1,6 @@ +author: DreamySkrell + +delete-after: True + +changes: + - rscadd: "Adds a psionics firing pin. Fires only if the user is capable of psionics."