def genesea(inp):
# Move all these settings into a .txt file that it gets loaded from at start of program?
# That would be a memory and CPU hog, unless I put it in a .py in a cavern subfolder . . .
# Not today, but a possible tidying step in the future. For now, one slurry file.
# Blank Setting
blank = {
"controls": { # SS: as seadweller. Ss/sS: check genes. ss: as landdweller.
0: "", # Ears, fins, wfingers, wtoes
1: "", # gillneck, gillneckt, gillribs, gillribt, gillface, gillfacet, salt, air
2: "", # bladders
3: "", # biolum, teeth # move teeth doubling gene?
4: "", # dorsal/bodyfins, eyelids, # move doubled eyelid gene elsewhere?
},
"bladders": "", # BB several, Bb one, bb none.
"ears": "", # EE full, Ee / eE half, ee none.
"cheekfins": "", # CC full, Cc / cC half, cc none.
# Make subgenes for earfin size, number of tines, etc.
"wfingers": "", # WW full, Ww / wW half, ww none. webbing
"wtoes": "", # WW full, Ww / wW half, ww none. webbing
"dorsalfins": "", # FF big, Ff / fF small, ff none.
"biolum": "", # BB full, Bb / bB partial, bb none.
# Create subgenes for patterning, brightness, voluntary/reflexive...
# conscious/unconscious, steady state / bloodflow,
# fin glow, eye glow, stripes, freckles, ...
"gillneck": {"main": "", # GG Full, Gg/gG half, gg none
"type": ""}, # i internal, e external
"gillribs": {"main": "", # GG Full, Gg/gG half, gg none
"type": ""}, # i internal, e external
"gillface": {"main": "", # GG Full, Gg/gG half, gg none
"type": ""}, # i internal, e external
"toothdouble": "", # Move to Teeth. tt land, TT barracuda, Tt blend, D doubled, d singled.
"eyelids": "", # Move to Eyes. EE lids, Ee/eE permanent transparent layer, ee normal land.
"salt": "", # Move to Organs. Ss salt, Bb brackish, Ff freshwater.
"air": "", # Move to Organs. Can you breathe air? aaaa = no, anything else = yes.
}
# Primary settings
land = {
"controls": {0: "ss", 1: "ss", 2: "ss", 3: "ss", 4: "ss"},
"bladders": "bb", "ears": "EE", "cheekfins": "cc",
"wfingers": "ww", "wtoes": "ww", "dorsalfins": "ff", "biolum": "bb",
"gillneck": {"main": "gg", "type": "i"},
"gillribs": {"main": "gg", "type": "i"},
"gillface": {"main": "gg", "type": "i"},
"toothdouble": "dd", "eyelids": "ee",
"salt": "sbf", "air": "AAAA"}
sea = {
"controls": {0: "SS", 1: "SS", 2: "SS", 3: "SS", 4: "SS"},
"bladders": "bb", "ears": "ee", "cheekfins": "CC",
"wfingers": "Ww", "wtoes": "Ww", "dorsalfins": "ff", "biolum": "Bb",
"gillneck": {"main": "GG", "type": "i"},
"gillribs": {"main": "GG", "type": "i"},
"gillface": {"main": "gg", "type": "i"},
"toothdouble": "Dd", "eyelids": "Ee",
"salt": "SBF", "air": "AAAA"}
# Secondaries
deepsea = {
"controls": {0: "SS", 1: "SS", 2: "SS", 3: "SS", 4: "SS"},
"bladders": "BB", "ears": "ee", "cheekfins": "CC",
"wfingers": "WW", "wtoes": "WW", "dorsalfins": "FF", "biolum": "BB",
"gillneck": {"main": "GG", "type": "i"},
"gillribs": {"main": "GG", "type": "i"},
"gillface": {"main": "GG", "type": "i"},
"toothdouble": "DD", "eyelids": "EE",
"salt": "Sbf", "air": "aaaa"},
river = {
"controls": {0: "Ss", 1: "Ss", 2: "ss", 3: "ss", 4: "ss"},
"bladders": "bb", "ears": "Ee", "cheekfins": "cC",
"wfingers": "Ww", "wtoes": "Ww", "dorsalfins": "ff", "biolum": "bb",
"gillneck": {"main": "Gg", "type": "i"},
"gillribs": {"main": "gg", "type": "i"},
"gillface": {"main": "gg", "type": "i"},
"toothdouble": "dd", "eyelids": "ee",
"salt": "sbF", "air": "AAAA"},
seahidden = {
"controls": {0: "sS", 1: "ss", 2: "ss", 3: "ss", 4: "ss"},
"bladders": "bb", "ears": "EE", "cheekfins": "cc",
"wfingers": "ww", "wtoes": "wW", "dorsalfins": "ff", "biolum": "bb",
"gillneck": {"main": "gg", "type": "i"},
"gillribs": {"main": "GG", "type": "i"},
"gillface": {"main": "gg", "type": "i"},
"toothdouble": "dd", "eyelids": "ee",
"salt": "SBF", "air": "AAAA"},
landsea = {
"controls": {0: "SS", 1: "SS", 2: "SS", 3: "SS", 4: "SS"},
"bladders": "bb", "ears": "EE", "cheekfins": "cc",
"wfingers": "ww", "wtoes": "ww", "dorsalfins": "ff", "biolum": "bb",
"gillneck": {"main": "gg", "type": "i"},
"gillribs": {"main": "gg", "type": "i"},
"gillface": {"main": "gg", "type": "i"},
"toothdouble": "dd", "eyelids": "ee",
"salt": "sbf", "air": "AAAA"},
sealand = {
"controls": {0: "ss", 1: "ss", 2: "ss", 3: "ss", 4: "ss"},
"bladders": "bb", "ears": "ee", "cheekfins": "CC",
"wfingers": "Ww", "wtoes": "Ww", "dorsalfins": "ff", "biolum": "Bb",
"gillneck": {"main": "GG", "type": "i"},
"gillribs": {"main": "GG", "type": "i"},
"gillface": {"main": "gg", "type": "i"},
"toothdouble": "Dd", "eyelids": "Ee",
"salt": "SBF", "air": "AAAA"},
webbed = {
"controls": {0: "sS", 1: "ss", 2: "ss", 3: "ss", 4: "ss"},
"bladders": "bb", "ears": "ee", "cheekfins": "CC",
"wfingers": "WW", "wtoes": "WW", "dorsalfins": "ff", "biolum": "bb",
"gillneck": {"main": "gg", "type": "i"},
"gillribs": {"main": "gg", "type": "i"},
"gillface": {"main": "gg", "type": "i"},
"toothdouble": "dd", "eyelids": "ee",
"salt": "sbf", "air": "AAAA"},
bladder = {
"controls": {0: "ss", 1: "ss", 2: "Ss", 3: "ss", 4: "ss"},
"bladders": "BB", "ears": "EE", "cheekfins": "cc",
"wfingers": "ww", "wtoes": "ww", "dorsalfins": "ff", "biolum": "bb",
"gillneck": {"main": "gg", "type": "i"},
"gillribs": {"main": "gg", "type": "i"},
"gillface": {"main": "gg", "type": "i"},
"toothdouble": "dd", "eyelids": "ee",
"salt": "sbf", "air": "AAAA"},
bodyfins = {
"controls": {0: "ss", 1: "ss", 2: "ss", 3: "ss", 4: "Ss"},
"bladders": "bb", "ears": "EE", "cheekfins": "cc",
"wfingers": "ww", "wtoes": "ww", "dorsalfins": "FF", "biolum": "bb",
"gillneck": {"main": "gg", "type": "i"},
"gillribs": {"main": "gg", "type": "i"},
"gillface": {"main": "gg", "type": "i"},
"toothdouble": "dd", "eyelids": "ee",
"salt": "sbf", "air": "AAAA"},
nonviable = { # no ears/fins, can't breathe.
"controls": {0: "Ss", 1: "Ss", 2: "ss", 3: "ss", 4: "ss"},
"bladders": "bb", "ears": "ee", "cheekfins": "cc",
"wfingers": "WW", "wtoes": "WW", "dorsalfins": "fF", "biolum": "bb",
"gillneck": {"main": "GG", "type": "i"},
"gillribs": {"main": "GG", "type": "i"},
"gillface": {"main": "GG", "type": "i"},
"toothdouble": "dd", "eyelids": "EE",
"salt": "sbf", "air": "aaaa"},
# The actual meat
gene = blank # Initialize it as empty.
# Each entry given an individual mention in case I want to add individual quirks later.
if inp == "blank":
gene = blank
if inp == "land":
gene = land
if inp == "sea":
gene = sea
if inp == "deepsea":
gene = deepsea
if inp == "river":
gene = river
if inp == "seahidden":
gene = seahidden
if inp == "landsea":
gene = landsea
if inp == "sealand":
gene = sealand
if inp == "webbed":
gene = webbed
if inp == "bladder":
gene = bladder
if inp == "bodyfins":
gene = bodyfins
if inp == "nonviable":
gene = nonviable
if inp == "RR": # Maroon
gene = land
if inp == "Rr":
gene = land
if inp == "rr": # Bronze
gene = land
if inp == "rG":
gene = land
gene["toothdouble"] = "dD"
if inp == "RG": # Gold
gene = land
gene["controls"][3] = "SS"
gene["biolum"] = "Bb"
gene["toothdouble"] = "Dd"
gene["eyelids"] = "Ee"
if inp == "Rg":
gene = land
gene["biolum"] = "bB"
if inp == "rg": # Lime
gene = land
if inp == "GG": # Olive
gene = land
if inp == "Gg":
gene = land
gene["controls"][3] = "SS"
if inp == "gg": # Jade
gene = land
gene["biolum"] = "BB"
if inp == "Gb":
gene = land
gene["controls"][3] = "SS"
if inp == "GB": # Teal
gene = land
if inp == "gB":
gene = land
if inp == "gb": # Ceru
gene = land
if inp == "BB": # Bloo
gene = land
if inp == "Bb":
gene = land
if inp == "bb": # Indigo
gene = land
gene["cheekfins"] = "Cc"
gene["ears"] = "EE"
gene["bodyfins"] = "Ff"
gene["wtoes"] = "Ww"
if inp == "rB":
gene = land
gene["controls"][0] = "SS"
gene["controls"][1] = "SS"
gene["cheekfins"] = "Cc"
gene["ears"] = "Ee"
gene["wtoes"] = "Ww"
gene["gillribs"] = sea["gillribs"]
gene["gillneck"] = sea["gillneck"]
gene["eyelids"] = sea["eyelids"]
if inp == "RB": # Violet
gene = sea
gene["salt"] = "SBF"
if inp == "Rb":
gene = sea
gene["wtoes"] = "WW"
gene["bodyfins"] = "Ff"
gene["salt"] = "SBf"
gene["biolum"] = "BB"
if inp == "rb": # Tyrian
gene = sea
gene["wtoes"] = "WW"
gene["salt"] = "Sbf"
gene["biolum"] = "BB"
gene["gillface"] = sea["gillribs"]
return gene