mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 10:01:40 +00:00
Renamed variables:
b_type to blood_type h_color to hair_color f_color to facial_hair_color f_style to facial_hair_style h_style to hair_style
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
var/datum/data/record/M = new()
|
var/datum/data/record/M = new()
|
||||||
M.fields["id"] = id
|
M.fields["id"] = id
|
||||||
M.fields["name"] = H.real_name
|
M.fields["name"] = H.real_name
|
||||||
M.fields["b_type"] = H.b_type
|
M.fields["blood_type"] = H.blood_type
|
||||||
M.fields["b_dna"] = H.dna.unique_enzymes
|
M.fields["b_dna"] = H.dna.unique_enzymes
|
||||||
M.fields["mi_dis"] = "None"
|
M.fields["mi_dis"] = "None"
|
||||||
M.fields["mi_dis_d"] = "No minor disabilities have been declared."
|
M.fields["mi_dis_d"] = "No minor disabilities have been declared."
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
L.fields["rank"] = H.mind.assigned_role
|
L.fields["rank"] = H.mind.assigned_role
|
||||||
L.fields["age"] = H.age
|
L.fields["age"] = H.age
|
||||||
L.fields["sex"] = H.gender
|
L.fields["sex"] = H.gender
|
||||||
L.fields["b_type"] = H.b_type
|
L.fields["blood_type"] = H.blood_type
|
||||||
L.fields["b_dna"] = H.dna.unique_enzymes
|
L.fields["b_dna"] = H.dna.unique_enzymes
|
||||||
L.fields["enzymes"] = H.dna.struc_enzymes
|
L.fields["enzymes"] = H.dna.struc_enzymes
|
||||||
L.fields["identity"] = H.dna.uni_identity
|
L.fields["identity"] = H.dna.uni_identity
|
||||||
|
|||||||
@@ -31,15 +31,15 @@ BONUS
|
|||||||
var/mob/living/carbon/human/H = M
|
var/mob/living/carbon/human/H = M
|
||||||
switch(A.stage)
|
switch(A.stage)
|
||||||
if(1, 2)
|
if(1, 2)
|
||||||
if(H.f_style == "Shaved")
|
if(H.facial_hair_style == "Shaved")
|
||||||
H.f_style = "Adam Jensen Beard"
|
H.facial_hair_style = "Adam Jensen Beard"
|
||||||
H.update_hair()
|
H.update_hair()
|
||||||
if(3, 4)
|
if(3, 4)
|
||||||
if(!(H.f_style == "Dwarf Beard") && !(H.h_style == "Very Long Beard") && !(H.h_style == "Full Beard"))
|
if(!(H.facial_hair_style == "Dwarf Beard") && !(H.hair_style == "Very Long Beard") && !(H.hair_style == "Full Beard"))
|
||||||
H.f_style = "Full Beard"
|
H.facial_hair_style = "Full Beard"
|
||||||
H.update_hair()
|
H.update_hair()
|
||||||
else
|
else
|
||||||
if(!(H.f_style == "Dwarf Beard") && !(H.h_style == "Very Long Beard"))
|
if(!(H.facial_hair_style == "Dwarf Beard") && !(H.hair_style == "Very Long Beard"))
|
||||||
H.f_style = pick("Dwarf Beard", "Very Long Beard")
|
H.facial_hair_style = pick("Dwarf Beard", "Very Long Beard")
|
||||||
H.update_hair()
|
H.update_hair()
|
||||||
return
|
return
|
||||||
@@ -32,16 +32,16 @@ BONUS
|
|||||||
var/mob/living/carbon/human/H = M
|
var/mob/living/carbon/human/H = M
|
||||||
switch(A.stage)
|
switch(A.stage)
|
||||||
if(3, 4)
|
if(3, 4)
|
||||||
if(!(H.h_style == "Bald") && !(H.h_style == "Balding Hair"))
|
if(!(H.hair_style == "Bald") && !(H.hair_style == "Balding Hair"))
|
||||||
H << "<span class='danger'>Your hair starts to fall out in clumps...</span>"
|
H << "<span class='danger'>Your hair starts to fall out in clumps...</span>"
|
||||||
spawn(50)
|
spawn(50)
|
||||||
H.h_style = "Balding Hair"
|
H.hair_style = "Balding Hair"
|
||||||
H.update_hair()
|
H.update_hair()
|
||||||
if(5)
|
if(5)
|
||||||
if(!(H.f_style == "Shaved") || !(H.h_style == "Bald"))
|
if(!(H.facial_hair_style == "Shaved") || !(H.hair_style == "Bald"))
|
||||||
H << "<span class='danger'>Your hair starts to fall out in clumps...</span>"
|
H << "<span class='danger'>Your hair starts to fall out in clumps...</span>"
|
||||||
spawn(50)
|
spawn(50)
|
||||||
H.f_style = "Shaved"
|
H.facial_hair_style = "Shaved"
|
||||||
H.h_style = "Bald"
|
H.hair_style = "Bald"
|
||||||
H.update_hair()
|
H.update_hair()
|
||||||
return
|
return
|
||||||
@@ -342,7 +342,7 @@ var/list/blood_splatter_icons = list()
|
|||||||
//if this blood isn't already in the list, add it
|
//if this blood isn't already in the list, add it
|
||||||
if(blood_DNA[M.dna.unique_enzymes])
|
if(blood_DNA[M.dna.unique_enzymes])
|
||||||
return 0 //already bloodied with this blood. Cannot add more.
|
return 0 //already bloodied with this blood. Cannot add more.
|
||||||
blood_DNA[M.dna.unique_enzymes] = M.dna.b_type
|
blood_DNA[M.dna.unique_enzymes] = M.dna.blood_type
|
||||||
return 1 //we applied blood to the item
|
return 1 //we applied blood to the item
|
||||||
|
|
||||||
//adding blood to turfs
|
//adding blood to turfs
|
||||||
@@ -352,7 +352,7 @@ var/list/blood_splatter_icons = list()
|
|||||||
//get one blood decal and infect it with virus from M.viruses
|
//get one blood decal and infect it with virus from M.viruses
|
||||||
var/obj/effect/decal/cleanable/blood/B = locate() in T.contents
|
var/obj/effect/decal/cleanable/blood/B = locate() in T.contents
|
||||||
if(!B) B = new /obj/effect/decal/cleanable/blood(T)
|
if(!B) B = new /obj/effect/decal/cleanable/blood(T)
|
||||||
B.blood_DNA[M.dna.unique_enzymes] = M.dna.b_type
|
B.blood_DNA[M.dna.unique_enzymes] = M.dna.blood_type
|
||||||
return 1 //we bloodied the floor
|
return 1 //we bloodied the floor
|
||||||
|
|
||||||
//adding blood to humans
|
//adding blood to humans
|
||||||
@@ -361,7 +361,7 @@ var/list/blood_splatter_icons = list()
|
|||||||
//if this blood isn't already in the list, add it
|
//if this blood isn't already in the list, add it
|
||||||
if(blood_DNA[H.dna.unique_enzymes])
|
if(blood_DNA[H.dna.unique_enzymes])
|
||||||
return 0 //already bloodied with this blood. Cannot add more.
|
return 0 //already bloodied with this blood. Cannot add more.
|
||||||
blood_DNA[H.dna.unique_enzymes] = H.dna.b_type
|
blood_DNA[H.dna.unique_enzymes] = H.dna.blood_type
|
||||||
H.update_inv_gloves() //handles bloody hands overlays and updating
|
H.update_inv_gloves() //handles bloody hands overlays and updating
|
||||||
return 1 //we applied blood to the item
|
return 1 //we applied blood to the item
|
||||||
return
|
return
|
||||||
@@ -385,7 +385,7 @@ var/list/blood_splatter_icons = list()
|
|||||||
if(check_dna_integrity(M)) //mobs with dna = (monkeys + humans at time of writing)
|
if(check_dna_integrity(M)) //mobs with dna = (monkeys + humans at time of writing)
|
||||||
var/obj/effect/decal/cleanable/blood/B = locate() in contents
|
var/obj/effect/decal/cleanable/blood/B = locate() in contents
|
||||||
if(!B) B = new(src)
|
if(!B) B = new(src)
|
||||||
B.blood_DNA[M.dna.unique_enzymes] = M.dna.b_type
|
B.blood_DNA[M.dna.unique_enzymes] = M.dna.blood_type
|
||||||
else if(istype(M, /mob/living/carbon/alien))
|
else if(istype(M, /mob/living/carbon/alien))
|
||||||
var/obj/effect/decal/cleanable/xenoblood/B = locate() in contents
|
var/obj/effect/decal/cleanable/xenoblood/B = locate() in contents
|
||||||
if(!B) B = new(src)
|
if(!B) B = new(src)
|
||||||
|
|||||||
@@ -19,12 +19,12 @@
|
|||||||
var/unique_enzymes
|
var/unique_enzymes
|
||||||
var/struc_enzymes
|
var/struc_enzymes
|
||||||
var/uni_identity
|
var/uni_identity
|
||||||
var/b_type
|
var/blood_type
|
||||||
var/mutantrace = null //The type of mutant race the player is if applicable (i.e. potato-man)
|
var/mutantrace = null //The type of mutant race the player is if applicable (i.e. potato-man)
|
||||||
var/real_name //Stores the real name of the person who originally got this dna datum. Used primarely for changelings,
|
var/real_name //Stores the real name of the person who originally got this dna datum. Used primarely for changelings,
|
||||||
|
|
||||||
/datum/dna/New()
|
/datum/dna/New()
|
||||||
if(!b_type) b_type = random_blood_type()
|
if(!blood_type) blood_type = random_blood_type()
|
||||||
|
|
||||||
/datum/dna/proc/generate_uni_identity(mob/living/carbon/character)
|
/datum/dna/proc/generate_uni_identity(mob/living/carbon/character)
|
||||||
. = ""
|
. = ""
|
||||||
@@ -33,10 +33,10 @@
|
|||||||
L[DNA_GENDER_BLOCK] = construct_block((character.gender!=MALE)+1, 2)
|
L[DNA_GENDER_BLOCK] = construct_block((character.gender!=MALE)+1, 2)
|
||||||
if(istype(character, /mob/living/carbon/human))
|
if(istype(character, /mob/living/carbon/human))
|
||||||
var/mob/living/carbon/human/H = character
|
var/mob/living/carbon/human/H = character
|
||||||
L[DNA_HAIR_STYLE_BLOCK] = construct_block(hair_styles_list.Find(H.h_style), hair_styles_list.len)
|
L[DNA_HAIR_STYLE_BLOCK] = construct_block(hair_styles_list.Find(H.hair_style), hair_styles_list.len)
|
||||||
L[DNA_HAIR_COLOR_BLOCK] = sanitize_hexcolor(H.h_color)
|
L[DNA_HAIR_COLOR_BLOCK] = sanitize_hexcolor(H.hair_color)
|
||||||
L[DNA_FACIAL_HAIR_STYLE_BLOCK] = construct_block(hair_styles_list.Find(H.f_style), facial_hair_styles_list.len)
|
L[DNA_FACIAL_HAIR_STYLE_BLOCK] = construct_block(hair_styles_list.Find(H.facial_hair_style), facial_hair_styles_list.len)
|
||||||
L[DNA_FACIAL_HAIR_COLOR_BLOCK] = sanitize_hexcolor(H.f_color)
|
L[DNA_FACIAL_HAIR_COLOR_BLOCK] = sanitize_hexcolor(H.facial_hair_color)
|
||||||
L[DNA_SKIN_TONE_BLOCK] = construct_block(skin_tones.Find(H.skin_tone), skin_tones.len)
|
L[DNA_SKIN_TONE_BLOCK] = construct_block(skin_tones.Find(H.skin_tone), skin_tones.len)
|
||||||
L[DNA_EYE_COLOR_BLOCK] = sanitize_hexcolor(H.eye_color)
|
L[DNA_EYE_COLOR_BLOCK] = sanitize_hexcolor(H.eye_color)
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
owner.dna.generate_unique_enzymes(owner)
|
owner.dna.generate_unique_enzymes(owner)
|
||||||
|
|
||||||
if(blood_type)
|
if(blood_type)
|
||||||
owner.dna.b_type = blood_type
|
owner.dna.blood_type = blood_type
|
||||||
|
|
||||||
if(ui)
|
if(ui)
|
||||||
owner.dna.uni_identity = ui
|
owner.dna.uni_identity = ui
|
||||||
@@ -118,7 +118,7 @@
|
|||||||
if(!character.dna)
|
if(!character.dna)
|
||||||
character.dna = new /datum/dna()
|
character.dna = new /datum/dna()
|
||||||
if(blood_type)
|
if(blood_type)
|
||||||
character.dna.b_type = blood_type
|
character.dna.blood_type = blood_type
|
||||||
character.dna.real_name = character.real_name
|
character.dna.real_name = character.real_name
|
||||||
character.dna.uni_identity = character.dna.generate_uni_identity(character)
|
character.dna.uni_identity = character.dna.generate_uni_identity(character)
|
||||||
character.dna.struc_enzymes = character.dna.generate_struc_enzymes(character)
|
character.dna.struc_enzymes = character.dna.generate_struc_enzymes(character)
|
||||||
@@ -207,12 +207,12 @@
|
|||||||
C.gender = (deconstruct_block(getblock(structure, DNA_GENDER_BLOCK), 2)-1) ? FEMALE : MALE
|
C.gender = (deconstruct_block(getblock(structure, DNA_GENDER_BLOCK), 2)-1) ? FEMALE : MALE
|
||||||
if(istype(C, /mob/living/carbon/human))
|
if(istype(C, /mob/living/carbon/human))
|
||||||
var/mob/living/carbon/human/H = C
|
var/mob/living/carbon/human/H = C
|
||||||
H.h_color = sanitize_hexcolor(getblock(structure, DNA_HAIR_COLOR_BLOCK))
|
H.hair_color = sanitize_hexcolor(getblock(structure, DNA_HAIR_COLOR_BLOCK))
|
||||||
H.f_color = sanitize_hexcolor(getblock(structure, DNA_FACIAL_HAIR_COLOR_BLOCK))
|
H.facial_hair_color = sanitize_hexcolor(getblock(structure, DNA_FACIAL_HAIR_COLOR_BLOCK))
|
||||||
H.skin_tone = skin_tones[deconstruct_block(getblock(structure, DNA_SKIN_TONE_BLOCK), skin_tones.len)]
|
H.skin_tone = skin_tones[deconstruct_block(getblock(structure, DNA_SKIN_TONE_BLOCK), skin_tones.len)]
|
||||||
H.eye_color = sanitize_hexcolor(getblock(structure, DNA_EYE_COLOR_BLOCK))
|
H.eye_color = sanitize_hexcolor(getblock(structure, DNA_EYE_COLOR_BLOCK))
|
||||||
H.f_style = facial_hair_styles_list[deconstruct_block(getblock(structure, DNA_FACIAL_HAIR_STYLE_BLOCK), facial_hair_styles_list.len)]
|
H.facial_hair_style = facial_hair_styles_list[deconstruct_block(getblock(structure, DNA_FACIAL_HAIR_STYLE_BLOCK), facial_hair_styles_list.len)]
|
||||||
H.h_style = hair_styles_list[deconstruct_block(getblock(structure, DNA_HAIR_STYLE_BLOCK), hair_styles_list.len)]
|
H.hair_style = hair_styles_list[deconstruct_block(getblock(structure, DNA_HAIR_STYLE_BLOCK), hair_styles_list.len)]
|
||||||
|
|
||||||
H.update_body()
|
H.update_body()
|
||||||
H.update_hair()
|
H.update_hair()
|
||||||
@@ -673,11 +673,11 @@
|
|||||||
var/ue = buffer_slot["UE"]
|
var/ue = buffer_slot["UE"]
|
||||||
var/name = buffer_slot["name"]
|
var/name = buffer_slot["name"]
|
||||||
var/label = buffer_slot["label"]
|
var/label = buffer_slot["label"]
|
||||||
var/b_type = buffer_slot["b_type"]
|
var/blood_type = buffer_slot["blood_type"]
|
||||||
temp_html += "<br>\t<a href='?src=\ref[src];task=setbufferlabel;num=[i];'>Label</a>: [label ? label : name]"
|
temp_html += "<br>\t<a href='?src=\ref[src];task=setbufferlabel;num=[i];'>Label</a>: [label ? label : name]"
|
||||||
temp_html += "<br>\tSubject: [name]"
|
temp_html += "<br>\tSubject: [name]"
|
||||||
if(ue && name && b_type)
|
if(ue && name && blood_type)
|
||||||
temp_html += "<br>\tBlood Type: [b_type]"
|
temp_html += "<br>\tBlood Type: [blood_type]"
|
||||||
temp_html += "<br>\tUE: [ue] "
|
temp_html += "<br>\tUE: [ue] "
|
||||||
if(viable_occupant) temp_html += "<a href='?src=\ref[src];task=transferbuffer;num=[i];text=ue'>Occupant</a> "
|
if(viable_occupant) temp_html += "<a href='?src=\ref[src];task=transferbuffer;num=[i];text=ue'>Occupant</a> "
|
||||||
else temp_html += "<span class='linkOff'>Occupant</span>"
|
else temp_html += "<span class='linkOff'>Occupant</span>"
|
||||||
@@ -813,7 +813,7 @@
|
|||||||
"SE"=viable_occupant.dna.struc_enzymes,
|
"SE"=viable_occupant.dna.struc_enzymes,
|
||||||
"UE"=viable_occupant.dna.unique_enzymes,
|
"UE"=viable_occupant.dna.unique_enzymes,
|
||||||
"name"=viable_occupant.real_name,
|
"name"=viable_occupant.real_name,
|
||||||
"b_type"=viable_occupant.dna.b_type
|
"blood_type"=viable_occupant.dna.blood_type
|
||||||
)
|
)
|
||||||
if("clearbuffer")
|
if("clearbuffer")
|
||||||
if(num)
|
if(num)
|
||||||
@@ -837,11 +837,11 @@
|
|||||||
viable_occupant.dna.uni_identity = buffer_slot["UI"]
|
viable_occupant.dna.uni_identity = buffer_slot["UI"]
|
||||||
updateappearance(viable_occupant)
|
updateappearance(viable_occupant)
|
||||||
else
|
else
|
||||||
if(buffer_slot["name"] && buffer_slot["UE"] && buffer_slot["b_type"])
|
if(buffer_slot["name"] && buffer_slot["UE"] && buffer_slot["blood_type"])
|
||||||
viable_occupant.real_name = buffer_slot["name"]
|
viable_occupant.real_name = buffer_slot["name"]
|
||||||
viable_occupant.name = buffer_slot["name"]
|
viable_occupant.name = buffer_slot["name"]
|
||||||
viable_occupant.dna.unique_enzymes = buffer_slot["UE"]
|
viable_occupant.dna.unique_enzymes = buffer_slot["UE"]
|
||||||
viable_occupant.dna.b_type = buffer_slot["b_type"]
|
viable_occupant.dna.blood_type = buffer_slot["blood_type"]
|
||||||
updateappearance(viable_occupant)
|
updateappearance(viable_occupant)
|
||||||
if("injector")
|
if("injector")
|
||||||
if(num && injectorready)
|
if(num && injectorready)
|
||||||
@@ -859,9 +859,9 @@
|
|||||||
I = new /obj/item/weapon/dnainjector(loc)
|
I = new /obj/item/weapon/dnainjector(loc)
|
||||||
I.fields = list("UI"=buffer_slot["UI"])
|
I.fields = list("UI"=buffer_slot["UI"])
|
||||||
else
|
else
|
||||||
if(buffer_slot["name"] && buffer_slot["UE"] && buffer_slot["b_type"])
|
if(buffer_slot["name"] && buffer_slot["UE"] && buffer_slot["blood_type"])
|
||||||
I = new /obj/item/weapon/dnainjector(loc)
|
I = new /obj/item/weapon/dnainjector(loc)
|
||||||
I.fields = list("name"=buffer_slot["name"], "UE"=buffer_slot["UE"], "b_type"=buffer_slot["b_type"])
|
I.fields = list("name"=buffer_slot["name"], "UE"=buffer_slot["UE"], "blood_type"=buffer_slot["blood_type"])
|
||||||
if(I)
|
if(I)
|
||||||
injectorready = 0
|
injectorready = 0
|
||||||
spawn(INJECTOR_TIMEOUT)
|
spawn(INJECTOR_TIMEOUT)
|
||||||
|
|||||||
@@ -574,7 +574,7 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology",
|
|||||||
R.word3 = w3
|
R.word3 = w3
|
||||||
R.check_icon()
|
R.check_icon()
|
||||||
R.blood_DNA = list()
|
R.blood_DNA = list()
|
||||||
R.blood_DNA[H.dna.unique_enzymes] = H.dna.b_type
|
R.blood_DNA[H.dna.unique_enzymes] = H.dna.blood_type
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
user << "The book seems full of illegible scribbles. Is this a joke?"
|
user << "The book seems full of illegible scribbles. Is this a joke?"
|
||||||
@@ -620,7 +620,7 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology",
|
|||||||
if(istype(user, /mob/living/carbon/human))
|
if(istype(user, /mob/living/carbon/human))
|
||||||
var/mob/living/carbon/human/H = user
|
var/mob/living/carbon/human/H = user
|
||||||
R.blood_DNA = list()
|
R.blood_DNA = list()
|
||||||
R.blood_DNA[H.dna.unique_enzymes] = H.dna.b_type
|
R.blood_DNA[H.dna.unique_enzymes] = H.dna.blood_type
|
||||||
switch(r)
|
switch(r)
|
||||||
if("teleport")
|
if("teleport")
|
||||||
var/list/words = list("ire", "ego", "nahlizet", "certum", "veri", "jatkaa", "balaq", "mgar", "karazet", "geeri")
|
var/list/words = list("ire", "ego", "nahlizet", "certum", "veri", "jatkaa", "balaq", "mgar", "karazet", "geeri")
|
||||||
|
|||||||
@@ -746,7 +746,7 @@ var/global/mulebot_count = 0
|
|||||||
|
|
||||||
var/obj/effect/decal/cleanable/blood/B = new(src.loc)
|
var/obj/effect/decal/cleanable/blood/B = new(src.loc)
|
||||||
B.blood_DNA = list()
|
B.blood_DNA = list()
|
||||||
B.blood_DNA[H.dna.unique_enzymes] = H.dna.b_type
|
B.blood_DNA[H.dna.unique_enzymes] = H.dna.blood_type
|
||||||
|
|
||||||
bloodiness += 4
|
bloodiness += 4
|
||||||
|
|
||||||
|
|||||||
@@ -166,10 +166,10 @@
|
|||||||
randmutb(H) //Sometimes the clones come out wrong.
|
randmutb(H) //Sometimes the clones come out wrong.
|
||||||
|
|
||||||
if(H.gender == MALE)
|
if(H.gender == MALE)
|
||||||
H.f_style = "Full Beard"
|
H.facial_hair_style = "Full Beard"
|
||||||
else
|
else
|
||||||
H.f_style = "Shaved"
|
H.facial_hair_style = "Shaved"
|
||||||
H.h_style = pick("Bedhead", "Bedhead 2", "Bedhead 3")
|
H.hair_style = pick("Bedhead", "Bedhead 2", "Bedhead 3")
|
||||||
|
|
||||||
H.suiciding = 0
|
H.suiciding = 0
|
||||||
src.attempting = 0
|
src.attempting = 0
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
if(table.check_patient())
|
if(table.check_patient())
|
||||||
patient = table.patient
|
patient = table.patient
|
||||||
dat += {"<B>Patient Status:</B> [patient.stat ? "Non-Responsive" : "Stable"]<BR>
|
dat += {"<B>Patient Status:</B> [patient.stat ? "Non-Responsive" : "Stable"]<BR>
|
||||||
<B>Blood Type:</B> [patient.b_type]<BR>
|
<B>Blood Type:</B> [patient.blood_type]<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<B>Health:</B> [round(patient.health)]<BR>
|
<B>Health:</B> [round(patient.health)]<BR>
|
||||||
<B>Brute Damage:</B> [round(patient.getBruteLoss())]<BR>
|
<B>Brute Damage:</B> [round(patient.getBruteLoss())]<BR>
|
||||||
|
|||||||
@@ -169,7 +169,7 @@
|
|||||||
var/list/L = list()
|
var/list/L = list()
|
||||||
if(diskette.fields["UI"])
|
if(diskette.fields["UI"])
|
||||||
L += "Unique Identifier"
|
L += "Unique Identifier"
|
||||||
if(diskette.fields["UE"] && diskette.fields["name"] && diskette.fields["b_type"])
|
if(diskette.fields["UE"] && diskette.fields["name"] && diskette.fields["blood_type"])
|
||||||
L += "Unique Enzymes"
|
L += "Unique Enzymes"
|
||||||
if(diskette.fields["SE"])
|
if(diskette.fields["SE"])
|
||||||
L += "Structural Enzymes"
|
L += "Structural Enzymes"
|
||||||
@@ -351,7 +351,7 @@
|
|||||||
R.fields["UE"] = subject.dna.unique_enzymes
|
R.fields["UE"] = subject.dna.unique_enzymes
|
||||||
R.fields["UI"] = subject.dna.uni_identity
|
R.fields["UI"] = subject.dna.uni_identity
|
||||||
R.fields["SE"] = subject.dna.struc_enzymes
|
R.fields["SE"] = subject.dna.struc_enzymes
|
||||||
R.fields["b_type"] = subject.dna.b_type
|
R.fields["blood_type"] = subject.dna.blood_type
|
||||||
|
|
||||||
//Add an implant if needed
|
//Add an implant if needed
|
||||||
var/obj/item/weapon/implant/health/imp = locate(/obj/item/weapon/implant/health, subject)
|
var/obj/item/weapon/implant/health/imp = locate(/obj/item/weapon/implant/health, subject)
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
else
|
else
|
||||||
dat += "<B>General Record Lost!</B><BR>"
|
dat += "<B>General Record Lost!</B><BR>"
|
||||||
if ((istype(src.active2, /datum/data/record) && data_core.medical.Find(src.active2)))
|
if ((istype(src.active2, /datum/data/record) && data_core.medical.Find(src.active2)))
|
||||||
dat += text("<BR>\n<CENTER><B>Medical Data</B></CENTER><BR>\nBlood Type: <A href='?src=\ref[];field=b_type'>[]</A><BR>\nDNA: <A href='?src=\ref[];field=b_dna'>[]</A><BR>\n<BR>\nMinor Disabilities: <A href='?src=\ref[];field=mi_dis'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=mi_dis_d'>[]</A><BR>\n<BR>\nMajor Disabilities: <A href='?src=\ref[];field=ma_dis'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=ma_dis_d'>[]</A><BR>\n<BR>\nAllergies: <A href='?src=\ref[];field=alg'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=alg_d'>[]</A><BR>\n<BR>\nCurrent Diseases: <A href='?src=\ref[];field=cdi'>[]</A> (per disease info placed in log/comment section)<BR>\nDetails: <A href='?src=\ref[];field=cdi_d'>[]</A><BR>\n<BR>\nImportant Notes:<BR>\n\t<A href='?src=\ref[];field=notes'>[]</A><BR>\n<BR>\n<CENTER><B>Comments/Log</B></CENTER><BR>", src, src.active2.fields["b_type"], src, src.active2.fields["b_dna"], src, src.active2.fields["mi_dis"], src, src.active2.fields["mi_dis_d"], src, src.active2.fields["ma_dis"], src, src.active2.fields["ma_dis_d"], src, src.active2.fields["alg"], src, src.active2.fields["alg_d"], src, src.active2.fields["cdi"], src, src.active2.fields["cdi_d"], src, src.active2.fields["notes"])
|
dat += text("<BR>\n<CENTER><B>Medical Data</B></CENTER><BR>\nBlood Type: <A href='?src=\ref[];field=blood_type'>[]</A><BR>\nDNA: <A href='?src=\ref[];field=b_dna'>[]</A><BR>\n<BR>\nMinor Disabilities: <A href='?src=\ref[];field=mi_dis'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=mi_dis_d'>[]</A><BR>\n<BR>\nMajor Disabilities: <A href='?src=\ref[];field=ma_dis'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=ma_dis_d'>[]</A><BR>\n<BR>\nAllergies: <A href='?src=\ref[];field=alg'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=alg_d'>[]</A><BR>\n<BR>\nCurrent Diseases: <A href='?src=\ref[];field=cdi'>[]</A> (per disease info placed in log/comment section)<BR>\nDetails: <A href='?src=\ref[];field=cdi_d'>[]</A><BR>\n<BR>\nImportant Notes:<BR>\n\t<A href='?src=\ref[];field=notes'>[]</A><BR>\n<BR>\n<CENTER><B>Comments/Log</B></CENTER><BR>", src, src.active2.fields["blood_type"], src, src.active2.fields["b_dna"], src, src.active2.fields["mi_dis"], src, src.active2.fields["mi_dis_d"], src, src.active2.fields["ma_dis"], src, src.active2.fields["ma_dis_d"], src, src.active2.fields["alg"], src, src.active2.fields["alg_d"], src, src.active2.fields["cdi"], src, src.active2.fields["cdi_d"], src, src.active2.fields["notes"])
|
||||||
var/counter = 1
|
var/counter = 1
|
||||||
while(src.active2.fields[text("com_[]", counter)])
|
while(src.active2.fields[text("com_[]", counter)])
|
||||||
dat += text("[]<BR><A href='?src=\ref[];del_c=[]'>Delete Entry</A><BR><BR>", src.active2.fields[text("com_[]", counter)], src, counter)
|
dat += text("[]<BR><A href='?src=\ref[];del_c=[]'>Delete Entry</A><BR><BR>", src.active2.fields[text("com_[]", counter)], src, counter)
|
||||||
@@ -269,9 +269,9 @@
|
|||||||
if("m_stat")
|
if("m_stat")
|
||||||
if (istype(src.active1, /datum/data/record))
|
if (istype(src.active1, /datum/data/record))
|
||||||
src.temp = text("<B>Mental Condition:</B><BR>\n\t<A href='?src=\ref[];temp=1;m_stat=insane'>*Insane*</A><BR>\n\t<A href='?src=\ref[];temp=1;m_stat=unstable'>*Unstable*</A><BR>\n\t<A href='?src=\ref[];temp=1;m_stat=watch'>*Watch*</A><BR>\n\t<A href='?src=\ref[];temp=1;m_stat=stable'>Stable</A><BR>", src, src, src, src)
|
src.temp = text("<B>Mental Condition:</B><BR>\n\t<A href='?src=\ref[];temp=1;m_stat=insane'>*Insane*</A><BR>\n\t<A href='?src=\ref[];temp=1;m_stat=unstable'>*Unstable*</A><BR>\n\t<A href='?src=\ref[];temp=1;m_stat=watch'>*Watch*</A><BR>\n\t<A href='?src=\ref[];temp=1;m_stat=stable'>Stable</A><BR>", src, src, src, src)
|
||||||
if("b_type")
|
if("blood_type")
|
||||||
if (istype(src.active2, /datum/data/record))
|
if (istype(src.active2, /datum/data/record))
|
||||||
src.temp = text("<B>Blood Type:</B><BR>\n\t<A href='?src=\ref[];temp=1;b_type=an'>A-</A> <A href='?src=\ref[];temp=1;b_type=ap'>A+</A><BR>\n\t<A href='?src=\ref[];temp=1;b_type=bn'>B-</A> <A href='?src=\ref[];temp=1;b_type=bp'>B+</A><BR>\n\t<A href='?src=\ref[];temp=1;b_type=abn'>AB-</A> <A href='?src=\ref[];temp=1;b_type=abp'>AB+</A><BR>\n\t<A href='?src=\ref[];temp=1;b_type=on'>O-</A> <A href='?src=\ref[];temp=1;b_type=op'>O+</A><BR>", src, src, src, src, src, src, src, src)
|
src.temp = text("<B>Blood Type:</B><BR>\n\t<A href='?src=\ref[];temp=1;blood_type=an'>A-</A> <A href='?src=\ref[];temp=1;blood_type=ap'>A+</A><BR>\n\t<A href='?src=\ref[];temp=1;blood_type=bn'>B-</A> <A href='?src=\ref[];temp=1;blood_type=bp'>B+</A><BR>\n\t<A href='?src=\ref[];temp=1;blood_type=abn'>AB-</A> <A href='?src=\ref[];temp=1;blood_type=abp'>AB+</A><BR>\n\t<A href='?src=\ref[];temp=1;blood_type=on'>O-</A> <A href='?src=\ref[];temp=1;blood_type=op'>O+</A><BR>", src, src, src, src, src, src, src, src)
|
||||||
if("b_dna")
|
if("b_dna")
|
||||||
if (istype(src.active1, /datum/data/record))
|
if (istype(src.active1, /datum/data/record))
|
||||||
var/t1 = copytext(sanitize(input("Please input DNA hash:", "Med. records", src.active1.fields["dna"], null) as text),1,MAX_MESSAGE_LEN)
|
var/t1 = copytext(sanitize(input("Please input DNA hash:", "Med. records", src.active1.fields["dna"], null) as text),1,MAX_MESSAGE_LEN)
|
||||||
@@ -305,25 +305,25 @@
|
|||||||
src.active1.fields["m_stat"] = "Stable"
|
src.active1.fields["m_stat"] = "Stable"
|
||||||
|
|
||||||
|
|
||||||
if (href_list["b_type"])
|
if (href_list["blood_type"])
|
||||||
if (src.active2)
|
if (src.active2)
|
||||||
switch(href_list["b_type"])
|
switch(href_list["blood_type"])
|
||||||
if("an")
|
if("an")
|
||||||
src.active2.fields["b_type"] = "A-"
|
src.active2.fields["blood_type"] = "A-"
|
||||||
if("bn")
|
if("bn")
|
||||||
src.active2.fields["b_type"] = "B-"
|
src.active2.fields["blood_type"] = "B-"
|
||||||
if("abn")
|
if("abn")
|
||||||
src.active2.fields["b_type"] = "AB-"
|
src.active2.fields["blood_type"] = "AB-"
|
||||||
if("on")
|
if("on")
|
||||||
src.active2.fields["b_type"] = "O-"
|
src.active2.fields["blood_type"] = "O-"
|
||||||
if("ap")
|
if("ap")
|
||||||
src.active2.fields["b_type"] = "A+"
|
src.active2.fields["blood_type"] = "A+"
|
||||||
if("bp")
|
if("bp")
|
||||||
src.active2.fields["b_type"] = "B+"
|
src.active2.fields["blood_type"] = "B+"
|
||||||
if("abp")
|
if("abp")
|
||||||
src.active2.fields["b_type"] = "AB+"
|
src.active2.fields["blood_type"] = "AB+"
|
||||||
if("op")
|
if("op")
|
||||||
src.active2.fields["b_type"] = "O+"
|
src.active2.fields["blood_type"] = "O+"
|
||||||
|
|
||||||
|
|
||||||
if (href_list["del_r"])
|
if (href_list["del_r"])
|
||||||
@@ -356,7 +356,7 @@
|
|||||||
R.fields["name"] = src.active1.fields["name"]
|
R.fields["name"] = src.active1.fields["name"]
|
||||||
R.fields["id"] = src.active1.fields["id"]
|
R.fields["id"] = src.active1.fields["id"]
|
||||||
R.name = text("Medical Record #[]", R.fields["id"])
|
R.name = text("Medical Record #[]", R.fields["id"])
|
||||||
R.fields["b_type"] = "Unknown"
|
R.fields["blood_type"] = "Unknown"
|
||||||
R.fields["b_dna"] = "Unknown"
|
R.fields["b_dna"] = "Unknown"
|
||||||
R.fields["mi_dis"] = "None"
|
R.fields["mi_dis"] = "None"
|
||||||
R.fields["mi_dis_d"] = "No minor disabilities have been declared."
|
R.fields["mi_dis_d"] = "No minor disabilities have been declared."
|
||||||
@@ -420,7 +420,7 @@
|
|||||||
else
|
else
|
||||||
P.info += "<B>General Record Lost!</B><BR>"
|
P.info += "<B>General Record Lost!</B><BR>"
|
||||||
if ((istype(src.active2, /datum/data/record) && data_core.medical.Find(src.active2)))
|
if ((istype(src.active2, /datum/data/record) && data_core.medical.Find(src.active2)))
|
||||||
P.info += text("<BR>\n<CENTER><B>Medical Data</B></CENTER><BR>\nBlood Type: []<BR>\nDNA: []<BR>\n<BR>\nMinor Disabilities: []<BR>\nDetails: []<BR>\n<BR>\nMajor Disabilities: []<BR>\nDetails: []<BR>\n<BR>\nAllergies: []<BR>\nDetails: []<BR>\n<BR>\nCurrent Diseases: [] (per disease info placed in log/comment section)<BR>\nDetails: []<BR>\n<BR>\nImportant Notes:<BR>\n\t[]<BR>\n<BR>\n<CENTER><B>Comments/Log</B></CENTER><BR>", src.active2.fields["b_type"], src.active2.fields["b_dna"], src.active2.fields["mi_dis"], src.active2.fields["mi_dis_d"], src.active2.fields["ma_dis"], src.active2.fields["ma_dis_d"], src.active2.fields["alg"], src.active2.fields["alg_d"], src.active2.fields["cdi"], src.active2.fields["cdi_d"], src.active2.fields["notes"])
|
P.info += text("<BR>\n<CENTER><B>Medical Data</B></CENTER><BR>\nBlood Type: []<BR>\nDNA: []<BR>\n<BR>\nMinor Disabilities: []<BR>\nDetails: []<BR>\n<BR>\nMajor Disabilities: []<BR>\nDetails: []<BR>\n<BR>\nAllergies: []<BR>\nDetails: []<BR>\n<BR>\nCurrent Diseases: [] (per disease info placed in log/comment section)<BR>\nDetails: []<BR>\n<BR>\nImportant Notes:<BR>\n\t[]<BR>\n<BR>\n<CENTER><B>Comments/Log</B></CENTER><BR>", src.active2.fields["blood_type"], src.active2.fields["b_dna"], src.active2.fields["mi_dis"], src.active2.fields["mi_dis_d"], src.active2.fields["ma_dis"], src.active2.fields["ma_dis_d"], src.active2.fields["alg"], src.active2.fields["alg_d"], src.active2.fields["cdi"], src.active2.fields["cdi_d"], src.active2.fields["notes"])
|
||||||
var/counter = 1
|
var/counter = 1
|
||||||
while(src.active2.fields[text("com_[]", counter)])
|
while(src.active2.fields[text("com_[]", counter)])
|
||||||
P.info += text("[]<BR>", src.active2.fields[text("com_[]", counter)])
|
P.info += text("[]<BR>", src.active2.fields[text("com_[]", counter)])
|
||||||
@@ -450,7 +450,7 @@
|
|||||||
if(3)
|
if(3)
|
||||||
R.fields["age"] = rand(5, 85)
|
R.fields["age"] = rand(5, 85)
|
||||||
if(4)
|
if(4)
|
||||||
R.fields["b_type"] = pick("A-", "B-", "AB-", "O-", "A+", "B+", "AB+", "O+")
|
R.fields["blood_type"] = pick("A-", "B-", "AB-", "O-", "A+", "B+", "AB+", "O+")
|
||||||
if(5)
|
if(5)
|
||||||
R.fields["p_stat"] = pick("*Unconcious*", "Active", "Physically Unfit")
|
R.fields["p_stat"] = pick("*Unconcious*", "Active", "Physically Unfit")
|
||||||
if(6)
|
if(6)
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
gib.blood_DNA = list()
|
gib.blood_DNA = list()
|
||||||
if(MobDNA)
|
if(MobDNA)
|
||||||
gib.blood_DNA[MobDNA.unique_enzymes] = MobDNA.b_type
|
gib.blood_DNA[MobDNA.unique_enzymes] = MobDNA.blood_type
|
||||||
else if(istype(src, /obj/effect/gibspawner/xeno))
|
else if(istype(src, /obj/effect/gibspawner/xeno))
|
||||||
gib.blood_DNA["UNKNOWN DNA"] = "X*"
|
gib.blood_DNA["UNKNOWN DNA"] = "X*"
|
||||||
else if(istype(src, /obj/effect/gibspawner/human)) // Probably a monkey
|
else if(istype(src, /obj/effect/gibspawner/human)) // Probably a monkey
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ Code:
|
|||||||
|
|
||||||
menu += "<h4><img src=pda_medical.png> Medical Data</h4>"
|
menu += "<h4><img src=pda_medical.png> Medical Data</h4>"
|
||||||
if (istype(active2, /datum/data/record) && (active2 in data_core.medical))
|
if (istype(active2, /datum/data/record) && (active2 in data_core.medical))
|
||||||
menu += "Blood Type: [active2.fields["b_type"]]<br><br>"
|
menu += "Blood Type: [active2.fields["blood_type"]]<br><br>"
|
||||||
|
|
||||||
menu += "Minor Disabilities: [active2.fields["mi_dis"]]<br>"
|
menu += "Minor Disabilities: [active2.fields["mi_dis"]]<br>"
|
||||||
menu += "Details: [active2.fields["mi_dis_d"]]<br><br>"
|
menu += "Details: [active2.fields["mi_dis_d"]]<br><br>"
|
||||||
|
|||||||
@@ -99,9 +99,9 @@
|
|||||||
|
|
||||||
/obj/item/weapon/razor/proc/shave(mob/living/carbon/human/H, location = "mouth")
|
/obj/item/weapon/razor/proc/shave(mob/living/carbon/human/H, location = "mouth")
|
||||||
if(location == "mouth")
|
if(location == "mouth")
|
||||||
H.f_style = "Shaved"
|
H.facial_hair_style = "Shaved"
|
||||||
else
|
else
|
||||||
H.h_style = "Skinhead"
|
H.hair_style = "Skinhead"
|
||||||
|
|
||||||
H.update_hair()
|
H.update_hair()
|
||||||
playsound(loc, 'sound/items/Welder2.ogg', 20, 1)
|
playsound(loc, 'sound/items/Welder2.ogg', 20, 1)
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
if(!get_location_accessible(H, location))
|
if(!get_location_accessible(H, location))
|
||||||
user << "<span class='notice'>The mask is in the way.</span>"
|
user << "<span class='notice'>The mask is in the way.</span>"
|
||||||
return
|
return
|
||||||
if(H.f_style == "Shaved")
|
if(H.facial_hair_style == "Shaved")
|
||||||
user << "<span class='notice'>Already clean-shaven.</span>"
|
user << "<span class='notice'>Already clean-shaven.</span>"
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
if(!get_location_accessible(H, location))
|
if(!get_location_accessible(H, location))
|
||||||
user << "<span class='notice'>The headgear is in the way.</span>"
|
user << "<span class='notice'>The headgear is in the way.</span>"
|
||||||
return
|
return
|
||||||
if(H.h_style == "Bald" || H.h_style == "Balding Hair" || H.h_style == "Skinhead")
|
if(H.hair_style == "Bald" || H.hair_style == "Balding Hair" || H.hair_style == "Skinhead")
|
||||||
user << "<span class='notice'>There is not enough hair left to shave!</span>"
|
user << "<span class='notice'>There is not enough hair left to shave!</span>"
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -21,11 +21,11 @@
|
|||||||
M.radiation += rand(20, 50)
|
M.radiation += rand(20, 50)
|
||||||
if(fields)
|
if(fields)
|
||||||
var/log_msg = "[key_name(user)] injected [key_name(M)] with the [name]"
|
var/log_msg = "[key_name(user)] injected [key_name(M)] with the [name]"
|
||||||
if(fields["name"] && fields["UE"] && fields["b_type"])
|
if(fields["name"] && fields["UE"] && fields["blood_type"])
|
||||||
M.real_name = fields["name"]
|
M.real_name = fields["name"]
|
||||||
M.dna.unique_enzymes = fields["UE"]
|
M.dna.unique_enzymes = fields["UE"]
|
||||||
M.name = M.real_name
|
M.name = M.real_name
|
||||||
M.dna.b_type = fields["b_type"]
|
M.dna.blood_type = fields["blood_type"]
|
||||||
if(fields["UI"]) //UI+UE
|
if(fields["UI"]) //UI+UE
|
||||||
M.dna.uni_identity = merge_text(M.dna.uni_identity, fields["UI"])
|
M.dna.uni_identity = merge_text(M.dna.uni_identity, fields["UI"])
|
||||||
updateappearance(M)
|
updateappearance(M)
|
||||||
|
|||||||
@@ -25,15 +25,15 @@
|
|||||||
var/new_style = input(user, "Select a facial hair style", "Grooming") as null|anything in facial_hair_styles_list
|
var/new_style = input(user, "Select a facial hair style", "Grooming") as null|anything in facial_hair_styles_list
|
||||||
if(userloc != H.loc) return //no tele-grooming
|
if(userloc != H.loc) return //no tele-grooming
|
||||||
if(new_style)
|
if(new_style)
|
||||||
H.f_style = new_style
|
H.facial_hair_style = new_style
|
||||||
else
|
else
|
||||||
H.f_style = "Shaved"
|
H.facial_hair_style = "Shaved"
|
||||||
|
|
||||||
//handle normal hair
|
//handle normal hair
|
||||||
var/new_style = input(user, "Select a hair style", "Grooming") as null|anything in hair_styles_list
|
var/new_style = input(user, "Select a hair style", "Grooming") as null|anything in hair_styles_list
|
||||||
if(userloc != H.loc) return //no tele-grooming
|
if(userloc != H.loc) return //no tele-grooming
|
||||||
if(new_style)
|
if(new_style)
|
||||||
H.h_style = new_style
|
H.hair_style = new_style
|
||||||
|
|
||||||
H.update_hair()
|
H.update_hair()
|
||||||
|
|
||||||
|
|||||||
@@ -302,29 +302,29 @@
|
|||||||
message_admins("\blue [key_name_admin(usr)] has used rudimentary transformation on [key_name_admin(M)]. Transforming to [href_list["simplemake"]]; deletemob=[delmob]", 1)
|
message_admins("\blue [key_name_admin(usr)] has used rudimentary transformation on [key_name_admin(M)]. Transforming to [href_list["simplemake"]]; deletemob=[delmob]", 1)
|
||||||
|
|
||||||
switch(href_list["simplemake"])
|
switch(href_list["simplemake"])
|
||||||
if("observer") M.change_mob_type( /mob/dead/observer , null, null, delmob )
|
if("observer") M.change_moblood_type( /mob/dead/observer , null, null, delmob )
|
||||||
if("drone") M.change_mob_type( /mob/living/carbon/alien/humanoid/drone , null, null, delmob )
|
if("drone") M.change_moblood_type( /mob/living/carbon/alien/humanoid/drone , null, null, delmob )
|
||||||
if("hunter") M.change_mob_type( /mob/living/carbon/alien/humanoid/hunter , null, null, delmob )
|
if("hunter") M.change_moblood_type( /mob/living/carbon/alien/humanoid/hunter , null, null, delmob )
|
||||||
if("queen") M.change_mob_type( /mob/living/carbon/alien/humanoid/queen , null, null, delmob )
|
if("queen") M.change_moblood_type( /mob/living/carbon/alien/humanoid/queen , null, null, delmob )
|
||||||
if("sentinel") M.change_mob_type( /mob/living/carbon/alien/humanoid/sentinel , null, null, delmob )
|
if("sentinel") M.change_moblood_type( /mob/living/carbon/alien/humanoid/sentinel , null, null, delmob )
|
||||||
if("larva") M.change_mob_type( /mob/living/carbon/alien/larva , null, null, delmob )
|
if("larva") M.change_moblood_type( /mob/living/carbon/alien/larva , null, null, delmob )
|
||||||
if("human") M.change_mob_type( /mob/living/carbon/human , null, null, delmob )
|
if("human") M.change_moblood_type( /mob/living/carbon/human , null, null, delmob )
|
||||||
if("slime") M.change_mob_type( /mob/living/carbon/slime , null, null, delmob )
|
if("slime") M.change_moblood_type( /mob/living/carbon/slime , null, null, delmob )
|
||||||
if("adultslime") M.change_mob_type( /mob/living/carbon/slime/adult , null, null, delmob )
|
if("adultslime") M.change_moblood_type( /mob/living/carbon/slime/adult , null, null, delmob )
|
||||||
if("monkey") M.change_mob_type( /mob/living/carbon/monkey , null, null, delmob )
|
if("monkey") M.change_moblood_type( /mob/living/carbon/monkey , null, null, delmob )
|
||||||
if("robot") M.change_mob_type( /mob/living/silicon/robot , null, null, delmob )
|
if("robot") M.change_moblood_type( /mob/living/silicon/robot , null, null, delmob )
|
||||||
if("cat") M.change_mob_type( /mob/living/simple_animal/cat , null, null, delmob )
|
if("cat") M.change_moblood_type( /mob/living/simple_animal/cat , null, null, delmob )
|
||||||
if("runtime") M.change_mob_type( /mob/living/simple_animal/cat/Runtime , null, null, delmob )
|
if("runtime") M.change_moblood_type( /mob/living/simple_animal/cat/Runtime , null, null, delmob )
|
||||||
if("corgi") M.change_mob_type( /mob/living/simple_animal/corgi , null, null, delmob )
|
if("corgi") M.change_moblood_type( /mob/living/simple_animal/corgi , null, null, delmob )
|
||||||
if("ian") M.change_mob_type( /mob/living/simple_animal/corgi/Ian , null, null, delmob )
|
if("ian") M.change_moblood_type( /mob/living/simple_animal/corgi/Ian , null, null, delmob )
|
||||||
if("crab") M.change_mob_type( /mob/living/simple_animal/crab , null, null, delmob )
|
if("crab") M.change_moblood_type( /mob/living/simple_animal/crab , null, null, delmob )
|
||||||
if("coffee") M.change_mob_type( /mob/living/simple_animal/crab/Coffee , null, null, delmob )
|
if("coffee") M.change_moblood_type( /mob/living/simple_animal/crab/Coffee , null, null, delmob )
|
||||||
if("parrot") M.change_mob_type( /mob/living/simple_animal/parrot , null, null, delmob )
|
if("parrot") M.change_moblood_type( /mob/living/simple_animal/parrot , null, null, delmob )
|
||||||
if("polyparrot") M.change_mob_type( /mob/living/simple_animal/parrot/Poly , null, null, delmob )
|
if("polyparrot") M.change_moblood_type( /mob/living/simple_animal/parrot/Poly , null, null, delmob )
|
||||||
if("constructarmoured") M.change_mob_type( /mob/living/simple_animal/construct/armoured , null, null, delmob )
|
if("constructarmoured") M.change_moblood_type( /mob/living/simple_animal/construct/armoured , null, null, delmob )
|
||||||
if("constructbuilder") M.change_mob_type( /mob/living/simple_animal/construct/builder , null, null, delmob )
|
if("constructbuilder") M.change_moblood_type( /mob/living/simple_animal/construct/builder , null, null, delmob )
|
||||||
if("constructwraith") M.change_mob_type( /mob/living/simple_animal/construct/wraith , null, null, delmob )
|
if("constructwraith") M.change_moblood_type( /mob/living/simple_animal/construct/wraith , null, null, delmob )
|
||||||
if("shade") M.change_mob_type( /mob/living/simple_animal/shade , null, null, delmob )
|
if("shade") M.change_moblood_type( /mob/living/simple_animal/shade , null, null, delmob )
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////new ban stuff
|
/////////////////////////////////////new ban stuff
|
||||||
@@ -1994,7 +1994,7 @@
|
|||||||
feedback_inc("admin_secrets_fun_used",1)
|
feedback_inc("admin_secrets_fun_used",1)
|
||||||
feedback_add_details("admin_secrets_fun_used","DF")
|
feedback_add_details("admin_secrets_fun_used","DF")
|
||||||
for(var/mob/living/carbon/human/B in mob_list)
|
for(var/mob/living/carbon/human/B in mob_list)
|
||||||
B.f_style = "Dward Beard"
|
B.facial_hair_style = "Dward Beard"
|
||||||
B.update_hair()
|
B.update_hair()
|
||||||
message_admins("[key_name_admin(usr)] activated dorf mode")
|
message_admins("[key_name_admin(usr)] activated dorf mode")
|
||||||
if("ionstorm")
|
if("ionstorm")
|
||||||
@@ -2076,7 +2076,7 @@
|
|||||||
dat += "<table cellspacing=5><tr><th>Name</th><th>DNA</th><th>Blood Type</th></tr>"
|
dat += "<table cellspacing=5><tr><th>Name</th><th>DNA</th><th>Blood Type</th></tr>"
|
||||||
for(var/mob/living/carbon/human/H in mob_list)
|
for(var/mob/living/carbon/human/H in mob_list)
|
||||||
if(H.dna && H.ckey)
|
if(H.dna && H.ckey)
|
||||||
dat += "<tr><td>[H]</td><td>[H.dna.unique_enzymes]</td><td>[H.b_type]</td></tr>"
|
dat += "<tr><td>[H]</td><td>[H.dna.unique_enzymes]</td><td>[H.blood_type]</td></tr>"
|
||||||
dat += "</table>"
|
dat += "</table>"
|
||||||
usr << browse(dat, "window=DNA;size=440x410")
|
usr << browse(dat, "window=DNA;size=440x410")
|
||||||
if("fingerprints")
|
if("fingerprints")
|
||||||
|
|||||||
@@ -306,7 +306,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
new_character.real_name = record_found.fields["name"]
|
new_character.real_name = record_found.fields["name"]
|
||||||
new_character.gender = record_found.fields["sex"]
|
new_character.gender = record_found.fields["sex"]
|
||||||
new_character.age = record_found.fields["age"]
|
new_character.age = record_found.fields["age"]
|
||||||
new_character.b_type = record_found.fields["b_type"]
|
new_character.blood_type = record_found.fields["blood_type"]
|
||||||
else
|
else
|
||||||
new_character.gender = pick(MALE,FEMALE)
|
new_character.gender = pick(MALE,FEMALE)
|
||||||
var/datum/preferences/A = new()
|
var/datum/preferences/A = new()
|
||||||
@@ -326,7 +326,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
|
|
||||||
//DNA
|
//DNA
|
||||||
if(record_found)//Pull up their name from database records if they did have a mind.
|
if(record_found)//Pull up their name from database records if they did have a mind.
|
||||||
hardset_dna(new_character, record_found.fields["identity"], record_found.fields["enzymes"], record_found.fields["name"], null, record_found.fields["b_type"])
|
hardset_dna(new_character, record_found.fields["identity"], record_found.fields["enzymes"], record_found.fields["name"], null, record_found.fields["blood_type"])
|
||||||
else//If they have no records, we just do a random DNA for them, based on their random appearance/savefile.
|
else//If they have no records, we just do a random DNA for them, based on their random appearance/savefile.
|
||||||
ready_dna(new_character)
|
ready_dna(new_character)
|
||||||
|
|
||||||
|
|||||||
@@ -42,13 +42,13 @@ datum/preferences
|
|||||||
var/be_random_name = 0 //whether we are a random name every round
|
var/be_random_name = 0 //whether we are a random name every round
|
||||||
var/gender = MALE //gender of character (well duh)
|
var/gender = MALE //gender of character (well duh)
|
||||||
var/age = 30 //age of character
|
var/age = 30 //age of character
|
||||||
var/b_type = "A+" //blood type (not-chooseable)
|
var/blood_type = "A+" //blood type (not-chooseable)
|
||||||
var/underwear = "Nude" //underwear type
|
var/underwear = "Nude" //underwear type
|
||||||
var/backbag = 2 //backpack type
|
var/backbag = 2 //backpack type
|
||||||
var/h_style = "Bald" //Hair type
|
var/hair_style = "Bald" //Hair type
|
||||||
var/h_color = "000" //Hair color
|
var/hair_color = "000" //Hair color
|
||||||
var/f_style = "Shaved" //Face hair type
|
var/facial_hair_style = "Shaved" //Face hair type
|
||||||
var/f_color = "000" //Facial hair color
|
var/facial_hair_color = "000" //Facial hair color
|
||||||
var/skin_tone = "caucasian1" //Skin color
|
var/skin_tone = "caucasian1" //Skin color
|
||||||
var/eye_color = "000" //Eye color
|
var/eye_color = "000" //Eye color
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ datum/preferences
|
|||||||
var/unlock_content = 0
|
var/unlock_content = 0
|
||||||
|
|
||||||
/datum/preferences/New(client/C)
|
/datum/preferences/New(client/C)
|
||||||
b_type = random_blood_type()
|
blood_type = random_blood_type()
|
||||||
ooccolor = normal_ooc_colour
|
ooccolor = normal_ooc_colour
|
||||||
if(istype(C))
|
if(istype(C))
|
||||||
if(!IsGuestKey(C.key))
|
if(!IsGuestKey(C.key))
|
||||||
@@ -161,7 +161,7 @@ datum/preferences
|
|||||||
|
|
||||||
dat += "<table width='100%'><tr><td width='24%' valign='top'>"
|
dat += "<table width='100%'><tr><td width='24%' valign='top'>"
|
||||||
|
|
||||||
dat += "<b>Blood Type:</b> [b_type]<BR>"
|
dat += "<b>Blood Type:</b> [blood_type]<BR>"
|
||||||
dat += "<b>Skin Tone:</b><BR><a href='?_src_=prefs;preference=s_tone;task=input'>[skin_tone]</a><BR>"
|
dat += "<b>Skin Tone:</b><BR><a href='?_src_=prefs;preference=s_tone;task=input'>[skin_tone]</a><BR>"
|
||||||
dat += "<b>Underwear:</b><BR><a href ='?_src_=prefs;preference=underwear;task=input'>[underwear]</a><BR>"
|
dat += "<b>Underwear:</b><BR><a href ='?_src_=prefs;preference=underwear;task=input'>[underwear]</a><BR>"
|
||||||
dat += "<b>Backpack:</b><BR><a href ='?_src_=prefs;preference=bag;task=input'>[backbaglist[backbag]]</a><BR>"
|
dat += "<b>Backpack:</b><BR><a href ='?_src_=prefs;preference=bag;task=input'>[backbaglist[backbag]]</a><BR>"
|
||||||
@@ -171,16 +171,16 @@ datum/preferences
|
|||||||
|
|
||||||
dat += "<h3>Hair Style</h3>"
|
dat += "<h3>Hair Style</h3>"
|
||||||
|
|
||||||
dat += "<a href='?_src_=prefs;preference=h_style;task=input'>[h_style]</a><BR>"
|
dat += "<a href='?_src_=prefs;preference=hair_style;task=input'>[hair_style]</a><BR>"
|
||||||
dat += "<span style='border:1px solid #161616; background-color: #[h_color];'> </span> <a href='?_src_=prefs;preference=hair;task=input'>Change</a><BR>"
|
dat += "<span style='border:1px solid #161616; background-color: #[hair_color];'> </span> <a href='?_src_=prefs;preference=hair;task=input'>Change</a><BR>"
|
||||||
|
|
||||||
|
|
||||||
dat += "</td><td valign='top' width='28%'>"
|
dat += "</td><td valign='top' width='28%'>"
|
||||||
|
|
||||||
dat += "<h3>Facial Hair Style</h3>"
|
dat += "<h3>Facial Hair Style</h3>"
|
||||||
|
|
||||||
dat += "<a href='?_src_=prefs;preference=f_style;task=input'>[f_style]</a><BR>"
|
dat += "<a href='?_src_=prefs;preference=facial_hair_style;task=input'>[facial_hair_style]</a><BR>"
|
||||||
dat += "<span style='border: 1px solid #161616; background-color: #[f_color];'> </span> <a href='?_src_=prefs;preference=facial;task=input'>Change</a><BR>"
|
dat += "<span style='border: 1px solid #161616; background-color: #[facial_hair_color];'> </span> <a href='?_src_=prefs;preference=facial;task=input'>Change</a><BR>"
|
||||||
|
|
||||||
|
|
||||||
dat += "</td><td valign='top'>"
|
dat += "</td><td valign='top'>"
|
||||||
@@ -520,13 +520,13 @@ datum/preferences
|
|||||||
if("age")
|
if("age")
|
||||||
age = rand(AGE_MIN, AGE_MAX)
|
age = rand(AGE_MIN, AGE_MAX)
|
||||||
if("hair")
|
if("hair")
|
||||||
h_color = random_short_color()
|
hair_color = random_short_color()
|
||||||
if("h_style")
|
if("hair_style")
|
||||||
h_style = random_hair_style(gender)
|
hair_style = random_hair_style(gender)
|
||||||
if("facial")
|
if("facial")
|
||||||
f_color = random_short_color()
|
facial_hair_color = random_short_color()
|
||||||
if("f_style")
|
if("facial_hair_style")
|
||||||
f_style = random_facial_hair_style(gender)
|
facial_hair_style = random_facial_hair_style(gender)
|
||||||
if("underwear")
|
if("underwear")
|
||||||
underwear = random_underwear(gender)
|
underwear = random_underwear(gender)
|
||||||
if("eyes")
|
if("eyes")
|
||||||
@@ -565,31 +565,31 @@ datum/preferences
|
|||||||
if("hair")
|
if("hair")
|
||||||
var/new_hair = input(user, "Choose your character's hair colour:", "Character Preference") as null|color
|
var/new_hair = input(user, "Choose your character's hair colour:", "Character Preference") as null|color
|
||||||
if(new_hair)
|
if(new_hair)
|
||||||
h_color = sanitize_hexcolor(new_hair)
|
hair_color = sanitize_hexcolor(new_hair)
|
||||||
|
|
||||||
|
|
||||||
if("h_style")
|
if("hair_style")
|
||||||
var/new_h_style
|
var/new_hair_style
|
||||||
if(gender == MALE)
|
if(gender == MALE)
|
||||||
new_h_style = input(user, "Choose your character's hair style:", "Character Preference") as null|anything in hair_styles_male_list
|
new_hair_style = input(user, "Choose your character's hair style:", "Character Preference") as null|anything in hair_styles_male_list
|
||||||
else
|
else
|
||||||
new_h_style = input(user, "Choose your character's hair style:", "Character Preference") as null|anything in hair_styles_female_list
|
new_hair_style = input(user, "Choose your character's hair style:", "Character Preference") as null|anything in hair_styles_female_list
|
||||||
if(new_h_style)
|
if(new_hair_style)
|
||||||
h_style = new_h_style
|
hair_style = new_hair_style
|
||||||
|
|
||||||
if("facial")
|
if("facial")
|
||||||
var/new_facial = input(user, "Choose your character's facial-hair colour:", "Character Preference") as null|color
|
var/new_facial = input(user, "Choose your character's facial-hair colour:", "Character Preference") as null|color
|
||||||
if(new_facial)
|
if(new_facial)
|
||||||
f_color = sanitize_hexcolor(new_facial)
|
facial_hair_color = sanitize_hexcolor(new_facial)
|
||||||
|
|
||||||
if("f_style")
|
if("facial_hair_style")
|
||||||
var/new_f_style
|
var/new_facial_hair_style
|
||||||
if(gender == MALE)
|
if(gender == MALE)
|
||||||
new_f_style = input(user, "Choose your character's facial-hair style:", "Character Preference") as null|anything in facial_hair_styles_male_list
|
new_facial_hair_style = input(user, "Choose your character's facial-hair style:", "Character Preference") as null|anything in facial_hair_styles_male_list
|
||||||
else
|
else
|
||||||
new_f_style = input(user, "Choose your character's facial-hair style:", "Character Preference") as null|anything in facial_hair_styles_female_list
|
new_facial_hair_style = input(user, "Choose your character's facial-hair style:", "Character Preference") as null|anything in facial_hair_styles_female_list
|
||||||
if(new_f_style)
|
if(new_facial_hair_style)
|
||||||
f_style = new_f_style
|
facial_hair_style = new_facial_hair_style
|
||||||
|
|
||||||
if("underwear")
|
if("underwear")
|
||||||
var/new_underwear
|
var/new_underwear
|
||||||
@@ -630,8 +630,8 @@ datum/preferences
|
|||||||
else
|
else
|
||||||
gender = MALE
|
gender = MALE
|
||||||
underwear = random_underwear(gender)
|
underwear = random_underwear(gender)
|
||||||
f_style = random_facial_hair_style(gender)
|
facial_hair_style = random_facial_hair_style(gender)
|
||||||
h_style = random_hair_style(gender)
|
hair_style = random_hair_style(gender)
|
||||||
|
|
||||||
if("hear_adminhelps")
|
if("hear_adminhelps")
|
||||||
toggles ^= SOUND_ADMINHELP
|
toggles ^= SOUND_ADMINHELP
|
||||||
@@ -708,15 +708,15 @@ datum/preferences
|
|||||||
|
|
||||||
character.gender = gender
|
character.gender = gender
|
||||||
character.age = age
|
character.age = age
|
||||||
character.b_type = b_type
|
character.blood_type = blood_type
|
||||||
|
|
||||||
character.eye_color = eye_color
|
character.eye_color = eye_color
|
||||||
character.h_color = h_color
|
character.hair_color = hair_color
|
||||||
character.f_color = f_color
|
character.facial_hair_color = facial_hair_color
|
||||||
|
|
||||||
character.skin_tone = skin_tone
|
character.skin_tone = skin_tone
|
||||||
character.h_style = h_style
|
character.hair_style = hair_style
|
||||||
character.f_style = f_style
|
character.facial_hair_style = facial_hair_style
|
||||||
character.underwear = underwear
|
character.underwear = underwear
|
||||||
|
|
||||||
if(backbag > 3 || backbag < 1)
|
if(backbag > 3 || backbag < 1)
|
||||||
|
|||||||
@@ -157,12 +157,12 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
|||||||
S["name_is_always_random"] >> be_random_name
|
S["name_is_always_random"] >> be_random_name
|
||||||
S["gender"] >> gender
|
S["gender"] >> gender
|
||||||
S["age"] >> age
|
S["age"] >> age
|
||||||
S["hair_color"] >> h_color
|
S["hair_color"] >> hair_color
|
||||||
S["facial_hair_color"] >> f_color
|
S["facial_hair_color"] >> facial_hair_color
|
||||||
S["eye_color"] >> eye_color
|
S["eye_color"] >> eye_color
|
||||||
S["skin_tone"] >> skin_tone
|
S["skin_tone"] >> skin_tone
|
||||||
S["hair_style_name"] >> h_style
|
S["hair_style_name"] >> hair_style
|
||||||
S["facial_style_name"] >> f_style
|
S["facial_style_name"] >> facial_hair_style
|
||||||
S["underwear"] >> underwear
|
S["underwear"] >> underwear
|
||||||
S["backbag"] >> backbag
|
S["backbag"] >> backbag
|
||||||
|
|
||||||
@@ -189,16 +189,16 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
|||||||
be_random_name = sanitize_integer(be_random_name, 0, 1, initial(be_random_name))
|
be_random_name = sanitize_integer(be_random_name, 0, 1, initial(be_random_name))
|
||||||
gender = sanitize_gender(gender)
|
gender = sanitize_gender(gender)
|
||||||
if(gender == MALE)
|
if(gender == MALE)
|
||||||
h_style = sanitize_inlist(h_style, hair_styles_male_list)
|
hair_style = sanitize_inlist(hair_style, hair_styles_male_list)
|
||||||
f_style = sanitize_inlist(f_style, facial_hair_styles_male_list)
|
facial_hair_style = sanitize_inlist(facial_hair_style, facial_hair_styles_male_list)
|
||||||
underwear = sanitize_inlist(underwear, underwear_m)
|
underwear = sanitize_inlist(underwear, underwear_m)
|
||||||
else
|
else
|
||||||
h_style = sanitize_inlist(h_style, hair_styles_female_list)
|
hair_style = sanitize_inlist(hair_style, hair_styles_female_list)
|
||||||
f_style = sanitize_inlist(f_style, facial_hair_styles_female_list)
|
facial_hair_style = sanitize_inlist(facial_hair_style, facial_hair_styles_female_list)
|
||||||
underwear = sanitize_inlist(underwear, underwear_f)
|
underwear = sanitize_inlist(underwear, underwear_f)
|
||||||
age = sanitize_integer(age, AGE_MIN, AGE_MAX, initial(age))
|
age = sanitize_integer(age, AGE_MIN, AGE_MAX, initial(age))
|
||||||
h_color = sanitize_hexcolor(h_color, 3, 0)
|
hair_color = sanitize_hexcolor(hair_color, 3, 0)
|
||||||
f_color = sanitize_hexcolor(f_color, 3, 0)
|
facial_hair_color = sanitize_hexcolor(facial_hair_color, 3, 0)
|
||||||
eye_color = sanitize_hexcolor(eye_color, 3, 0)
|
eye_color = sanitize_hexcolor(eye_color, 3, 0)
|
||||||
skin_tone = sanitize_inlist(skin_tone, skin_tones)
|
skin_tone = sanitize_inlist(skin_tone, skin_tones)
|
||||||
backbag = sanitize_integer(backbag, 1, backbaglist.len, initial(backbag))
|
backbag = sanitize_integer(backbag, 1, backbaglist.len, initial(backbag))
|
||||||
@@ -230,12 +230,12 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
|||||||
S["name_is_always_random"] << be_random_name
|
S["name_is_always_random"] << be_random_name
|
||||||
S["gender"] << gender
|
S["gender"] << gender
|
||||||
S["age"] << age
|
S["age"] << age
|
||||||
S["hair_color"] << h_color
|
S["hair_color"] << hair_color
|
||||||
S["facial_hair_color"] << f_color
|
S["facial_hair_color"] << facial_hair_color
|
||||||
S["eye_color"] << eye_color
|
S["eye_color"] << eye_color
|
||||||
S["skin_tone"] << skin_tone
|
S["skin_tone"] << skin_tone
|
||||||
S["hair_style_name"] << h_style
|
S["hair_style_name"] << hair_style
|
||||||
S["facial_style_name"] << f_style
|
S["facial_style_name"] << facial_hair_style
|
||||||
S["underwear"] << underwear
|
S["underwear"] << underwear
|
||||||
S["backbag"] << backbag
|
S["backbag"] << backbag
|
||||||
|
|
||||||
|
|||||||
@@ -159,8 +159,8 @@
|
|||||||
if(!istype(user)) return
|
if(!istype(user)) return
|
||||||
mob = new/icon("icon" = 'icons/mob/head.dmi', "icon_state" = "kitty")
|
mob = new/icon("icon" = 'icons/mob/head.dmi', "icon_state" = "kitty")
|
||||||
mob2 = new/icon("icon" = 'icons/mob/head.dmi', "icon_state" = "kitty2")
|
mob2 = new/icon("icon" = 'icons/mob/head.dmi', "icon_state" = "kitty2")
|
||||||
mob.Blend("#[user.h_color]", ICON_ADD)
|
mob.Blend("#[user.hair_color]", ICON_ADD)
|
||||||
mob2.Blend("#[user.h_color]", ICON_ADD)
|
mob2.Blend("#[user.hair_color]", ICON_ADD)
|
||||||
|
|
||||||
var/icon/earbit = new/icon("icon" = 'icons/mob/head.dmi', "icon_state" = "kittyinner")
|
var/icon/earbit = new/icon("icon" = 'icons/mob/head.dmi', "icon_state" = "kittyinner")
|
||||||
var/icon/earbit2 = new/icon("icon" = 'icons/mob/head.dmi', "icon_state" = "kittyinner2")
|
var/icon/earbit2 = new/icon("icon" = 'icons/mob/head.dmi', "icon_state" = "kittyinner2")
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
/mob/living/carbon/human
|
/mob/living/carbon/human
|
||||||
//Hair colour and style
|
//Hair colour and style
|
||||||
var/h_color = "000"
|
var/hair_color = "000"
|
||||||
var/h_style = "Bald"
|
var/hair_style = "Bald"
|
||||||
|
|
||||||
//Facial hair colour and style
|
//Facial hair colour and style
|
||||||
var/f_color = "000"
|
var/facial_hair_color = "000"
|
||||||
var/f_style = "Shaved"
|
var/facial_hair_style = "Shaved"
|
||||||
|
|
||||||
//Eye colour
|
//Eye colour
|
||||||
var/eye_color = "000"
|
var/eye_color = "000"
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
var/lip_style = null //no lipstick by default- arguably misleading, as it could be used for general makeup
|
var/lip_style = null //no lipstick by default- arguably misleading, as it could be used for general makeup
|
||||||
|
|
||||||
var/age = 30 //Player's age (pure fluff)
|
var/age = 30 //Player's age (pure fluff)
|
||||||
var/b_type = "A+" //Player's bloodtype (Not currently used, just character fluff)
|
var/blood_type = "A+" //Player's bloodtype (Not currently used, just character fluff)
|
||||||
|
|
||||||
var/underwear = "Nude" //Which underwear the player wants
|
var/underwear = "Nude" //Which underwear the player wants
|
||||||
var/backbag = 2 //Which backpack type the player has chosen. Nothing, Satchel or Backpack.
|
var/backbag = 2 //Which backpack type the player has chosen. Nothing, Satchel or Backpack.
|
||||||
|
|||||||
@@ -204,11 +204,11 @@
|
|||||||
src << "\red You feel weak."
|
src << "\red You feel weak."
|
||||||
emote("collapse")
|
emote("collapse")
|
||||||
if(prob(15))
|
if(prob(15))
|
||||||
if(!(f_style == "Shaved") || !(h_style == "Bald"))
|
if(!( hair_style == "Shaved") || !(hair_style == "Bald"))
|
||||||
src << "<span class='danger'>Your hair starts to fall out in clumps...<span>"
|
src << "<span class='danger'>Your hair starts to fall out in clumps...<span>"
|
||||||
spawn(50)
|
spawn(50)
|
||||||
f_style = "Shaved"
|
facial_hair_style = "Shaved"
|
||||||
h_style = "Bald"
|
hair_style = "Bald"
|
||||||
update_hair()
|
update_hair()
|
||||||
updatehealth()
|
updatehealth()
|
||||||
|
|
||||||
|
|||||||
@@ -181,16 +181,17 @@ Please contact me on #coderbus IRC. ~Carnie x
|
|||||||
return
|
return
|
||||||
|
|
||||||
//base icons
|
//base icons
|
||||||
|
var/datum/sprite_accessory/S
|
||||||
var/list/standing = list()
|
var/list/standing = list()
|
||||||
var/list/lying = list()
|
var/list/lying = list()
|
||||||
|
|
||||||
if(f_style)
|
|
||||||
var/datum/sprite_accessory/facial_hair_style = facial_hair_styles_list[f_style]
|
|
||||||
if(facial_hair_style)
|
if(facial_hair_style)
|
||||||
var/icon/facial_s = icon("icon"=facial_hair_style.icon, "icon_state"="[facial_hair_style.icon_state]_s")
|
S = facial_hair_styles_list[facial_hair_style]
|
||||||
var/icon/facial_l = icon("icon"=facial_hair_style.icon, "icon_state"="[facial_hair_style.icon_state]_l")
|
if(S)
|
||||||
facial_s.Blend("#[f_color]", ICON_ADD)
|
var/icon/facial_s = icon("icon"=S.icon, "icon_state"="[S.icon_state]_s")
|
||||||
facial_l.Blend("#[f_color]", ICON_ADD)
|
var/icon/facial_l = icon("icon"=S.icon, "icon_state"="[S.icon_state]_l")
|
||||||
|
facial_s.Blend("#[facial_hair_color]", ICON_ADD)
|
||||||
|
facial_l.Blend("#[facial_hair_color]", ICON_ADD)
|
||||||
standing += image("icon"=facial_s, "layer"=-HAIR_LAYER)
|
standing += image("icon"=facial_s, "layer"=-HAIR_LAYER)
|
||||||
lying += image("icon"=facial_l, "layer"=-HAIR_LAYER)
|
lying += image("icon"=facial_l, "layer"=-HAIR_LAYER)
|
||||||
|
|
||||||
@@ -198,13 +199,13 @@ Please contact me on #coderbus IRC. ~Carnie x
|
|||||||
if(!getbrain(src))
|
if(!getbrain(src))
|
||||||
standing += image("icon"='icons/mob/human_face.dmi', "icon_state"="debrained_s", "layer"=-HAIR_LAYER)
|
standing += image("icon"='icons/mob/human_face.dmi', "icon_state"="debrained_s", "layer"=-HAIR_LAYER)
|
||||||
lying += image("icon"='icons/mob/human_face.dmi', "icon_state"="debrained_l", "layer"=-HAIR_LAYER)
|
lying += image("icon"='icons/mob/human_face.dmi', "icon_state"="debrained_l", "layer"=-HAIR_LAYER)
|
||||||
else if(h_style)
|
else if(hair_style)
|
||||||
var/datum/sprite_accessory/hair_style = hair_styles_list[h_style]
|
S = hair_styles_list[hair_style]
|
||||||
if(hair_style)
|
if(S)
|
||||||
var/icon/hair_s = icon("icon"=hair_style.icon, "icon_state"="[hair_style.icon_state]_s")
|
var/icon/hair_s = icon("icon"=S.icon, "icon_state"="[S.icon_state]_s")
|
||||||
var/icon/hair_l = icon("icon"=hair_style.icon, "icon_state"="[hair_style.icon_state]_l")
|
var/icon/hair_l = icon("icon"=S.icon, "icon_state"="[S.icon_state]_l")
|
||||||
hair_s.Blend("#[h_color]", ICON_ADD)
|
hair_s.Blend("#[hair_color]", ICON_ADD)
|
||||||
hair_l.Blend("#[h_color]", ICON_ADD)
|
hair_l.Blend("#[hair_color]", ICON_ADD)
|
||||||
standing += image("icon"=hair_s, "layer"=-HAIR_LAYER)
|
standing += image("icon"=hair_s, "layer"=-HAIR_LAYER)
|
||||||
lying += image("icon"=hair_l, "layer"=-HAIR_LAYER)
|
lying += image("icon"=hair_l, "layer"=-HAIR_LAYER)
|
||||||
|
|
||||||
|
|||||||
@@ -439,7 +439,7 @@
|
|||||||
else
|
else
|
||||||
dat += "<pre>Requested medical record not found.</pre><BR>"
|
dat += "<pre>Requested medical record not found.</pre><BR>"
|
||||||
if ((istype(src.medicalActive2, /datum/data/record) && data_core.medical.Find(src.medicalActive2)))
|
if ((istype(src.medicalActive2, /datum/data/record) && data_core.medical.Find(src.medicalActive2)))
|
||||||
dat += text("<BR>\n<CENTER><B>Medical Data</B></CENTER><BR>\nBlood Type: <A href='?src=\ref[];field=b_type'>[]</A><BR>\nDNA: <A href='?src=\ref[];field=b_dna'>[]</A><BR>\n<BR>\nMinor Disabilities: <A href='?src=\ref[];field=mi_dis'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=mi_dis_d'>[]</A><BR>\n<BR>\nMajor Disabilities: <A href='?src=\ref[];field=ma_dis'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=ma_dis_d'>[]</A><BR>\n<BR>\nAllergies: <A href='?src=\ref[];field=alg'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=alg_d'>[]</A><BR>\n<BR>\nCurrent Diseases: <A href='?src=\ref[];field=cdi'>[]</A> (per disease info placed in log/comment section)<BR>\nDetails: <A href='?src=\ref[];field=cdi_d'>[]</A><BR>\n<BR>\nImportant Notes:<BR>\n\t<A href='?src=\ref[];field=notes'>[]</A><BR>\n<BR>\n<CENTER><B>Comments/Log</B></CENTER><BR>", src, src.medicalActive2.fields["b_type"], src, src.medicalActive2.fields["b_dna"], src, src.medicalActive2.fields["mi_dis"], src, src.medicalActive2.fields["mi_dis_d"], src, src.medicalActive2.fields["ma_dis"], src, src.medicalActive2.fields["ma_dis_d"], src, src.medicalActive2.fields["alg"], src, src.medicalActive2.fields["alg_d"], src, src.medicalActive2.fields["cdi"], src, src.medicalActive2.fields["cdi_d"], src, src.medicalActive2.fields["notes"])
|
dat += text("<BR>\n<CENTER><B>Medical Data</B></CENTER><BR>\nBlood Type: <A href='?src=\ref[];field=blood_type'>[]</A><BR>\nDNA: <A href='?src=\ref[];field=b_dna'>[]</A><BR>\n<BR>\nMinor Disabilities: <A href='?src=\ref[];field=mi_dis'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=mi_dis_d'>[]</A><BR>\n<BR>\nMajor Disabilities: <A href='?src=\ref[];field=ma_dis'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=ma_dis_d'>[]</A><BR>\n<BR>\nAllergies: <A href='?src=\ref[];field=alg'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=alg_d'>[]</A><BR>\n<BR>\nCurrent Diseases: <A href='?src=\ref[];field=cdi'>[]</A> (per disease info placed in log/comment section)<BR>\nDetails: <A href='?src=\ref[];field=cdi_d'>[]</A><BR>\n<BR>\nImportant Notes:<BR>\n\t<A href='?src=\ref[];field=notes'>[]</A><BR>\n<BR>\n<CENTER><B>Comments/Log</B></CENTER><BR>", src, src.medicalActive2.fields["blood_type"], src, src.medicalActive2.fields["b_dna"], src, src.medicalActive2.fields["mi_dis"], src, src.medicalActive2.fields["mi_dis_d"], src, src.medicalActive2.fields["ma_dis"], src, src.medicalActive2.fields["ma_dis_d"], src, src.medicalActive2.fields["alg"], src, src.medicalActive2.fields["alg_d"], src, src.medicalActive2.fields["cdi"], src, src.medicalActive2.fields["cdi_d"], src, src.medicalActive2.fields["notes"])
|
||||||
else
|
else
|
||||||
dat += "<pre>Requested medical record not found.</pre><BR>"
|
dat += "<pre>Requested medical record not found.</pre><BR>"
|
||||||
dat += text("<BR>\n<A href='?src=\ref[];software=medicalrecord;sub=0'>Back</A><BR>", src)
|
dat += text("<BR>\n<A href='?src=\ref[];software=medicalrecord;sub=0'>Back</A><BR>", src)
|
||||||
|
|||||||
@@ -38,8 +38,8 @@ Put (mob/proc)s here that are in dire need of a code cleanup.
|
|||||||
if(force_species_check)
|
if(force_species_check)
|
||||||
var/fail = 1
|
var/fail = 1
|
||||||
for(var/name in virus.affected_species)
|
for(var/name in virus.affected_species)
|
||||||
var/mob_type = text2path("/mob/living/carbon/[lowertext(name)]")
|
var/moblood_type = text2path("/mob/living/carbon/[lowertext(name)]")
|
||||||
if(mob_type && istype(src, mob_type))
|
if(moblood_type && istype(src, moblood_type))
|
||||||
fail = 0
|
fail = 0
|
||||||
break
|
break
|
||||||
if(fail) return
|
if(fail) return
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//This proc is the most basic of the procs. All it does is make a new mob on the same tile and transfer over a few variables.
|
//This proc is the most basic of the procs. All it does is make a new mob on the same tile and transfer over a few variables.
|
||||||
//Returns the new mob
|
//Returns the new mob
|
||||||
//Note that this proc does NOT do MMI related stuff!
|
//Note that this proc does NOT do MMI related stuff!
|
||||||
/mob/proc/change_mob_type(var/new_type = null, var/turf/location = null, var/new_name = null as text, var/delete_old_mob = 0 as num)
|
/mob/proc/change_moblood_type(var/new_type = null, var/turf/location = null, var/new_name = null as text, var/delete_old_mob = 0 as num)
|
||||||
|
|
||||||
if(istype(src,/mob/new_player))
|
if(istype(src,/mob/new_player))
|
||||||
usr << "\red cannot convert players who have not entered yet."
|
usr << "\red cannot convert players who have not entered yet."
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
new_type = text2path(new_type)
|
new_type = text2path(new_type)
|
||||||
|
|
||||||
if( !ispath(new_type) )
|
if( !ispath(new_type) )
|
||||||
usr << "Invalid type path (new_type = [new_type]) in change_mob_type(). Contact a coder."
|
usr << "Invalid type path (new_type = [new_type]) in change_moblood_type(). Contact a coder."
|
||||||
return
|
return
|
||||||
|
|
||||||
if( new_type == /mob/new_player )
|
if( new_type == /mob/new_player )
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
M = new new_type( src.loc )
|
M = new new_type( src.loc )
|
||||||
|
|
||||||
if(!M || !ismob(M))
|
if(!M || !ismob(M))
|
||||||
usr << "Type path is not a mob (new_type = [new_type]) in change_mob_type(). Contact a coder."
|
usr << "Type path is not a mob (new_type = [new_type]) in change_moblood_type(). Contact a coder."
|
||||||
del(M)
|
del(M)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -327,7 +327,7 @@
|
|||||||
|
|
||||||
new_character.name = real_name
|
new_character.name = real_name
|
||||||
|
|
||||||
ready_dna(new_character, client.prefs.b_type)
|
ready_dna(new_character, client.prefs.blood_type)
|
||||||
|
|
||||||
new_character.key = key //Manually transfer the key to log them in
|
new_character.key = key //Manually transfer the key to log them in
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ datum/preferences
|
|||||||
gender = pick(MALE,FEMALE)
|
gender = pick(MALE,FEMALE)
|
||||||
underwear = random_underwear(gender)
|
underwear = random_underwear(gender)
|
||||||
skin_tone = random_skin_tone()
|
skin_tone = random_skin_tone()
|
||||||
h_style = random_hair_style(gender)
|
hair_style = random_hair_style(gender)
|
||||||
f_style = random_facial_hair_style(gender)
|
facial_hair_style = random_facial_hair_style(gender)
|
||||||
h_color = random_short_color()
|
hair_color = random_short_color()
|
||||||
f_color = h_color
|
facial_hair_color = hair_color
|
||||||
eye_color = random_eye_color()
|
eye_color = random_eye_color()
|
||||||
backbag = 2
|
backbag = 2
|
||||||
age = rand(AGE_MIN,AGE_MAX)
|
age = rand(AGE_MIN,AGE_MAX)
|
||||||
@@ -25,24 +25,25 @@ datum/preferences
|
|||||||
|
|
||||||
preview_icon = new /icon('icons/mob/human.dmi', "[skin_tone]_[g]_s")
|
preview_icon = new /icon('icons/mob/human.dmi', "[skin_tone]_[g]_s")
|
||||||
|
|
||||||
|
var/datum/sprite_accessory/S
|
||||||
if(underwear)
|
if(underwear)
|
||||||
var/datum/sprite_accessory/underwear/U = underwear_all[underwear]
|
S = underwear_all[underwear]
|
||||||
if(U)
|
if(S)
|
||||||
preview_icon.Blend(new /icon(U.icon, "[U.icon_state]_s"), ICON_OVERLAY)
|
preview_icon.Blend(new /icon(S.icon, "[S.icon_state]_s"), ICON_OVERLAY)
|
||||||
|
|
||||||
var/icon/eyes_s = new/icon("icon" = 'icons/mob/human_face.dmi', "icon_state" = "eyes_s")
|
var/icon/eyes_s = new/icon("icon" = 'icons/mob/human_face.dmi', "icon_state" = "eyes_s")
|
||||||
eyes_s.Blend("#[eye_color]", ICON_ADD)
|
eyes_s.Blend("#[eye_color]", ICON_ADD)
|
||||||
|
|
||||||
var/datum/sprite_accessory/hair_style = hair_styles_list[h_style]
|
S = hair_styles_list[hair_style]
|
||||||
if(hair_style)
|
if(S)
|
||||||
var/icon/hair_s = new/icon("icon" = hair_style.icon, "icon_state" = "[hair_style.icon_state]_s")
|
var/icon/hair_s = new/icon("icon" = S.icon, "icon_state" = "[S.icon_state]_s")
|
||||||
hair_s.Blend("#[h_color]", ICON_ADD)
|
hair_s.Blend("#[hair_color]", ICON_ADD)
|
||||||
eyes_s.Blend(hair_s, ICON_OVERLAY)
|
eyes_s.Blend(hair_s, ICON_OVERLAY)
|
||||||
|
|
||||||
var/datum/sprite_accessory/facial_hair_style = facial_hair_styles_list[f_style]
|
S = facial_hair_styles_list[facial_hair_style]
|
||||||
if(facial_hair_style)
|
if(S)
|
||||||
var/icon/facial_s = new/icon("icon" = facial_hair_style.icon, "icon_state" = "[facial_hair_style.icon_state]_s")
|
var/icon/facial_s = new/icon("icon" = S.icon, "icon_state" = "[S.icon_state]_s")
|
||||||
facial_s.Blend("#[f_color]", ICON_ADD)
|
facial_s.Blend("#[facial_hair_color]", ICON_ADD)
|
||||||
eyes_s.Blend(facial_s, ICON_OVERLAY)
|
eyes_s.Blend(facial_s, ICON_OVERLAY)
|
||||||
|
|
||||||
var/icon/clothes_s = null
|
var/icon/clothes_s = null
|
||||||
|
|||||||
@@ -128,7 +128,7 @@
|
|||||||
var/obj/item/weapon/paper/P = new /obj/item/weapon/paper(src)
|
var/obj/item/weapon/paper/P = new /obj/item/weapon/paper(src)
|
||||||
P.info = "<CENTER><B>Medical Record</B></CENTER><BR>"
|
P.info = "<CENTER><B>Medical Record</B></CENTER><BR>"
|
||||||
P.info += "Name: [G.fields["name"]] ID: [G.fields["id"]]<BR>\nSex: [G.fields["sex"]]<BR>\nAge: [G.fields["age"]]<BR>\nFingerprint: [G.fields["fingerprint"]]<BR>\nPhysical Status: [G.fields["p_stat"]]<BR>\nMental Status: [G.fields["m_stat"]]<BR>"
|
P.info += "Name: [G.fields["name"]] ID: [G.fields["id"]]<BR>\nSex: [G.fields["sex"]]<BR>\nAge: [G.fields["age"]]<BR>\nFingerprint: [G.fields["fingerprint"]]<BR>\nPhysical Status: [G.fields["p_stat"]]<BR>\nMental Status: [G.fields["m_stat"]]<BR>"
|
||||||
P.info += "<BR>\n<CENTER><B>Medical Data</B></CENTER><BR>\nBlood Type: [M.fields["b_type"]]<BR>\nDNA: [M.fields["b_dna"]]<BR>\n<BR>\nMinor Disabilities: [M.fields["mi_dis"]]<BR>\nDetails: [M.fields["mi_dis_d"]]<BR>\n<BR>\nMajor Disabilities: [M.fields["ma_dis"]]<BR>\nDetails: [M.fields["ma_dis_d"]]<BR>\n<BR>\nAllergies: [M.fields["alg"]]<BR>\nDetails: [M.fields["alg_d"]]<BR>\n<BR>\nCurrent Diseases: [M.fields["cdi"]] (per disease info placed in log/comment section)<BR>\nDetails: [M.fields["cdi_d"]]<BR>\n<BR>\nImportant Notes:<BR>\n\t[M.fields["notes"]]<BR>\n<BR>\n<CENTER><B>Comments/Log</B></CENTER><BR>"
|
P.info += "<BR>\n<CENTER><B>Medical Data</B></CENTER><BR>\nBlood Type: [M.fields["blood_type"]]<BR>\nDNA: [M.fields["b_dna"]]<BR>\n<BR>\nMinor Disabilities: [M.fields["mi_dis"]]<BR>\nDetails: [M.fields["mi_dis_d"]]<BR>\n<BR>\nMajor Disabilities: [M.fields["ma_dis"]]<BR>\nDetails: [M.fields["ma_dis_d"]]<BR>\n<BR>\nAllergies: [M.fields["alg"]]<BR>\nDetails: [M.fields["alg_d"]]<BR>\n<BR>\nCurrent Diseases: [M.fields["cdi"]] (per disease info placed in log/comment section)<BR>\nDetails: [M.fields["cdi_d"]]<BR>\n<BR>\nImportant Notes:<BR>\n\t[M.fields["notes"]]<BR>\n<BR>\n<CENTER><B>Comments/Log</B></CENTER><BR>"
|
||||||
var/counter = 1
|
var/counter = 1
|
||||||
while(M.fields["com_[counter]"])
|
while(M.fields["com_[counter]"])
|
||||||
P.info += "[M.fields["com_[counter]"]]<BR>"
|
P.info += "[M.fields["com_[counter]"]]<BR>"
|
||||||
|
|||||||
@@ -1659,8 +1659,8 @@ datum
|
|||||||
H.update_damage_overlays(0)
|
H.update_damage_overlays(0)
|
||||||
if(prob(meltprob)) //Applies disfigurement
|
if(prob(meltprob)) //Applies disfigurement
|
||||||
H.emote("scream")
|
H.emote("scream")
|
||||||
H.f_style = "Shaved"
|
H.facial_hair_style = "Shaved"
|
||||||
H.h_style = "Bald"
|
H.hair_style = "Bald"
|
||||||
H.update_hair(0)
|
H.update_hair(0)
|
||||||
H.status_flags |= DISFIGURED
|
H.status_flags |= DISFIGURED
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
B.data["resistances"] = T.resistances.Copy()
|
B.data["resistances"] = T.resistances.Copy()
|
||||||
if(istype(target, /mob/living/carbon/human))//I wish there was some hasproperty operation...
|
if(istype(target, /mob/living/carbon/human))//I wish there was some hasproperty operation...
|
||||||
var/mob/living/carbon/human/HT = target
|
var/mob/living/carbon/human/HT = target
|
||||||
B.data["blood_type"] = copytext(HT.dna.b_type,1,0)
|
B.data["blood_type"] = copytext(HT.dna.blood_type,1,0)
|
||||||
var/list/temp_chem = list()
|
var/list/temp_chem = list()
|
||||||
for(var/datum/reagent/R in target.reagents.reagent_list)
|
for(var/datum/reagent/R in target.reagents.reagent_list)
|
||||||
temp_chem += R.name
|
temp_chem += R.name
|
||||||
|
|||||||
Reference in New Issue
Block a user