forked from Roll20/roll20-api-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStarfinderSimple.js
47 lines (42 loc) · 1.41 KB
/
StarfinderSimple.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
(() => {
'use strict';
const Starfinder = CheckItOut.themes.impl.Starfinder;
/**
* Theme for Starfinder "Simple" sheet.
*/
class StarfinderSimple extends Starfinder {
/**
* @inheritdoc
*/
get name() {
return 'Starfinder Simple';
}
constructor() {
super();
}
/**
* @inheritdoc
*/
getSkillMod(character, skillName) {
if (skillName === 'Computers')
return CharSheetUtils.getSheetAttr(character, 'Computers');
if (skillName === 'Culture')
return CharSheetUtils.getSheetAttr(character, 'Culture');
if (skillName === 'Engineering')
return CharSheetUtils.getSheetAttr(character, 'Engineering');
if (skillName === 'Life Science')
return CharSheetUtils.getSheetAttr(character, 'Life-Science');
if (skillName === 'Medicine')
return CharSheetUtils.getSheetAttr(character, 'Medicine');
if (skillName === 'Mysticism')
return CharSheetUtils.getSheetAttr(character, 'Mysticism');
if (skillName === 'Perception')
return CharSheetUtils.getSheetAttr(character, 'Perception');
if (skillName === 'Physical Science')
return CharSheetUtils.getSheetAttr(character, 'Physical-Science');
if (skillName === 'Survival')
return CharSheetUtils.getSheetAttr(character, 'Survival');
}
}
CheckItOut.themes.register(StarfinderSimple);
})();