-
Notifications
You must be signed in to change notification settings - Fork 0
/
statblock.json
128 lines (128 loc) · 3.97 KB
/
statblock.json
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
{
"$schema": "http://json-schema.org/draft-04/schema",
"properties": {
"maxHP": {
"description": "Maximum hit points",
"type": "integer"
},
"AC": {
"description": "Armor Class",
"type": "integer"
},
"PB": {
"description": "Proficiency Bonus",
"type": "integer"
},
"speed":{
"description": "Various movement speeds",
"type":"object",
"properties": {
"walking": {
"type": "integer"
},
"flying": {
"type": "integer"
}
}
},
"stats": {
"description": "Ability Scores",
"type": "object",
"properties": {
"STR": {"type":"integer"},
"DEX": {"type":"integer"},
"CON": {"type":"integer"},
"INT": {"type":"integer"},
"WIS": {"type":"integer"},
"CHA": {"type":"integer"}
},
"required": ["STR", "DEX", "CON", "INT", "WIS", "CHA"]
},
"proficiencies": {
"type": "object",
"properties": {
"skills": {
"type": "array",
"items": {
"enum": [
"athletics", "acrobatics", "sleight of hand",
"stealth", "arcana", "history", "investigation",
"nature", "religion", "animal handling", "insight",
"medicine", "perception", "survival", "deception",
"intimidation", "performance", "persuasion"
]
}
},
"saving throws":{
"type": "array",
"items": {"enum": ["STR", "DEX", "CON", "INT", "WIS", "CHA"]}
}
}
},
"actions": {
"type": "object",
"description": "Non-attack actions",
"patternProperties": {
"^.*$":{
"properties": {
"text": {"type":"string"},
"rolls": {"type":"object"},
"uses": {"type": "integer"}
}
}
}
},
"bonus actions": {
"type": "object",
"description": "Bonus actions",
"patternProperties": {
"^.*$":{
"properties": {
"text": {"type":"string"},
"rolls": {"type":"object"},
"uses": {"type": "integer"}
}
}
}
},
"reactions": {
"type": "object",
"description": "Reactions",
"patternProperties": {
"^.*$":{
"properties": {
"text": {"type":"string"},
"rolls": {"type":"object"},
"uses": {"type": "integer"}
}
}
}
},
"traits":{
"type": "object",
"description": "Additional traits and info"
},
"multiattack":{
"type": "array",
"description": "A list of attacks given in the format 'x*attack_key' where x is the number of attacks"
},
"attacks": {
"type": "object",
"description": "Basic Attacks",
"patternProperties": {
"^.*$":{
"patternProperties": {
"^type$": {"enum":["melee", "ranged"]}
},
"properties": {
"range": {"type": "string"},
"to-hit": {"type": "string"},
"damage": {"type": "string"}
},
"required": ["type", "range", "to-hit", "damage"]
}
}
}
},
"required":["maxHP", "AC", "speed", "PB", "stats"]
}