๐Ÿ“ฆ RobLoach / vscode-unciv

๐Ÿ“„ Nations.schema.json ยท 181 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181{
  "$id": "https://raw.githubusercontent.com/yairm210/Unciv/refs/heads/master/docs/Modders/schemas/Nations.schema.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Nations",
  "description": "A list of nations, including their leaders, colors, and other attributes.",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string",
        "title": "Nation Name",
        "description": "The official name of the nation."
      },
      "leaderName": {
        "type": "string",
        "title": "Leader Name",
        "description": "The name of the leader representing the nation. Omit for city states."
      },
      "adjective": {
        "title": "Leader Adjectives",
        "type": "array",
        "items": {
          "type": "string"
        },
        "uniqueItems": true,
        "description": "The adjectives for the leader. Currently not in use."
      },
      "personality": {
        "type": "string",
        "title": "Leader Personality",
        "description": "Defines the personality type of the nation's leader. See Personalities.json."
      },
      "style": {
        "type": "string",
        "title": "Visual Style",
        "description": "Modifier appended to image names for visual differentiation."
      },
      "cityStateType": {
        "type": "string",
        "title": "City State Type",
        "description": "Type of city state, if applicable. See CityStateTypes.json",
        "examples": [
          "Cultured",
          "Maritime",
          "Mercantile",
          "Religious",
          "Militaristic"
        ]
      },
      "outerColor": {
        "$ref": "refs/Color.schema.json",
        "title": "Outer Color",
        "description": "The primary color representing the nation."
      },
      "innerColor": {
        "$ref": "refs/Color.schema.json",
        "title": "Inner Color",
        "description": "The secondary color representing the nation."
      },
      "preferredVictoryType": {
        "type": "string",
        "title": "Preferred Victory Type",
        "description": "The victory type most favored by this nation. See VictoryTypes.json.",
        "examples": ["Domination", "Science", "Cultural"]
      },
      "startBias": {
        "type": "array",
        "items": {
          "type": "string",
          "examples": ["Avoid [Tundra]", "Avoid [Desert]", "Coast", "Grassland"]
        },
        "uniqueItems": true,
        "title": "Start Bias",
        "description": "Types of tiles where the nation is more likely to start."
      },
      "uniques": {
        "$ref": "refs/Uniques.schema.json",
        "title": "Unique Abilities",
        "description": "Special abilities or traits unique to this nation."
      },
      "introduction": {
        "type": "string",
        "title": "Introduction",
        "description": "Text introducing the nation to the player."
      },
      "tradeRequest": {
        "type": "string",
        "title": "Trade Request",
        "description": "Text shown when the nation requests a trade."
      },
      "neutralHello": {
        "type": "string",
        "title": "Neutral Greeting",
        "description": "Greeting text when relations are neutral."
      },
      "hateHello": {
        "type": "string",
        "title": "Hostile Greeting",
        "description": "Greeting text when relations are hostile."
      },
      "declaringWar": {
        "type": "string",
        "title": "Declaring War",
        "description": "Text shown when the nation declares war."
      },
      "attacked": {
        "type": "string",
        "title": "Attacked",
        "description": "Text shown when the nation is attacked."
      },
      "defeated": {
        "type": "string",
        "title": "Defeated",
        "description": "Text shown when the nation is defeated."
      },
      "denounced": {
        "type": "string",
        "title": "Denounced",
        "description": "Text shown when the nation is denounced."
      },
      "declaringFriendship": {
        "type": "string",
        "title": "Declaring Friendship",
        "description": "Text shown when the nation declares friendship."
      },
      "startIntroPart1": {
        "type": "string",
        "title": "Start Introduction Part 1",
        "description": "First part of the introduction at the start of the game."
      },
      "startIntroPart2": {
        "type": "string",
        "title": "Start Introduction Part 2",
        "description": "Second part of the introduction at the start of the game."
      },
      "cities": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "uniqueItems": true,
        "title": "City Names",
        "description": "Ordered list of city names unique to the nation, starting with the capital."
      },
      "spyNames": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "uniqueItems": true,
        "title": "Spy Names",
        "description": "List of names for spies belonging to the nation."
      },
      "favoredReligion": {
        "type": "string",
        "title": "Favored Religion",
        "description": "The religion most favored by this nation.",
        "default": "",
        "examples": ["Islam", "Buddhism", "Taoism"]
      },
      "uniqueName": {
        "type": "string",
        "title": "Unique Name",
        "description": "Decorative name for the special characteristic of this nation."
      },
      "uniqueText": {
        "type": "string",
        "title": "Unique Description",
        "description": "Freeform text shown to users, overriding the list of uniques."
      },
      "civilopediaText": {
        "$ref": "refs/CivilopediaText.schema.json",
        "description": "Additional descriptive text for the nation in the Civilopedia."
      }
    },
    "required": ["name", "outerColor"],
    "additionalProperties": false
  }
}