mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Magic Mirror (#27356)
* adds the magic mirror and cleans up some appearance pick code * no more ERT runtimes * Fixes ERT runtimes * hopefully fixes horizon conflicts * fixes indentation problem plsplsplstravis * changes some of the alert/input procs to use src * hopefully unfucks things * changes magic mirror alert to an input * fixes ERT runtimes again * removes an unused list in appearance picking code Co-authored-by: SonixApache <soniixapache@hotmail.com>
This commit is contained in:
@@ -805,49 +805,8 @@ var/list/admin_verbs_mod = list(
|
||||
switch(alert("Are you sure you wish to edit this mob's appearance? Skrell, Unathi, Vox and Tajaran can result in unintended consequences.",,"Yes","No"))
|
||||
if("No")
|
||||
return
|
||||
var/new_facial = input("Please select facial hair color.", "Character Generation") as color
|
||||
if(new_facial)
|
||||
M.my_appearance.r_facial = hex2num(copytext(new_facial, 2, 4))
|
||||
M.my_appearance.g_facial = hex2num(copytext(new_facial, 4, 6))
|
||||
M.my_appearance.b_facial = hex2num(copytext(new_facial, 6, 8))
|
||||
|
||||
var/new_hair = input("Please select hair color.", "Character Generation") as color
|
||||
if(new_facial)
|
||||
M.my_appearance.r_hair = hex2num(copytext(new_hair, 2, 4))
|
||||
M.my_appearance.g_hair = hex2num(copytext(new_hair, 4, 6))
|
||||
M.my_appearance.b_hair = hex2num(copytext(new_hair, 6, 8))
|
||||
|
||||
var/new_eyes = input("Please select eye color.", "Character Generation") as color
|
||||
if(new_eyes)
|
||||
M.my_appearance.r_eyes = hex2num(copytext(new_eyes, 2, 4))
|
||||
M.my_appearance.g_eyes = hex2num(copytext(new_eyes, 4, 6))
|
||||
M.my_appearance.b_eyes = hex2num(copytext(new_eyes, 6, 8))
|
||||
|
||||
var/new_tone = input("Please select skin tone level: 1-220 (1=albino, 35=caucasian, 150=black, 220='very' black)", "Character Generation") as text
|
||||
|
||||
if (new_tone)
|
||||
M.my_appearance.s_tone = max(min(round(text2num(new_tone)), 220), 1)
|
||||
M.my_appearance.s_tone = -M.my_appearance.s_tone + 35
|
||||
|
||||
// hair
|
||||
var/new_hstyle = input(usr, "Select a hair style", "Grooming") as null|anything in hair_styles_list
|
||||
if(new_hstyle)
|
||||
M.my_appearance.h_style = new_hstyle
|
||||
|
||||
// facial hair
|
||||
var/new_fstyle = input(usr, "Select a facial hair style", "Grooming") as null|anything in facial_hair_styles_list
|
||||
if(new_fstyle)
|
||||
M.my_appearance.f_style = new_fstyle
|
||||
|
||||
var/new_gender = alert(usr, "Please select gender.", "Character Generation", "Male", "Female")
|
||||
if (new_gender)
|
||||
if(new_gender == "Male")
|
||||
M.setGender(MALE)
|
||||
else
|
||||
M.setGender(FEMALE)
|
||||
M.update_hair()
|
||||
M.update_body()
|
||||
M.check_dna(M)
|
||||
M.pick_gender(usr)
|
||||
M.pick_appearance(usr)
|
||||
|
||||
/client/proc/playernotes()
|
||||
set name = "Show Player Notes"
|
||||
|
||||
Reference in New Issue
Block a user