From a198e522e6efd1b22daf92e3ca1b1805401e6926 Mon Sep 17 00:00:00 2001 From: Julien Date: Mon, 31 Jul 2023 20:15:43 +0200 Subject: [PATCH] added a skill check to operate IV because drulikar ask for it. --- code/game/machinery/iv_drip.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/game/machinery/iv_drip.dm b/code/game/machinery/iv_drip.dm index feda5c81f68c..cd7123a6b66b 100644 --- a/code/game/machinery/iv_drip.dm +++ b/code/game/machinery/iv_drip.dm @@ -47,6 +47,7 @@ else if(!QDELETED(src) && attached) current_beam = beam(attached, "iv_tube") +//probably need to comment it out.... /obj/structure/machinery/iv_drip/power_change() . = ..() if(stat & NOPOWER && attached) @@ -72,6 +73,10 @@ if(H.stat || get_dist(H, src) > 1 || H.blinded || H.lying) return + if(!skillcheck(user, SKILL_SURGERY, SKILL_SURGERY_NOVICE)) + to_chat(user, SPAN_WARNING("You don't know how to connect this!")) + return + if(attached) H.visible_message("[H] detaches \the [src] from \the [attached].", \ "You detach \the [src] from \the [attached].")