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 in Kingdom data
cass.cityboundforest.com
5 months ago
fa2ee4e2
6f37a57f
+49
-1
1 changed file
expand all
collapse all
unified
split
src
kingdom.ts
+49
-1
src/kingdom.ts
···
1
1
+
import * as data from "./data";
2
2
+
1
3
/**
2
4
* A Kingdom structure.
3
5
* @typedef {Object} Kingdom
···
20
22
* @property {number} level - The level of the Kingdom
21
23
*/
22
24
export default class Kingdom {
23
23
-
25
25
+
name: string;
26
26
+
charter: data.Charter;
27
27
+
government: data.Government;
28
28
+
heartland: data.Heartland;
29
29
+
boosts: data.Boost[];
30
30
+
leaders: object;
31
31
+
feats: string[];
32
32
+
size: number;
33
33
+
resourceDice: object;
34
34
+
commodities: object;
35
35
+
resourcePoints: object;
36
36
+
unrest: object;
37
37
+
ruin: object;
38
38
+
groups: object[];
39
39
+
krp: object;
40
40
+
settlements: string[];
41
41
+
level: number;
42
42
+
43
43
+
constructor() {
44
44
+
this.name = "";
45
45
+
this.level = 0;
46
46
+
this.charter = {
47
47
+
id: "",
48
48
+
boosts: []
49
49
+
};
50
50
+
this.government = {
51
51
+
id: "",
52
52
+
boosts: [],
53
53
+
feat: ""
54
54
+
};
55
55
+
this.heartland = {
56
56
+
id: "",
57
57
+
boost: data.Boost.None
58
58
+
};
59
59
+
this.boosts = [];
60
60
+
this.leaders = {};
61
61
+
this.feats = [];
62
62
+
this.size = 0;
63
63
+
this.resourceDice = {};
64
64
+
this.commodities = {};
65
65
+
this.resourcePoints = {};
66
66
+
this.unrest = {};
67
67
+
this.ruin = {};
68
68
+
this.groups = [];
69
69
+
this.krp = {};
70
70
+
this.settlements = [];
71
71
+
}
24
72
}