Implement fixes to modulator mask from code review

This commit is contained in:
Stokes52
2021-09-19 07:42:54 -07:00
parent 4942ef2444
commit 9160dfa3fe
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1179,7 +1179,7 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
desc = "A syndicate tactical mask equipped with chameleon technology and a sound modulator for disguising your voice. \
While the mask is active, your voice will sound unrecognizable to others"
reference = "CVMM"
item = /obj/item/clothing/mask/gas/voice_modulator
item = /obj/item/clothing/mask/gas/voice_modulator/chameleon
cost = 1
excludefrom = list(/datum/game_mode/nuclear)
+4 -4
View File
@@ -166,10 +166,10 @@
verb = "yells loudly"
if(istype(wear_mask, /obj/item/clothing/mask/gas/voice_modulator))
var/obj/item/voice_changer/changer = locate() in wear_mask
if (!changer.active)
continue
verb = pick("modulates", "drones", "hums", "buzzes")
var/obj/item/clothing/mask/gas/voice_modulator/VM = wear_mask
var/obj/item/voice_changer/changer = VM.voice_modulator
if (changer.active)
verb = pick("modulates", "drones", "hums", "buzzes")
if(span)
S.message = "<span class='[span]'>[S.message]</span>"