Skip to content

Commit

Permalink
restructure card schema to spirit schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Sup2point0 committed May 15, 2024
1 parent 1d89567 commit cb52592
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 76 deletions.
76 changes: 0 additions & 76 deletions resources/card-schema.json

This file was deleted.

72 changes: 72 additions & 0 deletions resources/schemas/spirit-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Victory Spirit Card Shema",
"description": "A spirit card in Victory!",
"required": ["Shard", "Name", "CardType", "Kind", "SpiritType"],
"additionalProperties": false,
"properties":
{
"Shard": {
"description": "Unique integer identifier for the card.",
"type": "integer"
},
"Name": {
"description": "Displayed name (capitalisation, spacing retained).",
"type": "string"
},
"CardType": {
"description": "Card type.",
"type": "string",
"enum": ["spirit", "spell"]
},
"Description": {
"description": "Flavour text for a non-effect spirit.",
"type": "string"
},
"Effects": {
"description": "List of effects of the card.",
"type": "array",
"items": {
"type": "object",
"properties": {
"Text": {"type": "string"},
"RequiredLevel": {"type": "integer"}
}
}
},
"Kind": {
"description": "Kind of the spirit.",
"enum": ["STANDARD", "UPGRADE", "FUSION"]
},
"SpiritType": {
"description": "Type of the spirit.",
"enum": ["CYBERNETIC"]
},
"Power": {
"description": "Base power stat determining outcomes of battles with other spirits.",
"oneOf": [
{"type": "integer", "minimum": 0},
{"enum": ["?"]}
]
},
"Sacrifices": {
"description": "Number of sacrifices required for a sacrifice spawn.",
"type": "integer",
"minimum": 0,
"maximum": 3
},
"Materials": {
"description": "Materials required for a special spawn.",
"type": "integer"
},
"Upgrades": {
"description": "Dynamic variables which change when the card is upgraded.",
"type": "object",
"properties": {
"patternProperties": {
"[0-9]*": {"type": "string"}
}
}
}
}
}

0 comments on commit cb52592

Please sign in to comment.