๐Ÿ“ฆ RobLoach / vscode-unciv

๐Ÿ“„ CityStateTypes.schema.json ยท 42 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42{
  "$id": "https://raw.githubusercontent.com/yairm210/Unciv/refs/heads/master/docs/Modders/schemas/CityStateTypes.schema.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "CityStateTypes",
  "description": "A list of city state types, including their bonuses and color information.",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string",
        "title": "Name",
        "description": "The name of the City State Type.",
        "examples": [
          "Cultured",
          "Maritime",
          "Mercantile",
          "Militaristic",
          "Religious"
        ]
      },
      "friendBonusUniques": {
        "$ref": "refs/Uniques.schema.json",
        "title": "Friend Bonus Uniques",
        "description": "List of unique abilities granted to major civilizations when friends with this city state"
      },
      "allyBonusUniques": {
        "$ref": "refs/Uniques.schema.json",
        "title": "Ally Bonus Uniques",
        "description": "List of unique abilities granted to major civilizations when allied to city state"
      },
      "color": {
        "$ref": "refs/Color.schema.json",
        "description": "RGB color of text in civilopedia",
        "default": [255, 255, 255]
      }
    },
    "required": ["name"],
    "additionalProperties": false
  }
}