-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathro635.html
129 lines (124 loc) · 7.33 KB
/
ro635.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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>少女前线工具 by 命运の乐章</title>
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="vendor/morrisjs/morris.css" rel="stylesheet">
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<script>
function Language(typeCode) {
if (typeCode === 'Chinese') window.location.href = "index.html";
else if (typeCode === 'English') window.location.href = "index-EN.html";
else if (typeCode === 'Korean') window.location.href = "index-KO.html";
}
</script>
</head>
<body>
<script>
function _getint(ID) { return parseInt(document.getElementById(ID).value) }
function _fill(ID, str) { document.getElementById(ID).innerHTML = str }
function _colored(color, str) { return '<span style="color:' + color + '">' + str + '</span>' }
function result() {
var str = '',
acu = _getint('acu'), eva = _getint('eva'),
acurate = acu / (acu + eva),
acus = acu * 0.9, evas = eva * 1.7,
acurates = acus / (acus + evas),
exrate1 = 0.4, exrate2 = 0.7,
immunerate1 = exrate1 * (1 - acurates), immunerate2 = exrate2 * (1 - acurates),
actrate1 = 0.75 * acurates * (1 - immunerate1), actrate2 = 0.75 * acurates * (1 - immunerate2)
str += '敌人命中 = ' + _colored('#6666FF', acu) + '   我方回避 = ' + _colored('#6666FF', eva) + '<br>'
str += '基础命中率 = ' + _colored('#6666FF', (100 * acurate).toFixed(2) + '%')
+ '   基础实际伤害率=' + _colored('#33CC00', (100 * acurate).toFixed(2) + '%') + '<br>'
str += '心智威慑:回避' + _colored('#6666FF', '+' + 70 + '%')
+ '   敌人火力' + _colored('#FF6666', '-' + 25 + '%')
+ '   敌人命中' + _colored('#FF6666', '-' + 10 + '%') + '<br>'
str += '技能开启时命中率=' + _colored('#CC0099', (100 * acurates).toFixed(2) + '%')
+ '   火力比率 = ' + _colored('#CC0099', 75 + '%') + '<br>'
str += '正义审判:进入免疫计算概率 = ' + _colored('#6666FF', 40 + '%') + ' ~ ' + _colored('#6666FF', 70 + '%')
+ '   免疫概率 = ' + _colored('#6666FF', (100 * (1 - acurates)).toFixed(2) + '%') + '<br>'
str += '实际免疫概率=' + _colored('#6666FF', (100 * immunerate1).toFixed(2) + '%') + ' ~ ' + _colored('#6666FF', (100 * immunerate2).toFixed(2) + '%') + '<br>'
str += '技能期实际伤害率(最差) = ' + _colored('#CC0099', 75 + '%') + ' x ' + _colored('#CC0099', (100 * acurates).toFixed(2) + '%')
+ ' x ( 1 - ' + _colored('#6666FF', (100 * immunerate1).toFixed(2) + '%') + ' ) = '
+ _colored('#33CC00', (100 * actrate1).toFixed(2) + '%') + '<br>'
str += '技能期实际伤害率(最优) = ' + _colored('#CC0099', 75 + '%') + ' x ' + _colored('#CC0099', (100 * acurates).toFixed(2) + '%')
+ ' x ( 1 - ' + _colored('#6666FF', (100 * immunerate2).toFixed(2) + '%') + ' ) = '
+ _colored('#33CC00', (100 * actrate2).toFixed(2) + '%') + '<br>'
str += '技能期实际伤害率 = '
+ _colored('#6666FF', (100 * actrate1).toFixed(2) + '%') + ' ~ '
+ _colored('#6666FF', (100 * actrate2).toFixed(2) + '%') + '<br>'
str += '等价回避 = ' + _colored('#FF9900', parseInt(acu / actrate1 - acu)) + ' ~ ' + _colored('#FF9900', parseInt(acu / actrate2 - acu)) + '<br>'
str += '等价于提升回避的技能倍率 = '
+ _colored('#FF9900', (100 * (parseInt(acu / actrate1 - acu) / eva - 1)).toFixed(2) + '%') + ' ~ '
+ _colored('#FF9900', (100 * (parseInt(acu / actrate2 - acu) / eva - 1)).toFixed(2) + '%')
_fill('result', str)
}
</script>
<!-- Navigation -->
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"><span style="color:#FF0066">少女前线工具</span> by 命运の乐章 (GF tools)</a>
</div>
<div class="navbar-default sidebar" role="navigation">
<div class="sidebar-nav navbar-collapse">
<ul class="nav" id="side-menu">
<li><a href="index.html"><i class="fa fa-home fa-fw"></i> 工具站主页</a></li>
<li><a href="pages/index.html"><i class="fa fa-home fa-fw"></i> 少女前线工具站主页</a></li>
</ul>
</div>
</div>
</nav>
<div id="page-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">RO635 [MOD]收益计算</h1>
</div>
<!--折叠栏目-->
<div class="col-lg-8">
<table class="table table-striped table-hover table-bordered" style="width:300px">
<tbody>
<tr>
<td style="width:50%">敌人命中</td>
<td style="width:50%">
<input class="form-control input-sm" placeholder="输入正整数" id='acu' value=30>
</td>
</tr>
<tr>
<td style="width:50%">我方出战回避</td>
<td style="width:50%">
<input class="form-control input-sm" placeholder="输入正整数" id='eva' value=180>
</td>
</tr>
</tbody>
</table>
<h5 id='result'>结果在这里显示</h5>
<button type="button" class="btn btn-outline btn-warning" onclick="result()">计算</button>
</div>
</div>
</div>
</div>
<!-- jQuery -->
<script src="vendor/jquery/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<!-- Metis Menu Plugin JavaScript -->
<script src="vendor/metisMenu/metisMenu.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="dist/js/sb-admin-2.js"></script>
<!-- Page-Level Demo Scripts - Notifications - Use for reference -->
</body>
</html>