Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Aug 3, 2023
1 parent de6f8ca commit 3984ba5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions code/game/objects/items/storage/firstaid.dm
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,22 @@
..()
update_icon()

/obj/item/storage/pill_bottle/attack_hand(mob/user, mods)
if(loc != user)
return ..()

if(!mods || !mods["alt"])
return ..()

if(!ishuman(user))
return ..()

if(skilllock && !skillcheck(user, SKILL_MEDICAL, SKILL_MEDICAL_MEDIC))
error_idlock(user)
return FALSE

return ..()

/obj/item/storage/pill_bottle/proc/error_idlock(mob/user)
to_chat(user, SPAN_WARNING("It must have some kind of ID lock..."))

Expand Down

0 comments on commit 3984ba5

Please sign in to comment.