mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-30 19:41:56 +00:00
Fixes #4044 Fixes #4064 Spawned humans now have DNA, along with a randomized appearance and name, making them similar to monkeys turned into humans. Strip panel is now more organized and doesn't have any duplicated lines.
23 lines
909 B
Plaintext
23 lines
909 B
Plaintext
/var/create_mob_html = null
|
|
/datum/admins/proc/create_mob(var/mob/user)
|
|
if (!create_mob_html)
|
|
var/mobjs = null
|
|
mobjs = list2text(typesof(/mob), ";")
|
|
create_mob_html = file2text('html/create_object.html')
|
|
create_mob_html = replacetext(create_mob_html, "null /* object types */", "\"[mobjs]\"")
|
|
|
|
user << browse(replacetext(create_mob_html, "/* ref src */", "\ref[src]"), "window=create_mob;size=425x475")
|
|
|
|
/proc/randomize_human(mob/living/carbon/human/H)
|
|
H.gender = pick(MALE, FEMALE)
|
|
H.real_name = random_name(H.gender)
|
|
H.name = H.real_name
|
|
H.dna.generate_uni_identity(H)
|
|
H.underwear = random_underwear(H.gender)
|
|
H.skin_tone = random_skin_tone()
|
|
H.hair_style = random_hair_style(H.gender)
|
|
H.facial_hair_style = random_facial_hair_style(H.gender)
|
|
H.hair_color = random_short_color()
|
|
H.facial_hair_color = H.hair_color
|
|
H.eye_color = random_eye_color()
|
|
H.update_icons() |