Merge pull request #64 from Blockception/54-update-minecraftgenetics

Updated genetics #54
This commit is contained in:
Daan Verstraten
2022-07-14 09:46:49 +02:00
committed by GitHub

View File

@@ -25,13 +25,13 @@
"range_min": { "range_min": {
"type": "integer", "type": "integer",
"default": 0, "default": 0,
"description": "Lower bound", "description": "Lower bound of the vaues.",
"title": "Range Minimum" "title": "Range Minimum"
}, },
"range_max": { "range_max": {
"type": "integer", "type": "integer",
"default": 0, "default": 0,
"description": "Upper bound", "description": "Upper bound of the vaues.",
"title": "Range Maximum" "title": "Range Maximum"
} }
} }
@@ -43,12 +43,13 @@
"mutation_rate": { "mutation_rate": {
"type": "number", "type": "number",
"description": "Chance that an allele will be replaced with a random one instead of the parent's allele during birth.", "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": { "genes": {
"type": "array",
"description": "Genes is a list defined by three parameters",
"title": "Genes", "title": "Genes",
"type": "array",
"description": "The list of genes that this entity has and will cross with a partner during breeding.",
"items": { "items": {
"type": "object", "type": "object",
"description": "The list of genes that this entity has and will cross with a partner during breeding.", "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" "$ref": "#/definitions/integer_range"
}, },
"genetic_variants": { "genetic_variants": {
"title": "Genetic Variants",
"type": "array", "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.", "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": { "items": {
"title": "Genetic Variants", "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.", "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" "title": "Brith Event"
}, },
"both_allele": { "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", "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" "$ref": "#/definitions/integer_range"
}, },
"either_allele": { "either_allele": {
"title": "Either Allele",
"type": "integer", "type": "integer",
"default": -1, "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." "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": { "hidden_allele": {
"title": "Hidden Allele",
"type": "integer", "type": "integer",
"default": -1, "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." "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": { "main_allele": {
"title": "Main Allele",
"default": -1, "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.", "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" "$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."
} }
} }
} }