forked from Mush-0/sw-dmg-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
293 lines (287 loc) · 10.5 KB
/
index.html
File metadata and controls
293 lines (287 loc) · 10.5 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Favicon for the site -->
<link
rel="icon"
href="https://cdn.discordapp.com/emojis/616680482691743772.png?quality=lossless"
type="image/x-icon"
/>
<link rel="stylesheet" href="style.css" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"
/>
<script defer src="./chart.min.js"></script>
<script defer type="module" src="./userInput.js"></script>
<script defer type="module" src="./darkMode.js"></script>
<title>Damage Chart</title>
</head>
<body>
<div class="toggle-container" role="toggle-dark-mode">
<h4 class="center">Dark Mode</h4>
<div class="fixed-container">
<input
class="hidden"
type="checkbox"
name="toggle-dark"
id="dark-mode"
/>
<label class="pointer no-margin" for="dark-mode"
><div class="white hidden"></div>
<div class="ball"></div>
<div class="black"></div
></label>
</div>
</div>
<h1 class="center under-line">Damage Chart</h1>
<div class="user-input container-fluid">
<form action="#" id="userInputs">
<span class="bold large under-line">General info:</span><br />
<label for="minAtk"
>Min Atk:
<input required type="number" id="minAtk" placeholder="21000" min="0"
/></label>
<label for="maxAtk"
>Max Atk:
<input required type="number" id="maxAtk" placeholder="27000" min="0"
/></label>
<label for="critDmg"
>Crit Dmg:
<input
required
type="number"
id="critDmg"
placeholder="35000"
min="0"
/></label>
<label for="skillMod"
>Skill Modifier:
<input required type="number" id="skillMod" placeholder="200" min="0"
/></label>
<label for="secondMod"
>Other Modifier:
<input required type="number" id="secondMod" placeholder="20" min="0"
/></label>
<div class="data-range">
<span class="bold large under-line">AB/BD Ranges:</span>
<br /><label for="steps"
>AB & BD number of steps:
<input required type="number" id="steps" placeholder="20" min="0"
/></label>
<br />
<label for="startAB"
>AB start:
<input
required
type="number"
id="startAB"
placeholder="30"
min="0"
step="any" /></label
><label for="stepValueAB"
>AB step value:
<input
required
type="number"
id="stepValueAB"
placeholder="3"
min="0"
step="any"
/></label>
<br />
<label for="startBD"
>BD start:
<input
required
type="number"
id="startBD"
placeholder="112"
min="0"
step="any"
/></label>
<label for="stepValueBD"
>BD step value:
<input
required
type="number"
id="stepValueBD"
placeholder="5"
min="0"
step="any"
/></label>
</div>
<label for="selectBoss"
>Select Boss:
<select id="selectBoss">
<option value="AOV">Yorhaka(AOV)</option>
<option value="HH">Rhapakumba (HH)</option>
<optgroup label="Lunar Fall">
<option value="LF_queen">Junk Queen</option>
<option value="LF_edgar">Edgar</option>
<option value="LF_aculus">Aculus</option>
</optgroup>
<optgroup label="Violent Sun">
<option value="VS_P1">Flemma P1</option>
<option value="VS_P2">Flemma P2</option>
<option value="VS_P3">Flemma P3</option>
<option selected value="VS_Solo">Flemma (Solo)</option>
</optgroup>
<optgroup label="Broken Savior">
<option value="Tenebris_P1">Tenebris P1</option>
<option value="Tenebris_P2">Tenebris P2</option>
<option value="Tenebris_Hard">Tenebris (Hard)</option>
</optgroup>
<optgroup label="Lunar Fall HERO">
<option value="heroLF_queen">Hero Junk Queen</option>
</optgroup>
<optgroup label="Tragedy Fairy">
<option value="ferdelance_N_P1">Ferdelance N P1</option>
<option value="ferdelance_N_P2">Ferdelance N P2</option>
<option value="ferdelance_H_P1">Ferdelance H P1</option>
<option value="ferdelance_H_P2">Ferdelance H P2</option>
<option value="ferdelance_M_P1">Ferdelance M P1</option>
<option value="ferdelance_M_P2">Ferdelance M P2</option>
</optgroup>
</select>
</label>
<br />
<div class="container-fluid d-flex justify-content-center center">
<input
class="btn btn-success btn-lg"
id="submit"
type="submit"
value="Draw Chart"
/>
<input
class="btn btn-danger btn-lg"
id="reset"
type="reset"
value="Reset Values"
/>
</div>
</form>
</div>
<br />
<div class="container">
<canvas id="chart" style="height: 100%; width: 100%"></canvas>
</div>
<div class="container-fluid guide">
<hr />
<h3 class="under-line">How to use the tool?</h3>
<h5>
The initial data I provided to draw the chart is from a real character
and it appears inside the fields so you can have some idea about values.
</h5>
<h5>
1-You need to fill in all the inputs below with correct number
formatting:
</h5>
<ul>
<li>
Don't use percentage symbol "%", just enter the number without it (
<span class="wrong">AB:30%</span> ->
<span class="correct">AB:30 </span>).
</li>
<li>
For decimal fractions don't use comma separator "," instead use the
dot separator "." and note that only AB/BD start and step values
accept decimal fractions (
<span class="wrong">AB step value:3,5</span> ->
<span class="correct">AB step value:3.5 </span>).
</li>
</ul>
<h5>
2-Here are the terminologies that may seem "vague" and what they mean:
</h5>
<ul>
<li>
Skill Modifier: The number written on the skill description (Skill
that does 515% damage -> 515).
</li>
<li>
Other Modifier: Represent any other modifier user wants to add (Desire
awakening with extra 20% damage -> 20).
</li>
<li>
AB & BD number of steps: Used to calculate how many points (steps)
needed on the chart X-Axis.
</li>
<li>
AB/BD step value: The increase between two consecutive points (steps)
on the chart X-Axis (AB and BD can have different starts and/or step
value).
</li>
</ul>
<h5>
3-When varying AB values the "BD start" is used in every AB value to
calculate damage dealt and vice versa when varying BD, more on that
below.
</h5>
</div>
<div class="info-container container-fluid">
<hr />
<h3 class="text-left under-line">How the calculations are made?</h3>
<p>
The damage formula shown below has been self tested by me. The defense formula has been fetched from in-game files and it matches with in-game data (if you apply the defense formula then highlight Defense on your profile, you'll find the same value).
The boss defense values at end of this section are from Eden~♡#2724 on Discord (translator) and the original owner of the table from KR (for providing the values)
</p>
<p class="under-line">Here are my calculation steps:</p>
<p>
While calculating AB damage dealt values I use "BD start" as a fixed
value and change AB starting from "AB start" with increments of "AB step
value" until I reach total of values provided in "number of steps".
<br />
Then when calculating BD damage dealt I use "AB start" as a fixed value
and change BD starting from "BD start" with increments of "BD step
value" until I reach total of values provided in "number of steps".
</p>
<ul>
<li>
Calculate the choosen boss defense rate for each AB value (Boss
Defense Table values for AB=0%)
</li>
<div class="formDefd">
<img class="small" src="./images/DefRate.png" alt="Defense rate formula" />
</div>
<div class="formDefw hidden">
<img class="small" src="./images/DefRateW.png" alt="Defense rate formula" />
</div>
<li>
Then calculate damage dealt using the character stats and defense rate
in this formula, the BD used is "BD start"
</li>
<div class="formCritd">
<img class="small" src="./images/CriticalHit.png" alt="Critical Hit formula" />
</div>
<div class="formCritw hidden">
<img class="small" src="./images/CriticalHitW.png" alt="Critical Hit formula" />
</div>
<li>
Finally recalculate the damage dealt again while changing BD value and
using the EnemyDefRate value that corresponds with "AB Start" value.
</li>
</ul>
<img
class="large center"
src="./images/BossDef.png"
alt="Boss defence list"
/>
</div>
<div class="my-info container-fluid">
<hr />
<h3 class="under-line">Suggestions or Problems</h3>
Open an issue on <a target="_blank" href="https://github.com/AFNGP/sw-dmg-chart/issues">github</a>.
</div>
<div class="TBD container-fluid">
<hr/>
<h3 class="under-line">TO-DO List</h3>
PLEASE NOTE: I will be discontinuing the development of this repository as I have quit Soulworker. If you would like to further develop it, here are some things that need to be done:
- Add a toggle for max attack buff
- Add compatibility for Erwin
</div>
</body>
</html>