From 995fe5877ee8ce671cfefc731f8a636b07501b55 Mon Sep 17 00:00:00 2001 From: Stokes52 <73205477+Stokes52@users.noreply.github.com> Date: Wed, 26 May 2021 13:00:14 -0700 Subject: [PATCH] Apply suggestions from code review: Cleaner if statement Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com> --- code/modules/clothing/masks/miscellaneous.dm | 2 +- code/modules/clothing/masks/voicemodulator.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/clothing/masks/miscellaneous.dm b/code/modules/clothing/masks/miscellaneous.dm index a49b3f7a415..cb2b402b2a2 100644 --- a/code/modules/clothing/masks/miscellaneous.dm +++ b/code/modules/clothing/masks/miscellaneous.dm @@ -348,7 +348,7 @@ user.real_name = originalname /obj/item/clothing/mask/horsehead/change_speech_verb() - if (voicechange == TRUE) + if(voicechange) return pick("whinnies", "neighs", "says") /obj/item/clothing/mask/face diff --git a/code/modules/clothing/masks/voicemodulator.dm b/code/modules/clothing/masks/voicemodulator.dm index 60d9d61d0f8..c05a17aeab1 100644 --- a/code/modules/clothing/masks/voicemodulator.dm +++ b/code/modules/clothing/masks/voicemodulator.dm @@ -40,5 +40,5 @@ chameleon_action.emp_randomise() /obj/item/clothing/mask/gas/voice_modulator/change_speech_verb() - if (voice_modulator.active) + if(voice_modulator.active) return pick("modulates", "drones", "hums", "buzzes")