2021-01-16 13:14:00 +00:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"title": "Encounters",
|
|
|
|
"description": "A schema for route encounters.",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"$schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"patternProperties": {
|
|
|
|
"^.*$": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"species",
|
|
|
|
"time",
|
|
|
|
"type",
|
|
|
|
"chance",
|
|
|
|
"minimumlvl",
|
|
|
|
"maximumlvl"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"species": {
|
2021-01-16 14:23:33 +00:00
|
|
|
"type": "string",
|
|
|
|
"description": "The species that may be encountered"
|
2021-01-16 13:14:00 +00:00
|
|
|
},
|
|
|
|
"time": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"enum": ["morning", "day", "evening", "night"]
|
2021-01-16 14:23:33 +00:00
|
|
|
},
|
|
|
|
"description": "The time the encounter may occur."
|
2021-01-16 13:14:00 +00:00
|
|
|
},
|
|
|
|
"type": {
|
2021-01-16 14:23:33 +00:00
|
|
|
"enum": ["grass", "oldrod", "goodrod", "superrod", "surf"],
|
|
|
|
"description": "The method with which the encounter occurs."
|
2021-01-16 13:14:00 +00:00
|
|
|
},
|
|
|
|
"chance": {
|
2021-01-16 14:23:33 +00:00
|
|
|
"type": "integer",
|
|
|
|
"description": "The weight of the encounter chance, relative to the total weight of valid encounters."
|
2021-01-16 13:14:00 +00:00
|
|
|
},
|
|
|
|
"minimumLevel": {
|
2021-01-16 14:23:33 +00:00
|
|
|
"type": "integer",
|
|
|
|
"description": "The lowest possible level the encounter may have."
|
2021-01-16 13:14:00 +00:00
|
|
|
},
|
|
|
|
"maximumlvl": {
|
2021-01-16 14:23:33 +00:00
|
|
|
"type": "integer",
|
|
|
|
"description": "The highest possible level the encounter may have."
|
2021-01-16 14:15:58 +00:00
|
|
|
},
|
|
|
|
"formes": {
|
|
|
|
"type": "array",
|
2021-01-16 14:23:33 +00:00
|
|
|
"description": "An optional definition to chance which formes may be encountered. If not given defaults to default forme.",
|
2021-01-16 14:15:58 +00:00
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"forme": {
|
2021-01-16 14:23:33 +00:00
|
|
|
"type": "string",
|
|
|
|
"description": "The forme name that may be encountered"
|
2021-01-16 14:15:58 +00:00
|
|
|
},
|
|
|
|
"chance": {
|
2021-01-16 14:23:33 +00:00
|
|
|
"type": "integer",
|
|
|
|
"description": "The weight of the forme chance, relative to the total weight of valid formes."
|
2021-01-16 14:15:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-16 13:14:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|