Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
I think it's ok

Co-authored-by: harryob <[email protected]>
  • Loading branch information
realforest2001 and harryob authored Jul 24, 2023
1 parent f4af5ac commit fd7d597
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fd7d597

Please sign in to comment.