mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
Commit for Nodrak.
See: http://nanotrasen.com/phpBB3/viewtopic.php?f=16&t=8107#p96230 for changelist. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3307 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -1265,7 +1265,7 @@
|
||||
stand_icon.Blend(rgb(-s_tone, -s_tone, -s_tone), ICON_SUBTRACT)
|
||||
lying_icon.Blend(rgb(-s_tone, -s_tone, -s_tone), ICON_SUBTRACT)
|
||||
|
||||
if (underwear > 0)
|
||||
if (underwear < 6 && underwear > 0)
|
||||
if(!obese)
|
||||
stand_icon.Blend(new /icon('human.dmi', "underwear[underwear]_[g]_s"), ICON_OVERLAY)
|
||||
lying_icon.Blend(new /icon('human.dmi', "underwear[underwear]_[g]_l"), ICON_OVERLAY)
|
||||
|
||||
@@ -170,6 +170,7 @@
|
||||
var/logged_in = 0
|
||||
|
||||
var/underwear = 1//Human
|
||||
var/backbag = 2//Human
|
||||
var/be_syndicate = 0//This really should be a client variable.
|
||||
var/be_random_name = 0
|
||||
var/const/blindness = 1//Carbon
|
||||
|
||||
@@ -60,6 +60,10 @@ datum/preferences
|
||||
//Just like it sounds
|
||||
ooccolor = "#b82e00"
|
||||
underwear = 1
|
||||
list/underwear_m = list("White", "Grey", "Green", "Blue", "Black", "None") //Curse whoever made male/female underwear diffrent colours
|
||||
list/underwear_f = list("Red", "White", "Yellow", "Blue", "Black", "None")
|
||||
backbag = 2
|
||||
list/backbaglist = list("Nothing", "Backpack", "Satchel")
|
||||
|
||||
//Hair type
|
||||
h_style = "Short Hair"
|
||||
@@ -106,6 +110,8 @@ datum/preferences
|
||||
job_engsec_low = 0
|
||||
|
||||
|
||||
|
||||
|
||||
New()
|
||||
hair_style = new/datum/sprite_accessory/hair/short
|
||||
facial_hair_style = new/datum/sprite_accessory/facial_hair/shaved
|
||||
@@ -117,7 +123,6 @@ datum/preferences
|
||||
update_preview_icon()
|
||||
user << browse_rsc(preview_icon_front, "previewicon.png")
|
||||
user << browse_rsc(preview_icon_side, "previewicon2.png")
|
||||
|
||||
var/dat = "<html><body>"
|
||||
dat += "<b>Name:</b> "
|
||||
dat += "<a href=\"byond://?src=\ref[user];preferences=1;real_name=input\"><b>[real_name]</b></a> "
|
||||
@@ -141,13 +146,19 @@ datum/preferences
|
||||
dat += "\t<a href=\"byond://?src=\ref[user];preferences=1;occ=1\"><b>Set Preferences</b></a><br>"
|
||||
|
||||
dat += "<hr><table><tr><td><b>Body</b> "
|
||||
dat += "(<a href=\"byond://?src=\ref[user];preferences=1;s_tone=random;underwear=random;age=random;b_type=random;hair=random;h_style=random;facial=random;f_style=random;eyes=random\">®</A>)" // Random look
|
||||
dat += "(<a href=\"byond://?src=\ref[user];preferences=1;s_tone=random;underwear=random;backbag_type=random;age=random;b_type=random;hair=random;h_style=random;facial=random;f_style=random;eyes=random\">®</A>)" // Random look
|
||||
dat += "<br>"
|
||||
dat += "Blood Type: <a href='byond://?src=\ref[user];preferences=1;b_type=input'>[b_type]</a><br>"
|
||||
dat += "Skin Tone: <a href='byond://?src=\ref[user];preferences=1;s_tone=input'>[-s_tone + 35]/220<br></a>"
|
||||
|
||||
// if(!IsGuestKey(user.key))//Seeing as it doesn't do anything, it may as well not show up.
|
||||
// dat += "Underwear: <a href =\"byond://?src=\ref[user];preferences=1;underwear=1\"><b>[underwear == 1 ? "Yes" : "No"]</b></a><br>"
|
||||
if(gender == MALE)
|
||||
dat += "Underwear: <a href =\"byond://?src=\ref[user];preferences=1;underwear=inputmale\"><b>[underwear_m[underwear]]</b></a><br>"
|
||||
else
|
||||
dat += "Underwear: <a href =\"byond://?src=\ref[user];preferences=1;underwear=inputfemale\"><b>[underwear_f[underwear]]</b></a><br>"
|
||||
|
||||
dat += "Backpack Type:<br><a href =\"byond://?src=\ref[user];preferences=1;backbag_type=input\"><b>[backbaglist[backbag]]</b></a><br>"
|
||||
|
||||
dat += "</td><td><b>Preview</b><br><img src=previewicon.png height=64 width=64><img src=previewicon2.png height=64 width=64></td></tr></table>" //Carn: Now with profile!
|
||||
|
||||
dat += "<hr><b>Hair</b><br>"
|
||||
@@ -548,18 +559,30 @@ datum/preferences
|
||||
ghost_ears = !ghost_ears
|
||||
|
||||
if(link_tags["underwear"])
|
||||
if(!IsGuestKey(user.key))
|
||||
switch(link_tags["underwear"])
|
||||
if("random")
|
||||
if(prob (75))
|
||||
underwear = 1
|
||||
else
|
||||
underwear = 0
|
||||
if("input")
|
||||
if(underwear == 1)
|
||||
underwear = 0
|
||||
else
|
||||
underwear = 1
|
||||
switch(link_tags["underwear"])
|
||||
if("inputmale")
|
||||
var/tempUnderwear = input(user, "Please select your underwear colour:", "Character Generation") as null|anything in underwear_m
|
||||
if(tempUnderwear)
|
||||
underwear = underwear_m.Find(tempUnderwear)
|
||||
if("inputfemale")
|
||||
var/tempUnderwear = input(user, "Please select your underwear colour:", "Character Generation") as null|anything in underwear_f
|
||||
if(tempUnderwear)
|
||||
underwear = underwear_f.Find(tempUnderwear)
|
||||
if("random")
|
||||
if(prob (75))
|
||||
underwear = pick(1,2,3,4,5)
|
||||
else
|
||||
underwear = 6
|
||||
|
||||
if(link_tags["backbag_type"])
|
||||
switch(link_tags["backbag_type"])
|
||||
if("input")
|
||||
var/tempBag = input(user, "Please pick a backpack type:", "Character Generation") as null|anything in backbaglist
|
||||
if(tempBag)
|
||||
backbag = backbaglist.Find(tempBag)
|
||||
if("random")
|
||||
backbag = pick(1,2,3)
|
||||
|
||||
|
||||
if(link_tags["be_special"])
|
||||
src.be_special^=(1<<text2num(link_tags["be_special"])) //bitwize magic, sorry for that. --rastaf0
|
||||
@@ -590,6 +613,7 @@ datum/preferences
|
||||
job_engsec_med = 0
|
||||
job_engsec_low = 0
|
||||
underwear = 1
|
||||
backbag = 2
|
||||
be_special = 0
|
||||
be_random_name = 0
|
||||
r_hair = 0.0
|
||||
@@ -647,7 +671,13 @@ datum/preferences
|
||||
character.hair_style = hair_style
|
||||
character.facial_hair_style = facial_hair_style
|
||||
|
||||
character.underwear = underwear == 1 ? pick(1,2,3,4,5) : 0
|
||||
if(underwear > 5 || underwear < 1)
|
||||
underwear = 1 //I'm sure this is 100% unnecessary, but I'm paranoid... sue me.
|
||||
character.underwear = underwear
|
||||
|
||||
if(backbag > 3 || backbag < 1)
|
||||
backbag = 1 //Same as above
|
||||
character.backbag = backbag
|
||||
|
||||
character.update_face()
|
||||
character.update_body()
|
||||
|
||||
@@ -13,6 +13,7 @@ datum/preferences
|
||||
randomize_hair_color("facial")
|
||||
randomize_eyes_color()
|
||||
underwear = 1
|
||||
backbag = 2
|
||||
b_type = pick("A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-")
|
||||
age = rand(19,35)
|
||||
copy_to(H,1)
|
||||
@@ -218,7 +219,7 @@ datum/preferences
|
||||
else
|
||||
preview_icon.Blend(rgb(-s_tone, -s_tone, -s_tone), ICON_SUBTRACT)
|
||||
|
||||
if (underwear > 0)
|
||||
if (underwear < 6)
|
||||
preview_icon.Blend(new /icon('human.dmi', "underwear[underwear]_[g]_s"), ICON_OVERLAY)
|
||||
|
||||
var/icon/eyes_s = new/icon("icon" = 'human_face.dmi', "icon_state" = "eyes_s")
|
||||
@@ -242,7 +243,7 @@ datum/preferences
|
||||
preview_icon.Blend(eyes_s, ICON_OVERLAY)
|
||||
preview_icon_front = new(preview_icon, dir = SOUTH)
|
||||
preview_icon_side = new(preview_icon, dir = WEST)
|
||||
|
||||
|
||||
del(preview_icon)
|
||||
del(mouth_s)
|
||||
del(facial_s)
|
||||
|
||||
@@ -48,6 +48,10 @@ datum/preferences/proc/savefile_save(mob/user)
|
||||
F["eyes_blue"] << src.b_eyes
|
||||
F["blood_type"] << src.b_type
|
||||
F["underwear"] << src.underwear
|
||||
F["backbag"] << src.backbag
|
||||
F["backbag"] << src.backbag
|
||||
|
||||
|
||||
|
||||
F["be_special"] << src.be_special
|
||||
F["UI"] << src.UI
|
||||
@@ -97,6 +101,9 @@ datum/preferences/proc/savefile_load(mob/user)
|
||||
F["eyes_blue"] >> src.b_eyes
|
||||
F["blood_type"] >> src.b_type
|
||||
F["underwear"] >> src.underwear
|
||||
if(underwear == 0) underwear = 6 //For old players who have 0 in their savefile
|
||||
F["backbag"] >> src.backbag
|
||||
if(isnull(backbag)) backbag = 2
|
||||
F["name_is_always_random"] >> src.be_random_name
|
||||
F["midis"] >> src.midis
|
||||
F["ghost_ears"] >> src.ghost_ears
|
||||
|
||||
Reference in New Issue
Block a user