-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
45 lines (41 loc) · 1.36 KB
/
config.js
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
function Config(name, baseScore, pointTotal, maxScore, minScore, pointCosts, abilityModifiers, abilityNames) {
this.name = name;
this.baseScore = baseScore;
this.pointTotal = pointTotal;
this.maxScore = maxScore;
this.minScore = minScore;
this.pointCosts = pointCosts;
this.abilityModifiers = abilityModifiers;
this.abilityNames = abilityNames;
}
var customConfig = new Config(
"Custom",
6,
31,
18,
4,
[-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 17, 21, 25, 30],
[-5, -4, -4, -3, -3, -2, -2, -1, -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10],
["Strength", "Dexterity", "Constitution", "Intelligence", "Wisdom", "Charisma"]
);
var dnd5eStandard = new Config(
"DnD 5e - Standard",
8,
27,
15,
8,
[0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 7, 9],
[-5, -4, -4, -3, -3, -2, -2, -1, -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10],
["Strength", "Dexterity", "Constitution", "Intelligence", "Wisdom", "Charisma"]
);
var pathfinderStandard = new Config(
"Pathfinder - Standard",
10,
15,
18,
8,
[0, 0, 0, 0, 0, 0, -4, -2, -1, 0, 1, 2, 3, 5, 7, 10, 13, 17],
[-5, -4, -4, -3, -3, -2, -2, -1, -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10],
["Strength", "Dexterity", "Constitution", "Intelligence", "Wisdom", "Charisma"]
);
var configArray = [dnd5eStandard, pathfinderStandard, customConfig];