-
Notifications
You must be signed in to change notification settings - Fork 0
/
character_playbook.js
134 lines (122 loc) · 4.89 KB
/
character_playbook.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
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
const Jimp = require('jimp');
class CharacterPlaybook {
static playbooks() {
return {
"The Beacon" : {
playbookName: "The Beacon",
characterSheetImage: `assets/characters/char-quick-character.png`,
},
"The Elder" : {
playbookName: "The Elder",
characterSheetImage: 'assets/characters/char-the-elder.png',
},
"The Envoy" : {
playbookName: "The Envoy",
characterSheetImage: 'assets/characters/char-the-envoy.png',
},
"The Firebrand" : {
playbookName: "The Firebrand",
characterSheetImage: 'assets/characters/char-the-firebrand.png',
},
"The Foundling" : {
playbookName: "The Foundling",
characterSheetImage: `assets/characters/char-quick-character.png`,
},
"The Hellion" : {
playbookName: "The Hellion",
characterSheetImage: `assets/characters/char-quick-character.png`,
},
"The Herald" : {
playbookName: "The Herald",
characterSheetImage: `assets/characters/char-quick-character.png`,
},
"The Historian" : {
playbookName: "The Historian",
characterSheetImage: `assets/characters/char-quick-character.png`,
},
"The Hunter" : {
playbookName: "The Hunter",
characterSheetImage: 'assets/characters/char-the-hunter.png',
},
"The Matchmaker" : {
playbookName: "The Matchmaker",
characterSheetImage: `assets/characters/char-quick-character.png`,
},
"The Machine" : {
playbookName: "The Machine",
characterSheetImage: 'assets/characters/char-the-machine.png',
},
"The Martyr" : {
playbookName: "The Martyr",
characterSheetImage: `assets/characters/char-quick-character.png`,
},
"The Prodigy" : {
playbookName: "The Prodigy",
characterSheetImage: `assets/characters/char-quick-character.png`,
},
"The Promethean" : {
playbookName: "The Promethean",
characterSheetImage: 'assets/characters/char-the-promethean.png',
},
"The Reaver" : {
playbookName: "The Reaver",
characterSheetImage: 'assets/characters/char-the-reaver.png',
},
"The Remnant" : {
playbookName: "The Remnant",
characterSheetImage: 'assets/characters/char-the-remnant.png',
},
"The Road Warrior" : {
playbookName: "The Road Warrior",
characterSheetImage: `assets/characters/char-quick-character.png`,
},
"The Saint" : {
playbookName: "The Saint",
characterSheetImage: `assets/characters/char-quick-character.png`,
},
"The Scavenger" : {
playbookName: "The Scavenger",
characterSheetImage: 'assets/characters/char-the-scavenger.png',
},
"The Scout" : {
playbookName: "The Scout",
characterSheetImage: `assets/characters/char-quick-character.png`,
},
"The Seeker" : {
playbookName: "The Seeker",
characterSheetImage: 'assets/characters/char-the-seeker.png',
},
"The Sentinel" : {
playbookName: "The Sentinel",
characterSheetImage: 'assets/characters/char-the-sentinel.png',
},
"The Survivor" : {
playbookName: "The Survivor",
characterSheetImage: 'assets/characters/char-the-survivor.png',
},
"The Untamed" : {
playbookName: "The Untamed",
characterSheetImage: 'assets/characters/char-the-untamed.png',
},
"The Warlock" : {
playbookName: "The Warlock",
characterSheetImage: `assets/characters/char-quick-character.png`,
},
"Quick Character" : {
playbookName: "Quick Character",
characterSheetImage: `assets/characters/char-quick-character.png`
}
};
}
static find_stock_playbook( playbookName ) {
let playbooks = Object.keys( CharacterPlaybook.playbooks() );
for( var i = 0; i < playbooks.length; i++ ) {
let pbName = playbooks[i];
if ( pbName.toLowerCase().includes( playbookName.toLowerCase() )) {
return pbName;
}
}
return null;
}
}
module.exports = CharacterPlaybook;