-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathm3-enemies.schema.json
More file actions
258 lines (258 loc) · 9.02 KB
/
m3-enemies.schema.json
File metadata and controls
258 lines (258 loc) · 9.02 KB
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/vg-json-data/sm-json-data/master/schema/m3-enemies.schema.json",
"definitions": {
"enemyDrops": {
"type": "object",
"title": "Enemy Drop Rates",
"description": "Describes the drop table for the enemy. All individual values are out of 102.",
"required": ["noDrop", "smallEnergy", "bigEnergy", "missile", "super", "powerBomb"],
"additionalProperties": false,
"properties": {
"noDrop": {
"type": "number",
"title": "No Drop Rate",
"description": "Odds of dropping nothing (out of 102)",
"default": 0.0,
"examples": [0.0]
},
"smallEnergy": {
"type": "number",
"title": "Small Energy Drop Rate",
"description": "Odds of dropping small energy (out of 102)",
"default": 0.0,
"examples": [0.0]
},
"bigEnergy": {
"type": "number",
"title": "Big Energy Drop Rate",
"description": "Odds of dropping big energy (out of 102)",
"default": 0.0,
"examples": [0.0]
},
"missile": {
"type": "number",
"title": "Missile Drop Rate",
"description": "Odds of dropping missiles (out of 102)",
"default": 0.0,
"examples": [0.0]
},
"super": {
"type": "number",
"title": "Super Missile Drop Rate",
"description": "Odds of dropping super missiles (out of 102)",
"default": 0.0,
"examples": [0.0]
},
"powerBomb": {
"type": "number",
"title": "Power Bomb Drop Rate",
"description": "Odds of dropping power bombs (out of 102)",
"default": 0.0,
"examples": [0.0]
}
}
}
},
"type": "object",
"title": "Super Metroid Enemy Schema",
"properties": {
"$schema": {
"type": "string",
"title": "JSON Schema Path",
"description": "A path to the definition of this file's JSON schema."
},
"enemies": {
"type": "array",
"items": {
"type": "object",
"title": "Enemy Object",
"description": "An object that describes one enemy in Super Metroid",
"required": [
"id",
"name",
"attacks",
"hp",
"amountOfDrops",
"drops",
"dims",
"freezable",
"grapplable",
"invul",
"damageMultipliers"
],
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"title": "Enemy ID",
"description": "Identifier for this enemy, unique across the entire game",
"default": 0,
"examples": [1]
},
"name": {
"type": "string",
"title": "Enemy Name",
"description": "The enemy's name. Should be as it appears in the SuperMetroid.run wiki, except for enemies that are not present there. Intended to be unique and used as a recognizable ID.",
"default": "",
"examples": ["Beetom"],
"pattern": "^(.*)$"
},
"attacks": {
"type": "array",
"title": "Enemy Attacks",
"description": "An array of attacks the enemy can do",
"items": {
"type": "object",
"title": "Enemy Attack",
"description": "An attack the enemy can do",
"required": ["name", "baseDamage"],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"title": "Attack Name",
"default": "contact",
"description": "The name of the attack",
"pattern": "^(.*)$"
},
"baseDamage": {
"type": "integer",
"default": 0,
"title": "Base Damage",
"description": "The base damage (with only power suit) the attack does to Samus"
},
"affectedByVaria": {
"type": "boolean",
"title": "Affected by Varia",
"description": "Indicates whether Varia applies a damage reduction on this attack. If missing, should be assumed to be true."
},
"affectedByGravity": {
"type": "boolean",
"title": "Affected by Gravity",
"description": "Indicates whether Gravity Suit applies a damage reduction on this attack. If missing, should be assumed to be true."
}
}
}
},
"hp": {
"type": "integer",
"title": "Enemy HP",
"description": "Amount of health points that the Enemy has",
"default": 0,
"examples": [50]
},
"amountOfDrops": {
"type": "integer",
"title": "Amount of Drops",
"description": "Amount of drops the enemy leaves behind",
"default": 1,
"examples": [16]
},
"note": {
"$ref": "m3-note.schema.json#/definitions/note"
},
"devNote": {
"$ref": "m3-note.schema.json#/definitions/devNote"
},
"drops": {
"$ref": "#/definitions/enemyDrops",
"title": "Enemy Drops",
"description": "Describes the drop table for the enemy. All individual values are out of 102."
},
"farmableDrops": {
"$ref": "#/definitions/enemyDrops",
"title": "Farmable Particle Drop Rates",
"description": "Describes the drop table for farmable particles spawned by the enemy. All individual values are out of 102."
},
"dims": {
"type": "object",
"title": "Enemy Sprite Dimensions",
"description": "Dimensions in pixels",
"required": ["w", "h"],
"additionalProperties": false,
"properties": {
"w": {
"type": "integer",
"title": "Width",
"description": "Width of the enemy (in pixels)",
"default": 0,
"examples": [8]
},
"h": {
"type": "integer",
"title": "Height",
"description": "Height of the enemy (in pixels)",
"default": 0,
"examples": [8]
},
"note": {
"$ref": "m3-note.schema.json#/definitions/note"
},
"devNote": {
"$ref": "m3-note.schema.json#/definitions/devNote"
}
}
},
"freezable": {
"type": "boolean",
"title": "Freezable?",
"description": "Can this Enemy be frozen by Ice Beam?",
"default": false,
"examples": [false]
},
"grapplable": {
"type": "boolean",
"title": "Grapplable?",
"description": "Can Samus latch on to this enemy using Grapple beam?",
"default": false
},
"invul": {
"type": ["array"],
"title": "Invulnerability",
"description": "A list containing weapons and weapon categories that can't damage this enemy",
"default": [],
"items": {
"type": "string",
"pattern": "^(.*)$"
}
},
"damageMultipliers": {
"type": "array",
"title": "Damage Multipliers",
"description": "A list containing damage multipliers for weapons and weapon categories",
"items": {
"type": "object",
"title": "Enemy Damage Multiplier",
"description": "A damage multiplier (either a vulnerability or a resistance) for an enemy",
"required": ["weapon", "value"],
"additionalProperties": false,
"properties": {
"weapon": {
"title": "Multiplier Weapon",
"description": "The name of the weapon or category for which this damage multiplier applies.",
"type": "string"
},
"value": {
"title": "Multiplier Value",
"description": "The damage multiplier that is applied to an applicable weapon's base damage.",
"type": "number"
}
}
}
},
"areas": {
"type": "array",
"title": "Enemy Areas",
"description": "The list of areas where the enemy naturally appears",
"items": {
"title": "Enemy Area",
"description": "An area where the enemy naturally appears",
"type": "string"
}
}
}
}
}
}
}