Updated genetics #54

This commit is contained in:
DaanV2
2022-07-14 09:42:41 +02:00
parent 2ac110cf60
commit eee9d8c8c0

View File

@@ -25,13 +25,13 @@
"range_min": {
"type": "integer",
"default": 0,
"description": "Lower bound",
"description": "Lower bound of the vaues.",
"title": "Range Minimum"
},
"range_max": {
"type": "integer",
"default": 0,
"description": "Upper bound",
"description": "Upper bound of the vaues.",
"title": "Range Maximum"
}
}
@@ -43,12 +43,13 @@
"mutation_rate": {
"type": "number",
"description": "Chance that an allele will be replaced with a random one instead of the parent's allele during birth.",
"title": "Mutation Rate"
"title": "Mutation Rate",
"default": 0.03125
},
"genes": {
"type": "array",
"description": "Genes is a list defined by three parameters",
"title": "Genes",
"type": "array",
"description": "The list of genes that this entity has and will cross with a partner during breeding.",
"items": {
"type": "object",
"description": "The list of genes that this entity has and will cross with a partner during breeding.",
@@ -60,9 +61,9 @@
"$ref": "#/definitions/integer_range"
},
"genetic_variants": {
"title": "Genetic Variants",
"type": "array",
"description": "The list of genetic variants for this gene. These check for particular allele combinations and fire events when all of them are satisfied.",
"title": "Genetic Variants",
"items": {
"title": "Genetic Variants",
"description": "The genetic variant for this gene. These check for particular allele combinations and fire events when all of them are satisfied.",
@@ -74,27 +75,42 @@
"title": "Brith Event"
},
"both_allele": {
"description": "If this value is non-negative, compare both the mob's main and hidden alleles with this value for a match with both. Can also be a range of integers.",
"title": "Both Allele",
"default": -1,
"description": "If this value is non-negative, compare both the mob's main and hidden alleles with this value for a match with both. Can also be a range of integers.",
"$ref": "#/definitions/integer_range"
},
"either_allele": {
"title": "Either Allele",
"type": "integer",
"default": -1,
"description": "If this value is non-negative, compare both the mob's main and hidden alleles with this value for a match with either. Can also be a range of integers."
},
"hidden_allele": {
"title": "Hidden Allele",
"type": "integer",
"default": -1,
"description": "If this value is non-negative, compare the mob's hidden allele with this value for a match. Can also be a range of integers."
},
"main_allele": {
"title": "Main Allele",
"default": -1,
"description": "If this value is non-negative, compare the mob's main allele with this value for a match. Can also be a range of integers.",
"$ref": "#/definitions/integer_range"
},
"mutation_rate": {
"title": "Mutation Rate",
"type": "number",
"default": -1,
"description": "If this value is non-negative, overrides the chance for this gene that an allele will be replaced with a random one instead of the parent's allele during birth. Non-negative values greater than 1 will be the same as the value 1."
}
}
}
},
"name": {
"title": "Name",
"type": "string",
"description": "The name of the gene."
}
}
}