tangled
alpha
login
or
join now
cass.cityboundforest.com
/
kingdom-homebrew
0
fork
atom
A repository for a FoundryVTT plugin for Kingmaker homebrew.
0
fork
atom
overview
issues
pulls
pipelines
Adding data into code
cass.cityboundforest.com
5 months ago
e8dbd3d2
265872d6
+42
1 changed file
expand all
collapse all
unified
split
src
data
index.ts
+42
src/data/index.ts
···
1
1
+
import charters from "./charter.json";
2
2
+
import governments from "./government.json";
3
3
+
import heartlands from "./heartland.json";
4
4
+
5
5
+
export interface Charter {
6
6
+
id: string;
7
7
+
boosts: Boost[];
8
8
+
}
9
9
+
10
10
+
export interface Government {
11
11
+
id: string;
12
12
+
boosts: Boost[];
13
13
+
feat: string;
14
14
+
}
15
15
+
16
16
+
export interface Heartland {
17
17
+
id: string;
18
18
+
boost: Boost;
19
19
+
}
20
20
+
21
21
+
export enum Attribute {
22
22
+
Loyalty = "loyalty",
23
23
+
Culture = "culture",
24
24
+
Stability = "stability",
25
25
+
Economy = "economy",
26
26
+
None = ""
27
27
+
}
28
28
+
29
29
+
export enum Boost {
30
30
+
Loyalty = "loyalty",
31
31
+
Culture = "culture",
32
32
+
Stability = "stability",
33
33
+
Economy = "economy",
34
34
+
None = "",
35
35
+
Free = "free"
36
36
+
}
37
37
+
38
38
+
export const data = {
39
39
+
charters,
40
40
+
governments,
41
41
+
heartlands
42
42
+
};