-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaple.js
More file actions
123 lines (108 loc) · 3.01 KB
/
maple.js
File metadata and controls
123 lines (108 loc) · 3.01 KB
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
var TotalMeso=0
var CanTradeMesoStone=180
var TradingMesoStone=0
var Easy={
Zaqqum: "119,835",
Cygnus: "5,493,394",
Horntail: "528,474",
VonLeon: "633,927",
Magnus: "432,605",
Papulatus: "410,135",
DreamWomen: "48,058,319",
ARKarium: "690,249"
}
var Normal={
Zaqqum: "366,997",
Horntail: "606,666",
VacuumCleaner: "748,970", //카웅
PinkBean: "841,544",
Papulatus: "1,596,506",
NormalRootAbyss: "580,003", //4노말루타
Cygnus: "9,039,130",
Dusk: "71,054,562",
Hilla: "479,343",
VonLeon: "873,601",
Magnus: "1,553,066",
ARKarium: "1,510,227",
ElectricLineMan: "33,942,566",
Demian: "35,517,853",
DreamWomen: "57,502,626",
SpiderFucker: "66,311,463",
Djunkel: "52,812,500",
Slime:"46,935,874"
StrongHilla:"190,159,452",
}
var Hard={
Pierre: "9,838,832",
HalfHalf: "9,818,154",
BloodyQueen: "9,806,780",
Vellum: "12,590,202",
Zaqqum: "9,741,285",
Horntail: "810,086",
PinkBean: "7,923,110",
Papulatus: "26,725,937",
Dusk: "160,183,752",
Hilla: "6,936,489",
VonLeon: "1,467,984",
Magnus: "11,579,023",
ElectricLineMan: "118,294,192",
Demian: "112,480,613",
DreamWomen: "131,095,655",
SpiderFucker: "145,038,483",
Djunkel: "168,609,280",
StrongHilla: "190,159,452",
BlackMage: "1,418,809,857",
WingWomen: "268,825,621", //세렌
Slime:"155,492,141"
}
function RevString(str){
var RevStr=str.split("").reverse().join("");
return RevStr
}
function ParseNum(str){
var regex= /[^0-9]/g
Fstr=str.replace(regex,"");
num=parseInt(Fstr);
return num;
}
function AddSymbol(str){
var RevStr=RevString(str)
var regex= /(.{3})/g
RevStr=RevStr.replace(regex,"$1,")
RevStr=RevString(RevStr)
if(RevStr[0]==","){
RevStr=RevStr.substr(1)
}
return RevStr
}
function AddResult(str){
const TradingMesoStoneContainer=document.querySelector(".TradingMesoStone")
const MaxMesoStone=document.querySelector(".CanTradeMesoStone")
if(str!='0'){
MaxMesoStone.innerText=`판매 가능한 결정석 : ${CanTradeMesoStone-=1} 개`;
TradingMesoStoneContainer.innerText = `선택된 결정석 : ${TradingMesoStone+=1} 개`;
}
WriteMeso(str,ChkReboot());
}
function WriteMeso(str,times){
const Share=document.querySelector('input[name="Share"]').value
var num=ParseNum(str);
TotalMeso=TotalMeso+(num/Share)
displayMeso(times);
}
function ChkReboot(){
var a=document.querySelector(".Reboot")
var b=a.querySelector('input[name="server"]').checked
if(b==true)
return 5;
else
return 1;
}
function displayMeso(times){
const TotalMesoContainer=document.querySelector(".result");
var result=TotalMeso*times;
result=parseInt(result);
TotalMesoContainer.innerText = `합계 : ${AddSymbol(String(result))} 메소`;
}
function displayText(){
}