mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 21:40:55 +01:00
Adds Deksers custom augment (#12615)
This commit is contained in:
@@ -168,6 +168,7 @@
|
||||
#define BP_AUG_SIGHTLIGHTS "ocular installed sightlights"
|
||||
#define BP_AUG_CORRECTIVE_LENS "corrective lenses"
|
||||
#define BP_AUG_GLARE_DAMPENER "glare dampeners"
|
||||
#define BP_AUG_ACC_CORDS "modified synthetic vocal cords"
|
||||
|
||||
//Organ defines
|
||||
#define PROCESS_ACCURACY 10
|
||||
|
||||
@@ -2317,3 +2317,7 @@ All custom items with worn sprites must follow the contained sprite system: http
|
||||
item_state = "ulzka_skull"
|
||||
canremove = FALSE
|
||||
contained_sprite = TRUE
|
||||
|
||||
/obj/item/organ/internal/augment/synthetic_cords/voice/fluff/marc //Old Synthetic Vocal Cords - Marc Hardy - Dekser
|
||||
name = "old synthetic vocal cords"
|
||||
desc = "A set of Old Age Synthetic Vocal Cords. They look barely functional."
|
||||
@@ -2012,6 +2012,10 @@
|
||||
if(rig.speech && rig.speech.voice_holder && rig.speech.voice_holder.active && rig.speech.voice_holder.current_accent)
|
||||
used_accent = rig.speech.voice_holder.current_accent
|
||||
|
||||
var/obj/item/organ/internal/augment/synthetic_cords/voice/aug = internal_organs_by_name[BP_AUG_ACC_CORDS] //checks for augments, thanks grey
|
||||
if(aug)
|
||||
used_accent = aug.accent
|
||||
|
||||
for(var/obj/item/gear in list(wear_mask,wear_suit,head)) //checks for voice changers masks now
|
||||
if(gear)
|
||||
var/obj/item/voice_changer/changer = locate() in gear
|
||||
|
||||
@@ -445,6 +445,11 @@
|
||||
organ_tag = BP_AUG_CORDS
|
||||
parent_organ = BP_HEAD
|
||||
|
||||
/obj/item/organ/internal/augment/synthetic_cords/voice
|
||||
desc = "An array of vocal cords. These appears to have been modified with a specific accent."
|
||||
organ_tag = BP_AUG_ACC_CORDS
|
||||
var/accent = ACCENT_TTS
|
||||
|
||||
/obj/item/organ/internal/augment/synthetic_cords/replaced(var/mob/living/carbon/human/target, obj/item/organ/external/affected)
|
||||
. = ..()
|
||||
target.sdisabilities &= ~MUTE
|
||||
|
||||
Reference in New Issue
Block a user