From fd7d5976c526be9416e4bd0532d4a715cd6b1388 Mon Sep 17 00:00:00 2001 From: forest2001 <41653574+realforest2001@users.noreply.github.com> Date: Tue, 25 Jul 2023 00:17:24 +0100 Subject: [PATCH] Apply suggestions from code review I think it's ok Co-authored-by: harryob --- .../mob/living/carbon/human/species/yautja/_species.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/modules/mob/living/carbon/human/species/yautja/_species.dm b/code/modules/mob/living/carbon/human/species/yautja/_species.dm index dc6bdb1237df..bee3d4a3879a 100644 --- a/code/modules/mob/living/carbon/human/species/yautja/_species.dm +++ b/code/modules/mob/living/carbon/human/species/yautja/_species.dm @@ -261,14 +261,12 @@ if(!length(yautja_emotes)) var/list/emotes_to_add = list() for(var/datum/emote/living/carbon/human/yautja/emote as anything in subtypesof(/datum/emote/living/carbon/human/yautja)) - if(!initial(emote.key)) + if(!initial(emote.key) || initial(emote.no_panel) continue if(!(initial(emote.category) in yautja_categories)) yautja_categories += initial(emote.category) emotes_to_add += emote - /// I hate this method, but anything else I tried just seemed to make the whole UI blank. - emotes_to_add -= /datum/emote/living/carbon/human/yautja/species_sound/loudroar yautja_emotes = emotes_to_add /datum/yautja_emote_panel/proc/ui_interact(mob/user, datum/tgui/ui)