diff --git a/code/modules/client/preference/preferences.dm b/code/modules/client/preference/preferences.dm index ae66958c4cf..800022877f7 100644 --- a/code/modules/client/preference/preferences.dm +++ b/code/modules/client/preference/preferences.dm @@ -398,6 +398,8 @@ GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts organ_name = "right hand" if("eyes") organ_name = "eyes" + if("ears") + organ_name = "ears" if("heart") organ_name = "heart" if("lungs") @@ -1901,7 +1903,7 @@ GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts rlimb_data[second_limb] = choice organ_data[second_limb] = "cyborg" if("organs") - var/organ_name = input(user, "Which internal function do you want to change?") as null|anything in list("Eyes", "Heart", "Lungs", "Liver", "Kidneys") + var/organ_name = input(user, "Which internal function do you want to change?") as null|anything in list("Eyes", "Ears", "Heart", "Lungs", "Liver", "Kidneys") if(!organ_name) return @@ -1909,6 +1911,8 @@ GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts switch(organ_name) if("Eyes") organ = "eyes" + if("Ears") + organ = "ears" if("Heart") organ = "heart" if("Lungs") diff --git a/code/modules/research/designs/medical_designs.dm b/code/modules/research/designs/medical_designs.dm index 98a181bcdf8..e3bbb2f4aec 100644 --- a/code/modules/research/designs/medical_designs.dm +++ b/code/modules/research/designs/medical_designs.dm @@ -512,6 +512,17 @@ build_path = /obj/item/organ/internal/eyes/cybernetic category = list("Medical") +/datum/design/cybernetic_ears + name = "Cybernetic Ears" + desc = "A cybernetic pair of ears" + id = "cybernetic_ears" + req_tech = list("biotech" = 4, "materials" = 4) + build_type = PROTOLATHE | MECHFAB + materials = list(MAT_METAL = 500, MAT_GLASS = 500) + construction_time = 60 + build_path = /obj/item/organ/internal/ears/cybernetic + category = list("Medical") + /datum/design/cybernetic_liver name = "Cybernetic Liver" desc = "A cybernetic liver" diff --git a/code/modules/surgery/organs/ears.dm b/code/modules/surgery/organs/ears.dm index 4f23bf18243..02b788eb7a5 100644 --- a/code/modules/surgery/organs/ears.dm +++ b/code/modules/surgery/organs/ears.dm @@ -35,7 +35,7 @@ /obj/item/organ/internal/ears/proc/RestoreEars() deaf = 0 ear_damage = 0 - + var/mob/living/carbon/C = owner if(istype(C) && C.disabilities & DEAF) deaf = 1 @@ -66,3 +66,15 @@ if(ears) ears.MinimumDeafTicks(value) +/obj/item/organ/internal/ears/cybernetic + name = "cybernetic ears" + icon_state = "ears-c" + desc = "a basic cybernetic designed to mimic the operation of ears." + origin_tech = "biotech=4" + status = ORGAN_ROBOT + +/obj/item/organ/internal/ears/cybernetic/emp_act(severity) + if(emp_proof) + return + ..() + AdjustEarDamage(30, 120) diff --git a/code/modules/surgery/organs/eyes.dm b/code/modules/surgery/organs/eyes.dm index eca4bb8a831..e2b70207532 100644 --- a/code/modules/surgery/organs/eyes.dm +++ b/code/modules/surgery/organs/eyes.dm @@ -75,7 +75,7 @@ /obj/item/organ/internal/eyes/cybernetic name = "cybernetic eyes" - icon_state = "eyes-prosthetic" + icon_state = "eyes-c" desc = "An electronic device designed to mimic the functions of a pair of human eyes. It has no benefits over organic eyes, but is easy to produce." origin_tech = "biotech=4" status = ORGAN_ROBOT diff --git a/icons/obj/surgery.dmi b/icons/obj/surgery.dmi index 20a27b2781c..eb3901077b9 100644 Binary files a/icons/obj/surgery.dmi and b/icons/obj/surgery.dmi differ