-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_b.html
151 lines (146 loc) · 5.63 KB
/
index_b.html
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<html>
<head>
<title>秘宝の迷宮のAP戰功計算</title>
<script src='jq.js'></script>
<script src='data_b.js'></script>
<script src='abc.js'></script>
</head>
<body bgcolor="#CFFFEE">
<h1>秘宝の迷宮のAP戰功計算</h1><h1>以下會得出最多戰功的組合:</h1>
請選擇能打的戰功free任:
<TABLE border=1 bgcolor="#FFFFFF">
<thead>
<tr bgcolor="#ff7f00">
<th>地點</th><th>名</th><th>AP</th><th>合計戰功</th><th>戰功/AP</th><th>p.s</th><TH></th>
</tr>
</thead>
<tbody id="misionlist">
</tbody>
</table>
<div>
最大/現有AP:<input type="text" id="maxap" value='80'/>
<br>
可忍受自動回復時間:<input type="text" id="maxtime" value='0'/>分鐘
<br>
目標戰功:<input type="text" id="maxpoint" value='6000000'/>
<br>
已有戰功:<input type="text" id="havepoint" value='0'/>
<br>
隊伍倍率:<input type="text" id="maxpow" value='1'/>1+倍武(0.2+0.?+0.?+.....)<BR>
特效B武:+0.2<input type="text" id="haveb" value='0' size='4' onchange="$('#maxpow').val(1+$('#haveb').val()*0.2+$('#have4s').val()*0.5+$('#have5s').val()*1); "/><BR>
4星倍角/秘宝:+0.5<input type="text" id="have4s" value='0' size='4' onchange="$('#maxpow').val(1+$('#haveb').val()*0.2+$('#have4s').val()*0.5+$('#have5s').val()*1); "/><BR>
5星倍角:+1.0(含Friend)<input type="text" id="have5s" value='0' size='4' onchange="$('#maxpow').val(1+$('#haveb').val()*0.2+$('#have4s').val()*0.5+$('#have5s').val()*1); "/><BR>
FT倍率:<span id='ftpsp'></span>
GFT倍率:<span id='gftpsp'></span>
<br>
<button id='stbt'> Start</button>
</div>
結果:<BR>
<DIV>
<TABLE border=1 bgcolor="#FFFFFF">
<thead>
<tr bgcolor="#ffff00">
<th>地點</th><th>名</th><th>AP</th><th>合計戰功</th>
</tr>
</thead>
<tbody id="resmisionlist">
</tbody>
</table>
</div>
<script>
$("#misionlist").html("");
$("#ftpsp").html(ftpercent);
$("#gftpsp").html(gftpercent);
var tmpstr="";
for(var i=0;i<tempa.length;i++)
{
tmpstr+="<tr>";
tmpstr+="<td>"+ tempname[i][0]+"</td>";
tmpstr+="<td>"+ tempname[i][1]+"</td>";
tmpstr+="<td>"+ tempa[i][0]+"</td>";
tmpstr+="<td>"+ tempa[i][1]+"</td>";
tmpstr+="<td>"+ (tempa[i][1]/tempa[i][0])+"</td>";
tmpstr+="<td>"+ tempname[i][2]+"</td>";
tmpstr+="<td><input type='checkbox' name='tidchb[]' value="+i+" checked></td>";
tmpstr+="</tr>";
}
$("#misionlist").html(tmpstr);
$("#stbt").click(function()
{
var nmission=[];
$("input[name='tidchb[]']:checked").each(function()
{
nmission.push(tempa[$(this).val()]);
});
var maxapp=$("#maxap").val()*1+Math.floor($("#maxtime").val()/8)*1;
var orgap=$("#maxap").val()*1;
var extraap=Math.floor($("#maxtime").val()/8)*1;
var bestarr=findsolution(maxapp,nmission);
$("#resmisionlist").html("");
var tmpstr="";
var sumcostt=0;
var bestc=0;
for(var i=0;i<bestarr.length;i++)
{
var idd=bestarr[i];
var rid=nmission[idd][2];
tmpstr+="<tr>";
tmpstr+="<td>"+tempname[rid][0]+"</td>";
tmpstr+="<td>"+tempname[rid][1]+"</td>";
tmpstr+="<td>"+nmission[idd][0]+"</td>";
tmpstr+="<td>"+nmission[idd][1]*$("#maxpow").val()+"</td>";
sumcostt=sumcostt+nmission[idd][0];
bestc=bestc+nmission[idd][1];
tmpstr+="</tr>";
}
var neddexttime=(sumcostt-orgap)*8;
if (neddexttime<0)
{
neddexttime=0
}
tmpstr+="<tr><td>Total Cost:</td><td>"+sumcostt+"</td><td>(包含"+neddexttime+" 分鐘自動回復)</td></tr>";
tmpstr+="<tr><td>Total Point:</td><td>"+(bestc*$("#maxpow").val())+"</td><td>"+(bestc*$("#maxpow").val()*ftpercent)+"(FT)</td><td>"+(bestc*$("#maxpow").val()*gftpercent)+"(GFT)</td></tr>";
var mapp=$("#maxpoint").val()*1-$("#havepoint").val()*1;
tmpstr+="<tr>";
tmpstr+="<td>Total AP:</td>";
var tap=((mapp/(bestc*$("#maxpow").val()))*sumcostt);
tbp=Math.ceil(tap/maxapp);
tmpstr+="<td>"+Math.ceil(tap)+"|"+tbp+"果(+"+mins2hourspmins(neddexttime*tbp)+")"+"</td>";
tap=((mapp/(bestc*$("#maxpow").val()*ftpercent))*sumcostt);
tbp=Math.ceil(tap/maxapp);
tmpstr+="<td>"+Math.ceil(tap)+"|"+tbp+"果(+"+mins2hourspmins(neddexttime*tbp)+")"+"(FT)</td>";
tap=((mapp/(bestc*$("#maxpow").val()*gftpercent))*sumcostt);
tbp=Math.ceil(tap/maxapp);
tmpstr+="<td>"+Math.ceil(tap)+"|"+tbp+"果(+"+mins2hourspmins(neddexttime*tbp)+")"+"(GFT)</td>";
tmpstr+="</tr>";
tmpstr+="<tr>";
tmpstr+="<td>不爆果所需時間:</td>";
tap=((mapp/(bestc*$("#maxpow").val()))*sumcostt);
tbp=Math.ceil(tap/maxapp);
tmpstr+="<td>"+mins2hourspmins(Math.ceil(tap)*8+neddexttime*tbp)+""+"</td>";
tap=((mapp/(bestc*$("#maxpow").val()*ftpercent))*sumcostt);
tbp=Math.ceil(tap/maxapp);
tmpstr+="<td>"+mins2hourspmins(Math.ceil(tap)*8+neddexttime*tbp)+""+"</td>";
tap=((mapp/(bestc*$("#maxpow").val()*gftpercent))*sumcostt);
tbp=Math.ceil(tap/maxapp);
tmpstr+="<td>"+mins2hourspmins(Math.ceil(tap)*8+neddexttime*tbp)+""+"</td>";
tmpstr+="</tr>";
tmpstr+="<tr><td>calcTime:</td><td>"+calat+"</td></tr>";
$("#resmisionlist").html(tmpstr);
});
</script>
<a href='index_p.html'> 小鶴姬の戰之年代記のAP戰功計算</a><br>
<!-- 計數器原始碼開始 -->
<script src="http://counter.i2yes.com/i2yesCounter.js" type="text/javascript"></script>
<script type="text/javascript">document.write(i2yesCounter.render({ y:'counter',
p:'gamtruliarcccounter', //改成您專有的計數器名稱,注意別跟別人一樣
v:'gamtruliar.github.io', //您的網址,不對的話無法使用,也可以用沒有 www 的網址,如 i2yes.com
d:6, //數字位數
r:1, //1=不接受Reload,0=Reload會+1
t:'font006', //字型 font001 - font156 可用
s:0, //指定大小,只能輸入數字例;100, 0為不指定尺寸(原寸)
n:0 //指定起始的數字
}));</script>
<!-- 計數器原始碼結束 -->
</body>
</html>