makes the character directory check to make sure the character is on the crew manifest before actually adding the character to the character directory

This commit is contained in:
deathride58
2018-08-15 15:28:24 -04:00
parent 87859c77af
commit 934b6da534

View File

@@ -15,8 +15,11 @@
if(C.prefs && !C.prefs.show_in_directory) if(C.prefs && !C.prefs.show_in_directory)
continue continue
if(ishuman(C.mob)) if(ishuman(C.mob))
curID++
var/mob/living/carbon/human/H = C.mob var/mob/living/carbon/human/H = C.mob
if(data_core && data_core.general)
if(!find_general_record("name", H.real_name))
continue
curID++
html += "<div class='block'>" html += "<div class='block'>"
html += "<h3 class='uiContent highlight' style='font-size:16px'>[H.real_name]</h3><br>" html += "<h3 class='uiContent highlight' style='font-size:16px'>[H.real_name]</h3><br>"
if(H.flavor_texts["general"]) if(H.flavor_texts["general"])