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
+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>"