-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStabillity_Rate_Calculation.html
426 lines (398 loc) · 13.3 KB
/
Stabillity_Rate_Calculation.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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>トーラムオンライン 安定率計算ツール</title>
<script type="text/javascript" src="brython/www/src/brython.js">
</script>
<script type="text/javascript" src="brython/www/src/brython_stdlib.js">
</script>
<style type="text/css">
body{
background-color: #2b2b2b;
color: #e4cfcf;
font-size: 23px;
}
input{
font: sans-serif;
font-size: 25px;
width: 80px;
height: 50px;
padding: 0.3em;
transition: 0.3s;
color: #d3d3d3;
border: none;
border-bottom: 2px solid #1b2538;
background-color: #463939;
outline-color: #343434;
outline-style: groove;
outline-width: 4.1px;
}
div{
font-size: 25px;
}
i{
display:inline;
font-size: 25px;
}
button{
background-color: #4f4f4f;
color: #e4cfcf;
font-size: 35px;
width: 280px;
height: 60px;
outline: 0;
}
div#RESULTs{
border: 2px groove;
color: #4f4f4f;
width: 510px;
height: 65px;
}
h2#RESULT{
font-size: 30px;
display:inline;
width: 550px;
height: 80px;
color: red;
line-height: 2;
padding-left: 20px;
}
h3#JOBS{
font-size: 25px;
}
a:link { color: #e4d7a6; }
a:visited { color: #e4d7a6; }
a:hover { color: #e4d7a6; }
a:active { color: #e4d7a6; }
a{
font-family: sans-serif;
}
div#Selector{
font-size: 35px;
}
div#text_field{
font-size: 35px;
}
</style>
</head>
<body onload="brython()">
<script type="text/python">
from browser import document, html, bind
from math import floor as math_floor
import sys
document["TITLE"] <= "安定率 計算機 v1.0"
TEXT_Feild = document["text_field"]
Selctor_SW = document["SELECTOR"]
def sclear():
document["RESULT"].clear()
def jobs_clear():
document["JOBS"].clear()
def tclear():
document["text_field"].clear()
def ONEHANDsw():
s1ALL_Equipment_MSG = html.I("装備の安定率の合計値:")
s1ALL_Equipment = html.INPUT()
s1DEX_MSG = html.I("ステータスのDEX値:")
s1DEX = html.INPUT()
s1STR_MSG = html.I("ステータスのSTR値:")
s1STR = html.INPUT()
s1Submit_BTN = html.BUTTON("計算する")
TEXT_Feild <= s1ALL_Equipment_MSG + html.I(" ") + s1ALL_Equipment + html.BR() + s1DEX_MSG + html.I(" ") + s1DEX + html.BR() + s1STR_MSG + html.I(" ") + s1STR + html.BR() + html.BR() + s1Submit_BTN
s1ALL_Equipment.focus()
s1DEX.focus()
s1STR.focus()
return s1ALL_Equipment, s1DEX, s1STR, s1Submit_BTN
def One_handed_sword(): # 片手剣
ALL_EQ, D, S, BTN = ONEHANDsw()
@bind(BTN,"click")
def Oclick(cl):
sclear()
ALL_Equipment = int(ALL_EQ.value)
DEX = int(D.value)
STR = int(S.value)
Result = math_floor(ALL_Equipment + (DEX * 3 + STR) / 40)
document["RESULT"] <= 'あなたの安定率は: {One_H_STabillity}%です。'.format(One_H_STabillity=Result)
def TOWHANDsw():
s1ALL_Equipment_MSG = html.I("装備の安定率の合計値:")
s1ALL_Equipment = html.INPUT()
s1DEX_MSG = html.I("ステータスのDEX値:")
s1DEX = html.INPUT()
s1Submit_BTN = html.BUTTON("計算する")
TEXT_Feild <= s1ALL_Equipment_MSG + html.I(" ") + s1ALL_Equipment + html.BR() + s1DEX_MSG + html.I(" ") + s1DEX + html.BR() + html.BR() + s1Submit_BTN
s1ALL_Equipment.focus()
s1DEX.focus()
return s1ALL_Equipment, s1DEX, s1Submit_BTN
def Tow_handed_sword(): # 両手剣
ALL_EQ, D, BTN = TOWHANDsw()
@bind(BTN,"click")
def TClick(cl):
sclear()
ALL_Equipment = int(ALL_EQ.value)
DEX = int(D.value)
Result = math_floor(ALL_Equipment + DEX / 10)
document["RESULT"] <= 'あなたの安定率は: {Tow_H_STabillity}%です。'.format(Tow_H_STabillity=Result)
def DUALsw():
s1ALL_Equipment_MSG = html.I("装備の安定率の合計値:")
s1ALL_Equipment = html.INPUT()
s1DEX_MSG = html.I("ステータスのDEX値:")
s1DEX = html.INPUT()
s1STR_MSG = html.I("ステータスのSTR値:")
s1STR = html.INPUT()
s1Submit_BTN = html.BUTTON("計算する")
TEXT_Feild <= s1ALL_Equipment_MSG + html.I(" ") + s1ALL_Equipment + html.BR() + s1DEX_MSG + html.I(" ") + s1DEX + html.BR() + s1STR_MSG + html.I(" ") + s1STR + html.BR() + html.BR() + s1Submit_BTN
s1ALL_Equipment.focus()
s1DEX.focus()
s1STR.focus()
return s1ALL_Equipment, s1DEX, s1STR, s1Submit_BTN
def Dual_sword(): # 双剣
ALL_EQ, D, S, BTN = DUALsw()
@bind(BTN, "click")
def DClick(cl):
sclear()
ALL_Equipment = int(ALL_EQ.value)
DEX = int(D.value)
STR = int(S.value)
Result = math_floor(ALL_Equipment + (DEX * 3 + STR) / 40)
document["RESULT"] <= 'あなたの安定率は: {Dual_H_STabillity}%です。'.format(Dual_H_STabillity=Result)
def KNUCKLEs():
s1ALL_Equipment_MSG = html.I("装備の安定率の合計値:")
s1ALL_Equipment = html.INPUT()
s1DEX_MSG = html.I("ステータスのDEX値:")
s1DEX = html.INPUT()
s1Submit_BTN = html.BUTTON("計算する")
TEXT_Feild <= s1ALL_Equipment_MSG + html.I(" ") + s1ALL_Equipment + html.BR() + s1DEX_MSG + html.I(" ") + s1DEX + html.BR() + html.BR() + s1Submit_BTN
s1ALL_Equipment.focus()
s1DEX.focus()
return s1ALL_Equipment, s1DEX, s1Submit_BTN
def Knuckle(): # 拳
ALL_EQ, D, BTN = KNUCKLEs()
@bind(BTN, "click")
def KClick(cl):
sclear()
ALL_Equipment = int(ALL_EQ.value)
DEX = int(D.value)
Result = math_floor(ALL_Equipment + DEX / 40)
document["RESULT"] <= 'あなたの安定率は: {Knuckle_STabillity}%です。'.format(Knuckle_STabillity=Result)
def HALBERDs():
s1ALL_Equipment_MSG = html.I("装備の安定率の合計値:")
s1ALL_Equipment = html.INPUT()
s1DEX_MSG = html.I("ステータスのDEX値:")
s1DEX = html.INPUT()
s1STR_MSG = html.I("ステータスのSTR値:")
s1STR = html.INPUT()
s1Submit_BTN = html.BUTTON("計算する")
TEXT_Feild <= s1ALL_Equipment_MSG + html.I(" ") + s1ALL_Equipment + html.BR() + s1DEX_MSG + html.I(" ") + s1DEX + html.BR() + s1STR_MSG + html.I(" ") + s1STR + html.BR() + html.BR() + s1Submit_BTN
s1ALL_Equipment.focus()
s1DEX.focus()
s1STR.focus()
return s1ALL_Equipment, s1DEX, s1STR, s1Submit_BTN
def Halberd(): # 旋風槍
ALL_EQ, D, S, BTN = HALBERDs()
@bind(BTN, "click")
def HClick(cl):
sclear()
ALL_Equipment = int(ALL_EQ.value)
DEX = int(D.value)
STR = int(S.value)
Result = math_floor(ALL_Equipment + (DEX + STR) / 20)
document["RESULT"] <= 'あなたの安定率は: {Halberd_STabillity}%です。'.format(Halberd_STabillity=Result)
def KATANAs():
s1ALL_Equipment_MSG = html.I("装備の安定率の合計値:")
s1ALL_Equipment = html.INPUT()
s1DEX_MSG = html.I("ステータスのDEX値:")
s1DEX = html.INPUT()
s1STR_MSG = html.I("ステータスのSTR値:")
s1STR = html.INPUT()
s1Submit_BTN = html.BUTTON("計算する")
TEXT_Feild <= s1ALL_Equipment_MSG + html.I(" ") + s1ALL_Equipment + html.BR() + s1DEX_MSG + html.I(" ") + s1DEX + html.BR() + s1STR_MSG + html.I(" ") + s1STR + html.BR() + html.BR() + s1Submit_BTN
s1ALL_Equipment.focus()
s1DEX.focus()
s1STR.focus()
return s1ALL_Equipment, s1DEX, s1STR, s1Submit_BTN
def Katana(): # 刀
ALL_EQ, D, S, BTN = KATANAs()
@bind(BTN, "click")
def KTClick(cl):
sclear()
ALL_Equipment = int(ALL_EQ.value)
DEX = int(D.value)
STR = int(S.value)
Result = math_floor(ALL_Equipment + (DEX + STR * 3) / 40)
document["RESULT"] <= 'あなたの安定率は: {Katana_STabillity}%です。'.format(Katana_STabillity=Result)
def STAFFs():
s1ALL_Equipment_MSG = html.I("装備の安定率の合計値:")
s1ALL_Equipment = html.INPUT()
s1STR_MSG = html.I("ステータスのSTR値:")
s1STR = html.INPUT()
s1Submit_BTN = html.BUTTON("計算する")
TEXT_Feild <= s1ALL_Equipment_MSG + html.I(" ") + s1ALL_Equipment + html.BR() + s1STR_MSG + html.I(" ") + s1STR + html.BR() + html.BR() + s1Submit_BTN
s1ALL_Equipment.focus()
s1STR.focus()
return s1ALL_Equipment, s1STR, s1Submit_BTN
def Staff(): # 杖
ALL_EQ, S, BTN = STAFFs()
@bind(BTN, "click")
def STClick(cl):
sclear()
ALL_Equipment = int(ALL_EQ.value)
STR = int(S.value)
Result = math_floor(ALL_Equipment + STR / 20)
document["RESULT"] <= 'あなたの安定率は: {Staff_STabillity}%です。'.format(Staff_STabillity=Result)
def MAGICDEVICEs():
s1ALL_Equipment_MSG = html.I("装備の安定率の合計値:")
s1ALL_Equipment = html.INPUT()
s1DEX_MSG = html.I("ステータスのDEX値:")
s1DEX = html.INPUT()
s1Submit_BTN = html.BUTTON("計算する")
TEXT_Feild <= s1ALL_Equipment_MSG + html.I(" ") + s1ALL_Equipment + html.BR() + s1DEX_MSG + html.I(" ") + s1DEX + html.BR() + html.BR() + s1Submit_BTN
s1ALL_Equipment.focus()
s1DEX.focus()
return s1ALL_Equipment, s1DEX, s1Submit_BTN
def Magic_Devices(): # 魔導具
ALL_EQ, D, BTN = MAGICDEVICEs()
@bind(BTN, "click")
def MDClick(cl):
sclear()
ALL_Equipment = int(ALL_EQ.value)
DEX = int(D.value)
Result = math_floor(ALL_Equipment + DEX / 10)
document["RESULT"] <= 'あなたの安定率は: {MD_STabillity}%です。'.format(MD_STabillity=Result)
def BOWs():
s1ALL_Equipment_MSG = html.I("装備の安定率の合計値:")
s1ALL_Equipment = html.INPUT()
s1DEX_MSG = html.I("ステータスのDEX値:")
s1DEX = html.INPUT()
s1STR_MSG = html.I("ステータスのSTR値:")
s1STR = html.INPUT()
s1Arrow_MSG = html.I("矢の安定率:")
s1Arrow = html.INPUT()
s1Submit_BTN = html.BUTTON("計算する")
TEXT_Feild <= s1ALL_Equipment_MSG + html.I(" ") + s1ALL_Equipment + html.BR() + s1DEX_MSG + html.I(" ") + s1DEX + html.BR() + s1STR_MSG + html.I(" ") + s1STR + html.BR() + s1Arrow_MSG + html.I(" ") + s1Arrow + html.BR() + html.BR() + s1Submit_BTN
s1ALL_Equipment.focus()
s1DEX.focus()
s1STR.focus()
s1Arrow.focus()
return s1ALL_Equipment, s1DEX, s1STR, s1Arrow, s1Submit_BTN
def Bow(): # 弓
ALL_EQ, D, S, Arrow, BTN = BOWs()
@bind(BTN, "click")
def BClick(cl):
sclear()
ALL_Equipment = int(ALL_EQ.value)
Arrow_STabillity = int(Arrow.value)
DEX = int(D.value)
STR = int(S.value)
Result = math_floor(ALL_Equipment + Arrow_STabillity + (DEX + STR) / 20)
document["RESULT"] <= 'あなたの安定率は: {Bow_STabillity}%です。'.format(Bow_STabillity=Result)
def BOWGUNs():
s1ALL_Equipment_MSG = html.I("装備の安定率の合計値:")
s1ALL_Equipment = html.INPUT()
s1STR_MSG = html.I("ステータスのSTR値:")
s1STR = html.INPUT()
s1Arrow_MSG = html.I("矢の安定率:")
s1Arrow = html.INPUT()
s1Submit_BTN = html.BUTTON("計算する")
TEXT_Feild <= s1ALL_Equipment_MSG + html.I(" ") + s1ALL_Equipment + html.BR() + s1STR_MSG + html.I(" ") + s1STR + html.BR() + s1Arrow_MSG + html.I(" ") + s1Arrow + html.BR() + html.BR() + s1Submit_BTN
s1ALL_Equipment.focus()
s1STR.focus()
s1Arrow.focus()
return s1ALL_Equipment, s1STR, s1Arrow, s1Submit_BTN
def BowGun(): # 自動弓
ALL_EQ, S, Arrow, BTN = BOWGUNs()
@bind(BTN, "click")
def BOClick(cl):
sclear()
ALL_Equipment = int(ALL_EQ.value)
Arrow_STabillity = int(Arrow.value)
STR = int(S.value)
Result = math_floor(ALL_Equipment + Arrow_STabillity / 2 + STR / 20)
document["RESULT"] <= 'あなたの安定率は: {Bowgun_STabillity}%です。'.format(Bowgun_STabillity=Result)
def main_d():
s1Selector_MSG = html.I("計算したい職の番号:")
s1Selector = html.INPUT()
SubmitBTNs = html.BUTTON("選択")
Selctor_SW <= s1Selector_MSG + html.I(" ") + s1Selector + html.BR() + html.BR() + SubmitBTNs
s1Selector.focus()
return s1Selector, SubmitBTNs
def main():
SSelector, BTNs = main_d()
@bind(BTNs, "click")
def click(cl):
jobs_clear()
tclear()
Selector = str(SSelector.value)
if Selector == '1':
document["JOBS"] <= '>>片手剣を選択しました'
sclear()
One_handed_sword()
elif Selector == '2':
document["JOBS"] <= '>>両手剣を選択しました'
sclear()
Tow_handed_sword()
elif Selector == '3':
document["JOBS"] <= '>>双剣を選択しました'
sclear()
Dual_sword()
elif Selector == '4':
document["JOBS"] <= '>>拳を選択しました'
sclear()
Knuckle()
elif Selector == '5':
document["JOBS"] <= '>>旋風槍を選択しました'
sclear()
Halberd()
elif Selector == '6':
document["JOBS"] <= '>>刀を選択しました'
sclear()
Katana()
elif Selector == '7':
document["JOBS"] <= '>>杖を選択しました'
sclear()
Staff()
elif Selector == '8':
document["JOBS"] <= '>>魔導具を選択しました'
sclear()
Magic_Devices()
elif Selector == '9':
document["JOBS"] <= '>>弓を選択しました'
sclear()
Bow()
elif Selector == '10':
document["JOBS"] <= '>>自動弓を選択しました'
sclear()
BowGun()
else:
document["JOBS"] <= '>>番号を入力してください'
sys.exit(0)
main()
</script>
<h4 style="display: inline;"><a href="https://crossdarkrix.github.io/ToramHTMLTools/" style="display: inline;">トップページに戻る</a></h4>
<h2 id="TITLE"></h2>
<h3>
<div>
1. 片手剣 
2. 両手剣<br>
3. 双剣   
4. 拳<br>
5. 槍     
6. 刀<br>
7. 杖     
8. 魔導具<br>
9. 弓    
10. 自動弓<br>
(「装備の安定率の合計値」には<br>武器についている「ATK (??%)」の<br>()内の数値と装備で盛っている<br>安定率を入れてください。)<br>
</div>
</h3>
<h3>
<div id="SELECTOR"></div>
<h3 id="JOBS"></h3>
<div id="text_field"></div><br>
<div id="RESULTs"><h2 id="RESULT" style="color: red;"></h2></div>
</h3>
<h3><br><br><br>
<a href="Critical_Calculator.html">クリティカル率計算ツールへ</a><br>
<a href="Critical_Damage_Calculator.html">クリティカルダメージ計算ツールへ</a><br>
<a href="Abnormal_Tolerance_Calculator.html">異常耐性計算ツールへ</a><br>
</h3>
</body>
</html>