diff --git a/code/modules/clothing/ears/antennae.dm b/code/modules/clothing/ears/antennae.dm index 49ac01ec471..1471bc3fef1 100644 --- a/code/modules/clothing/ears/antennae.dm +++ b/code/modules/clothing/ears/antennae.dm @@ -8,6 +8,31 @@ drop_sound = 'sound/items/drop/component.ogg' pickup_sound = 'sound/items/pickup/component.ogg' +/obj/item/clothing/ears/antenna/verb/lock_antennae() + set name = "Lock Antenna(e)" + set desc = "Lock your antenna(e) in place." + set category = "Object" + + if(!ishuman(usr)) + return + + var/mob/living/carbon/human/user = usr + + if(use_check_and_message(user)) + return + + if(!user.isSynthetic()) + to_chat(user, SPAN_WARNING("The locking mechanism refuses to work!")) + return + + if(user.r_ear != src && user.l_ear != src) + to_chat(user, SPAN_WARNING("Your antennae must be on your head for the locking mechanism to work.")) + return + + to_chat(user, SPAN_NOTICE("You [canremove ? "enable" : "disable"] the locking mechanism on your antennae.")) + playsound(user, canremove ? 'sound/machines/hatch_close.ogg' : 'sound/machines/hatch_open.ogg', 25) + canremove = !canremove + /obj/item/clothing/ears/antenna/curved name = "curved antennae" desc = "A set of decorative antennae. This particular pair is curved in the middle point, arcing upwards. Unfortunately, it doesn't get FM here." diff --git a/html/changelogs/mattatlas-kancollereference.yml b/html/changelogs/mattatlas-kancollereference.yml new file mode 100644 index 00000000000..a6835ffbcba --- /dev/null +++ b/html/changelogs/mattatlas-kancollereference.yml @@ -0,0 +1,41 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# wip (For works in progress) +# tweak +# soundadd +# sounddel +# rscadd (general adding of nice things) +# rscdel (general deleting of nice things) +# imageadd +# imagedel +# maptweak +# spellcheck (typo fixes) +# experiment +# balance +# admin +# backend +# security +# refactor +################################# + +# Your name. +author: MattAtlas + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries. +# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog. +changes: + - rscadd: "Antennae from the IPC Xenowear loadout can now be locked with the Lock Antenna verb, thus making them unremovable."