Skip to content

Commit

Permalink
added a skill check to operate IV because
Browse files Browse the repository at this point in the history
drulikar ask for it.
  • Loading branch information
Julien committed Jul 31, 2023
1 parent b165dc1 commit a198e52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/game/machinery/iv_drip.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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))

Check failure on line 76 in code/game/machinery/iv_drip.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "user"

Check warning on line 76 in code/game/machinery/iv_drip.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "skills"

Check failure on line 76 in code/game/machinery/iv_drip.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "user"

Check warning on line 76 in code/game/machinery/iv_drip.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "skills"

Check warning on line 76 in code/game/machinery/iv_drip.dm

View workflow job for this annotation

GitHub Actions / Run Linters

proc call requires static type: "is_skilled"
to_chat(user, SPAN_WARNING("You don't know how to connect this!"))

Check failure on line 77 in code/game/machinery/iv_drip.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "user"
return

if(attached)
H.visible_message("[H] detaches \the [src] from \the [attached].", \
"You detach \the [src] from \the [attached].")
Expand Down

0 comments on commit a198e52

Please sign in to comment.