Skip to content

Instantly share code, notes, and snippets.

@agraebe
Created December 5, 2020 00:05
Show Gist options
  • Save agraebe/83f452e7bae6028629529ecd599ea450 to your computer and use it in GitHub Desktop.
Save agraebe/83f452e7bae6028629529ecd599ea450 to your computer and use it in GitHub Desktop.
FF-VII Materia JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "FF VII Materia",
"description": "Materia definition",
"type": "object",
"required": [
"name",
"type",
"description",
"availability",
"pricing",
"modifiers"
],
"properties": {
"name": {
"type": "string",
"description": "Materia name"
},
"type": {
"type": "string",
"description": "Materia type",
"enum": ["magic", "summon", "command", "support", "independent"]
},
"description": {
"type": "string",
"description": "Materia description"
},
"availability": {
"type": "array",
"description": "Locations with availability",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string"
},
"amount": {
"type": "number"
}
}
}
},
"pricing": {
"type": "object",
"properties": {
"costs": {
"type": "number"
},
"masterPrice": {
"type": "number"
}
}
},
"modifiers": {
"type": "array",
"description": "Modifiers by level",
"items": {
"type": "object",
"properties": {
"level": {
"type": "number"
},
"description": {
"type": "string"
},
"requiredAp": {
"type": "number"
},
"effects": {
"type": "array",
"items": {
"type": "object",
"properties": {
"capability": {
"type": "string"
},
"modifier": {
"type": "number"
},
"operation": {
"type": "string"
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment