1 | class Color {
|
2 | constructor(name, code) {
|
3 | this.name = name;
|
4 | this.code = code;
|
5 | }
|
6 | }
|
7 |
|
8 | class Abilitie {
|
9 | constructor(name, element) {
|
10 | this.name = name;
|
11 | this.element = element;
|
12 | }
|
13 | }
|
14 |
|
15 | class Attribute {
|
16 | constructor(name, points) {
|
17 | this.name = name;
|
18 | this.points = points;
|
19 | }
|
20 | }
|
21 |
|
22 | const themes = [
|
23 | new Color('earth', '#b2ff59'),
|
24 | new Color('fire', '#ba000d'),
|
25 | new Color('air', '#29b6f6'),
|
26 | new Color('water', '#84ffff'),
|
27 | ]
|
28 |
|
29 | const attributes = [
|
30 | new Attribute('vitality', 20),
|
31 | new Attribute('strength', 20),
|
32 | new Attribute('resistance', 20),
|
33 | new Attribute('intelligence', 20),
|
34 | new Attribute('humanity', 8),
|
35 | new Attribute('cyberneticity', 2),
|
36 | new Attribute('faith', 30),
|
37 | new Attribute('attunement', 20),
|
38 | new Attribute('dexterity', 30),
|
39 | ]
|
40 |
|
41 | const abilities = [
|
42 | new Abilitie('electricity', 'fire'),
|
43 | new Abilitie('mechanics', 'earth'),
|
44 | new Abilitie('engineer', 'earth'),
|
45 | new Abilitie('logical', 'air'),
|
46 | new Abilitie('security', 'fire'),
|
47 | new Abilitie('health', 'water'),
|
48 | new Abilitie('cyber', 'air'),
|
49 | new Abilitie('art', 'water'),
|
50 | new Abilitie('psychological', 'air'),
|
51 | new Abilitie('culinary', 'earth'),
|
52 |
|
53 | ]
|
54 | exports.attributes = attributes;
|
55 | exports.abilities = abilities;
|
56 | exports.themes = themes;
|
57 |
|
58 |
|
59 | exports.eletricity = () => {
|
60 | return abilities[0];
|
61 | }
|
62 | exports.mechanics = () => {
|
63 | return abilities[1];
|
64 | }
|
65 | exports.engineer = () => {
|
66 | return abilities[2];
|
67 | }
|
68 | exports.logical = () => {
|
69 | return abilities[3];
|
70 | }
|
71 | exports.security = () => {
|
72 | return abilities[4];
|
73 | }
|
74 | exports.health = () => {
|
75 | return abilities[5];
|
76 | }
|
77 | exports.cyber = () => {
|
78 | return abilities[6];
|
79 | }
|
80 | exports.art = () => {
|
81 | return abilities[7];
|
82 | }
|
83 | exports.psychological = () => {
|
84 | return abilities[8];
|
85 | }
|
86 | exports.culinary = () => {
|
87 | return abilities[9];
|
88 | }
|
89 |
|
90 | exports.themeEarth = () => {
|
91 | return themes[0];
|
92 | }
|
93 | exports.themeFire = () => {
|
94 | return themes[1];
|
95 | }
|
96 | exports.themeAir = () => {
|
97 | return themes[2];
|
98 | }
|
99 | exports.themeWater = () => {
|
100 | return themes[3];
|
101 | } |
\ | No newline at end of file |