This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
live_royal_calc.html
executable file
·345 lines (338 loc) · 12.6 KB
/
live_royal_calc.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<meta name="author" content="Mutsuki Kimuraya" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/select2.min.css" />
<title>発揮値計算機 for LIVEロワイヤル</title>
</head>
<body>
<h1>発揮値計算機 for LIVEロワイヤル</h1>
<div>
<table>
<tbody>
<tr>
<th>バトルポイント</th>
<td>
<select name="battle_point" data-bind="value: battle_point">
<option value="1">1</option>
<option value="2" selected="selected">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</td>
</tr>
<tr>
<th>プロデューサー属性</th>
<td>
<select name="producer_type" data-bind="value: producer_type">
<option value="-1" selected="selected">無し</option>
<option value="0">キュート</option>
<option value="1">クール</option>
<option value="2">パッション</option>
</select>
</td>
</tr>
<tr>
<th>アピールボーナス</th>
<td>
キュート :
<select name="appeal_bonus_0" data-bind="value: appeal_bonus[0], event: { change: change_appeal_bonus }">
<option value="0" selected="selected">0%</option>
<option value="1">1%</option>
<option value="2">2%</option>
<option value="3">3%</option>
<option value="4">4%</option>
<option value="5">5%</option>
</select>
クール :
<select name="appeal_bonus_1" data-bind="value: appeal_bonus[1], event: { change: change_appeal_bonus }">
<option value="0" selected="selected">0%</option>
<option value="1">1%</option>
<option value="2">2%</option>
<option value="3">3%</option>
<option value="4">4%</option>
<option value="5">5%</option>
</select>
パッション :
<select name="appeal_bonus_2" data-bind="value: appeal_bonus[2], event: { change: change_appeal_bonus }">
<option value="0" selected="selected">0%</option>
<option value="1">1%</option>
<option value="2">2%</option>
<option value="3">3%</option>
<option value="4">4%</option>
<option value="5">5%</option>
</select>
</td>
</tr>
<tr>
<th>トレーニングルーム</th>
<td>
<select name="training_room_level" data-bind="value: training_room_level">
<option value="0" selected="selected">LV0</option>
<option value="1">LV1</option>
<option value="2">LV2</option>
<option value="3">LV3</option>
<option value="4">LV4</option>
<option value="5">LV5</option>
<option value="6">LV6</option>
<option value="7">LV7</option>
</select>
</td>
</tr>
<tr>
<th>ボルテージボーナス</th>
<td>
<select name="voltage_bonus" data-bind="value: voltage_bonus">
<option value="1" selected="selected">無し</option>
<option value="1.1">10%</option>
<option value="1.2">20%</option>
<option value="1.5">50%</option>
</select>
</td>
</tr>
<tr>
<th>ぷちパワー発揮属性</th>
<td>
<select name="petit_idol_bonus_type" data-bind="value: petit_idol_bonus_type">
<option value="-1" selected="selected">無し</option>
<option value="0">キュート</option>
<option value="1">クール</option>
<option value="2">パッション</option>
</select>
</td>
</tr>
<tr>
<th>ぷちパワー発揮パラメータ</th>
<td>
<select name="petit_idol_bonus_parameter" data-bind="value: petit_idol_bonus_parameter">
<option value="-1" selected="selected">無し</option>
<option value="0">Vo</option>
<option value="1">Da</option>
<option value="2">Vi</option>
</select>
</td>
</tr>
<tr>
<th>計算方式</th>
<td>
<select name="calc_type" data-bind="value: calc_type">
<option value="6" selected="selected">ロワイヤルLIVE</option>
<option value="7">ゲストLIVE</option>
</select>
</td>
</tr>
</tbody>
</table>
</div>
<table>
<thead>
<tr>
<th> </th>
<th>アイドル</th>
<th>ステータス</th>
<th>イベント<br />パワー</th>
<th>スキル</th>
<th>攻発揮値</th>
<th>守発揮値</th>
</tr>
</thead>
<tfoot>
<tr>
<th colspan="5">総フロント発揮値</th>
<td class="numeric" data-bind="text: front_offense">0</td>
<td class="numeric" data-bind="text: front_defense">0</td>
</tr>
<tr>
<th colspan="5">総バック発揮値</th>
<td class="numeric" data-bind="text: back_offense">0</td>
<td class="numeric" data-bind="text: back_defense">0</td>
</tr>
<tr>
<th colspan="5">ぷちデレラ発揮値</th>
<td colspan="2" class="numeric" data-bind="text: petit_idol_total_status">0</td>
</tr>
<tr>
<th colspan="5">総発揮値</th>
<td class="numeric" data-bind="text: actual_status()[0]">0</td>
<td class="numeric" data-bind="text: actual_status()[1]">0</td>
</tr>
</tfoot>
<tbody id="idol_list" data-bind="sortable: idol_list">
<tr class="idol">
<td>
<button type="button" name="up" class="control" data-bind="click: $root.move_up">△</button><br />
<button type="button" name="down" class="control" data-bind="click: $root.move_down">▽</button>
</td>
<td class="character">
<select name="type" data-bind="value: type, event: { change: set_idol_list }">
<option value="0" selected="selected">キュート</option>
<option value="1">クール</option>
<option value="2">パッション</option>
</select>
<select name="rarity" data-bind="value: rarity, event: { change: set_idol_list }">
<option value="0" selected="selected">ノーマル</option>
<option value="1">ノーマル+</option>
<option value="2">レア</option>
<option value="3">レア+</option>
<option value="4">Sレア</option>
<option value="5">Sレア+</option>
</select><br />
<select name="id" class="name" data-bind="value: id, select2: {}, event: { change: change_idol }, options: select_idol_list(), optionsValue: 'id', optionsText: 'name'">
</select>
</td>
<td>
<span style="color: #ff0000;">攻</span>
<input type="number" name="offense" class="status" value="0" data-bind="textInput: offense" /><br />
<span style="color: #0000ff;">守</span>
<input type="number" name="defense" class="status" value="0" data-bind="textInput: defense" /><br />
</td>
<td>
<select name="event_power" data-bind="value: event_power">
<option value="1" selected="selected">無し</option>
<option value="1.5">1.5倍</option>
<option value="1.8">1.8倍</option>
<option value="2">2倍</option>
<option value="2.4">2.4倍</option>
<option value="3">3倍</option>
<option value="3.6">3.6倍</option>
<option value="4">4倍</option>
<option value="4.8">4.8倍</option>
</select>
</td>
<td>
<!-- ko if: $root.is_skill_input_type_manual() -->
<span style="color: #ff0000;">攻</span>
<input type="number" name="offense_skill" class="skill" value="0" data-bind="textInput: offense_skill" />%<br />
<span style="color: #0000ff;">守</span>
<input type="number" name="defense_skill" class="skill" value="0" data-bind="textInput: defense_skill" />%<br />
<!-- /ko -->
<div style="text-align: left;" data-bind="ifnot: $root.is_skill_input_type_manual()">
<span class="skill_name" data-bind="text: skill_name, css: { disable: !enable_skill }">無し</span><br />
<select name="skill_id" data-bind="value: skill_id, options: select_skill_list(), optionsValue: 'id', optionsText: 'name'">
</select>
<select name="skill_level" data-bind="value: skill_level">
<option value="0">無効</option>
<option value="1">LV1</option>
<option value="2">LV2</option>
<option value="3">LV3</option>
<option value="4">LV4</option>
<option value="5">LV5</option>
<option value="6">LV6</option>
<option value="7">LV7</option>
<option value="8">LV8</option>
<option value="9">LV9</option>
<option value="10" selected="selected">LV10</option>
<option value="11">LV11</option>
<option value="12">LV12</option>
</select>
</div>
</td>
<td class="numeric" data-bind="text: display_offense(), css: style">0</td>
<td class="numeric" data-bind="text: display_defense(), css: style">0</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>ぷちデレラ</th>
<th>発揮値</th>
</tr>
</thead>
<tfoot>
<tr>
<th>総発揮値</th>
<td class="numeric" data-bind="text: petit_idol_total_status">0</td>
</tr>
</tfoot>
<tbody id="petit_idol_list" data-bind="foreach: petit_idol_list">
<tr class="idol">
<td>
<select name="type" data-bind="value: type">
<option value="0" selected="selected">キュート</option>
<option value="1">クール</option>
<option value="2">パッション</option>
</select>
<span style="color: #ff0000;">Vo</span>
<input type="number" name="vocal" class="status" value="0" data-bind="textInput: vocal" />
<span style="color: #0000ff;">Da</span>
<input type="number" name="dance" class="status" value="0" data-bind="textInput: dance" />
<span style="color: #ffff80;">Vi</span>
<input type="number" name="visual" class="status" value="0" data-bind="textInput: visual" />
</td>
<td class="numeric" data-bind="text: display_status()">0</td>
</tr>
</tbody>
</table>
<!-- ko if: is_guest_live() -->
<h3>与ダメージ</h3>
<table>
<thead>
<tr>
<th>ターンあたり</th>
<th>一戦あたり</th>
</tr>
</thead>
<tbody data-bind="foreach: damage_list">
<tr>
<td class="numeric">
<span data-bind="text: min.get_turn_damage()">0</span>
-
<span data-bind="text: max.get_turn_damage()">0</span>
(<span data-bind="text: avg.get_turn_damage()">0</span>)
</td>
<td class="numeric">
<span data-bind="text: min.get_battle_damage()">0</span>
-
<span data-bind="text: max.get_battle_damage()">0</span>
(<span data-bind="text: avg.get_battle_damage()">0</span>)
</td>
</tr>
</tbody>
</table>
<!-- /ko -->
<table>
<tbody>
<tr>
<th>セーブデータ</th>
<td>
<select name="save_data_id" data-bind="value: save_data_id">
<option value="1" selected="selected">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<input type="text" name="save_data_title" value="" data-bind="value: save_data_title" />
<button type="button" name="save" data-bind="click: save_setting">保存</button>
<button type="button" name="load" data-bind="click: load_setting">読込</button>
</td>
</tr>
</tbody>
</table>
<p>
<textarea name="code" cols="80" rows="10" data-bind="value: code"></textarea><br />
<button type="button" name="generate_code" data-bind="click: generate_code">コード生成</button>
<button type="button" name="apply_code" data-bind="click: apply_code">コード適用</button>
<!-- ko if: apply_code_url -->
<a href="live_calc.html" data-bind="attr: { href: apply_code_url }">Link</a>
<!-- /ko -->
</p>
<ul>
<li><strong>特技入力の期待値計算モードはスキルの発動率がそれぞれ100%、50%、25%、12.5%、6.25%と仮定した場合の数値です。</strong></li>
<li>ゲストLIVE時の与ダメージについては仕様上、完全な計算は不可能なので参考程度に留めておいてください。</li>
</ul>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="script/knockout.js"></script>
<script src="script/knockout-es5.min.js"></script>
<script src="script/jquery-ui.min.js"></script>
<script src="script/knockout-sortable.min.js"></script>
<script src="script/zlib.min.js"></script>
<script src="script/select2.min.js"></script>
<script src="script/knockout-select2.js"></script>
<script src="script/live_royal_calc.min.js"></script>
</body>
</html>