Synthetic and RNG blood
This commit is contained in:
@@ -190,7 +190,6 @@
|
||||
if(!suiciding)
|
||||
blood_data["cloneable"] = 1
|
||||
blood_data["blood_type"] = copytext(dna.blood_type,1,0)
|
||||
blood_data["bloodcolor"] = blood_id.color
|
||||
blood_data["gender"] = gender
|
||||
blood_data["real_name"] = real_name
|
||||
blood_data["features"] = dna.features
|
||||
@@ -241,7 +240,10 @@
|
||||
"O-" = list("O-","SY"),
|
||||
"O+" = list("O-", "O+","SY"),
|
||||
"L" = list("L","SY"),
|
||||
"U" = list("A-", "A+", "B-", "B+", "O-", "O+", "AB-", "AB+", "L", "U","SY")
|
||||
"U" = list("A-", "A+", "B-", "B+", "O-", "O+", "AB-", "AB+", "L", "U","SY"),
|
||||
"oil" = list("oil", "SY"),
|
||||
"X*" = list("X*", "SY"),
|
||||
"SY" = list("SY")
|
||||
)
|
||||
|
||||
var/safe = bloodtypes_safe[bloodtype]
|
||||
|
||||
@@ -485,3 +485,18 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
|
||||
|
||||
/mob/proc/can_hear()
|
||||
. = TRUE
|
||||
|
||||
/proc/bloodtype_to_color(var/type)
|
||||
. = BLOOD_COLOR_HUMAN
|
||||
switch(type)
|
||||
if("U")//Universal blood; a bit orange
|
||||
. = "#DB3300"
|
||||
if("SY")//Synthetics blood; blue
|
||||
. = BLOOD_COLOR_SYNTHETIC
|
||||
if("L")//lizard, a bit pink/purple
|
||||
. = "#DB004D"
|
||||
if("X*")//xeno blood; not actually used in many spots
|
||||
. = BLOOD_COLOR_XENO
|
||||
if("OI")// Oil blood. something something why not
|
||||
. = BLOOD_COLOR_OIL
|
||||
//add more stuff to the switch if you have more blood colors for different types
|
||||
|
||||
Reference in New Issue
Block a user