UNPKG

1.99 kBJavaScriptView Raw
1class Color {
2 constructor(name, code) {
3 this.name = name;
4 this.code = code;
5 }
6}
7
8class Abilitie {
9 constructor(name, element) {
10 this.name = name;
11 this.element = element;
12 }
13}
14
15class Attribute {
16 constructor(name, points) {
17 this.name = name;
18 this.points = points;
19 }
20}
21
22const themes = [
23 new Color('earth', '#b2ff59'),
24 new Color('fire', '#ba000d'),
25 new Color('air', '#29b6f6'),
26 new Color('water', '#84ffff'),
27]
28
29const 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
41const 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]
54exports.attributes = attributes;
55exports.abilities = abilities;
56exports.themes = themes;
57
58// HABILIDADES
59exports.eletricity = () => {
60 return abilities[0];
61}
62exports.mechanics = () => {
63 return abilities[1];
64}
65exports.engineer = () => {
66 return abilities[2];
67}
68exports.logical = () => {
69 return abilities[3];
70}
71exports.security = () => {
72 return abilities[4];
73}
74exports.health = () => {
75 return abilities[5];
76}
77exports.cyber = () => {
78 return abilities[6];
79}
80exports.art = () => {
81 return abilities[7];
82}
83exports.psychological = () => {
84 return abilities[8];
85}
86exports.culinary = () => {
87 return abilities[9];
88}
89// TEMAS
90exports.themeEarth = () => {
91 return themes[0];
92}
93exports.themeFire = () => {
94 return themes[1];
95}
96exports.themeAir = () => {
97 return themes[2];
98}
99exports.themeWater = () => {
100 return themes[3];
101}
\No newline at end of file