-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
53 lines (43 loc) · 2.38 KB
/
main.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
function gen_nature_main_essence(){
return Math.floor(Math.random() * 6) + 1;
}
function gen_nature_specific_essence(){
return Math.floor(Math.random() * 6) + 1;
}
function gen_alchemical_main_essence(){
return Math.floor(Math.random() * 6) + 1;
}
function gen_alchemical_specific_essence(){
return Math.floor(Math.random() * 6) + 1;
}
function gen_essences() {
//main essences
document.getElementById("air").innerHTML = gen_nature_main_essence();
document.getElementById("Water").innerHTML = gen_nature_main_essence();
document.getElementById("Earth").innerHTML = gen_nature_main_essence();
document.getElementById("Fire").innerHTML = gen_nature_main_essence();
//Air
document.getElementById("Electricity").innerHTML = gen_nature_specific_essence();
document.getElementById("Illusion").innerHTML = gen_nature_specific_essence();
document.getElementById("Flight").innerHTML = gen_nature_specific_essence();
document.getElementById("Speed").innerHTML = gen_nature_specific_essence();
document.getElementById("Stealth").innerHTML = gen_nature_specific_essence();
//Water
document.getElementById("Cold").innerHTML = gen_nature_specific_essence();
document.getElementById("Emotion").innerHTML = gen_nature_specific_essence();
document.getElementById("Fear").innerHTML = gen_nature_specific_essence();
document.getElementById("Memory").innerHTML = gen_nature_specific_essence();
document.getElementById("Toxin").innerHTML = gen_nature_specific_essence();
//Earth
document.getElementById("Acid").innerHTML = gen_nature_specific_essence();
document.getElementById("Armor").innerHTML = gen_nature_specific_essence();
document.getElementById("Disease").innerHTML = gen_nature_specific_essence();
document.getElementById("Plant").innerHTML = gen_nature_specific_essence();
document.getElementById("Strenght").innerHTML = gen_nature_specific_essence();
//Fire
document.getElementById("Agility").innerHTML = gen_nature_specific_essence();
document.getElementById("Decay").innerHTML = gen_nature_specific_essence();
document.getElementById("Light").innerHTML = gen_nature_specific_essence();
document.getElementById("Pain").innerHTML = gen_nature_specific_essence();
document.getElementById("Purity").innerHTML = gen_nature_specific_essence();
}