-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
453 lines (428 loc) · 23.7 KB
/
index.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
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="A simple tool to calculate NP (Noble Phantasm) damage for Fate Grand Order.">
<meta name="author" content="https://github.com/maketakunai">
<meta name="google-site-verification" content="8H1WdrlTkhVqQUX2KXBUFxqi6_YlKaOqdRwiqBzTLN0" />
<link rel="icon" type="image/png" href="./img/favicon.png">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-158687430-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-158687430-1');
</script>
<title>FGO NP Damage Calculator</title>
<link href="./css/bootstrap.css" rel="stylesheet">
<link href="./css/form-validation.css" rel="stylesheet">
</head>
<body class="bg-light">
<div class="container">
<div class="py-5 text-center">
<h2>FGO Noble Phantasm Damage Calculator
<img src="./img/fou.png" hspace="3" width="35"></img>
</h2>
</div>
<div class="row">
<div class="col-md-4 order-md-2 mb-4">
<h4 class="d-flex justify-content-between align-items-center mb-3">
<span class="text">Projected Damage</span>
</h4>
<ul class="list-group mb-3">
<li class="list-group-item d-flex justify-content-between lh-condensed">
<div>
<h6 class="my-0">Low</h6>
<input type="number" class="form-control" name="low" id="low" placeholder="0" readonly>
</div>
</li>
<li class="list-group-item d-flex justify-content-between lh-condensed">
<div>
<h6 class="my-0">Average</h6>
<input type="number" class="form-control" name="average" id="average" placeholder="0" readonly>
</div>
</li>
<li class="list-group-item d-flex justify-content-between lh-condensed">
<div>
<h6 class="my-0">High</h6>
<input type="number" class="form-control" name="high" id="high" placeholder="0" readonly>
</div>
</li>
</ul>
<p>How to use this Calculator
<ul>
<li>Class, ATK, and NP Damage Multiplier fields are required.</li>
<li>Once you select a Class and Servant, you can choose its level.</li>
<li>Fill in values for any buffs/debuffs and press Calculate.</li>
<li>After selecting a class, you can input custom values without having to choose a servant.</li>
</ul>
</p>
<p>Tips
<ul>
<li><a href="https://github.com/maketakunai/maketakunai.github.io/blob/master/CHANGELOG.md">Click to view changelog.</a></li>
<li>All NP multiplier values are up-to-date with JP server.</li>
<li>Don't forget Passive Skill effects when doing calculations.</li>
<li>Keep in mind effects that "activate first" before NP.</li>
<li>Hover over the <img src="./img/alert-circle-outline.png" width="20"</img> for more detail about certain fields.</li>
</ul>
</p>
</div>
<div class="col-md-8 order-md-1">
<h4 class="mb-3">Servant Info</h4>
<form class="needs-validation" novalidate>
<div class="row">
<div class="col-md-4 mb-3">
<label for="servantClass">Class</label>
<select class="custom-select d-block w-100" id="servantClass" required>
<option value="" selected = "true" disabled>Choose...</option>
<option value="Saber">Saber</option>
<option value="Archer">Archer</option>
<option value="Lancer">Lancer</option>
<option value="Rider">Rider</option>
<option value="Caster">Caster</option>
<option value="Assassin">Assassin</option>
<option value="Berserker">Berserker</option>
<option value="Ruler">Ruler</option>
<option value="Avenger">Avenger</option>
<option value="Mooncancer">Moon Cancer</option>
<option value="Alterego">Alter Ego</option>
<option value="Foreigner">Foreigner</option>
<option value="Pretender">Pretender</option>
<option value="Beast">Beast</option>
</select>
<div class="invalid-feedback">
Please select a class.
</div>
</div>
<div class="col-md-6 mb-3">
<label for="state">Servant</label>
<select class="custom-select d-block w-100" id="servant">
<option value="" selected = "true" disabled>Choose a class first!</option>
</select>
</div>
</div>
<div class="row">
<div class="col-md-3 mb-3">
<label for="attack">Servant ATK</label>
<input type="number" class="form-control" id="attack" placeholder="0" value="" min="0" data-bind="value:attack" required>
<div class="invalid-feedback">
Valid attack value is required.
</div>
</div>
<div class="col-md-3 mb-3">
<label for="state">Level</label>
<select class="custom-select d-block w-100" id="level" disabled>
<!-- <option value="" selected = "true" >1</option> -->
</select>
</div>
<div class="col-md-4 mb-3">
<label for="NP">NP Multiplier
<img src="./img/alert-circle-outline.png" class="float-right" hspace="5" width="20" data-toggle="tooltip" data-html="true" title="Extra damage mods like Arash's or Chen Gong's overcharge effects are added to their base NP damage multiplier.<br>This also applies to servants that have an OC effect based on remaining HP."></img>
</label>
<div class="input-group">
<input type="number" class="form-control" id="NP" placeholder="0" value="" min="0" data-bind="value:NP" required>
<div class="input-group-append">
<span class="input-group-text">%</span>
</div>
<div class="invalid-feedback">
Valid NP multiplier is required.
</div>
</div>
</div>
</div>
<div class="row">
<div class ="col-md-12 mb-3">
<!-- <div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="grailed" disabled>
<label class="custom-control-label" for="grailed">Max Grails</label>
</div> -->
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="fou">
<label class="custom-control-label" for="fou">Fou</label>
</div>
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="goldFou" disabled>
<label class="custom-control-label" for="goldFou">Golden Fou</label>
</div>
<!-- <div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="ocButton" disabled>
<label class="custom-control-label" for="ocButton">Overcharge</label>
</div>
<br> -->
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="npButton" disabled>
<label class="custom-control-label" for="npButton">NP Upgrade
<img src="./img/npupgrade.png" class="float-right" hspace="5" width="20"></img>
</label>
</div>
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="secondNP" disabled>
<label class="custom-control-label" for="secondNP">2nd NP Upgrade</label>
</div>
</div>
</div>
<div class="row">
<div class ="col-md-4 mb-3">
<label for="radio">NP Type</label>
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-custom1 active">
<input type="radio" name="cardoptions" id="buster" autocomplete="off" value="buster" checked>Buster
</label>
<label class="btn btn-custom2">
<input type="radio" name="cardoptions" id="arts" autocomplete="off" value="arts">Arts
</label>
<label class="btn btn-custom3">
<input type="radio" name="cardoptions" id="quick" autocomplete="off" value="quick">Quick
</label>
</div>
</div>
<div class="col-md-3 mb-3">
<label for="state">NP Level
<img src="./img/npupgrade.png" width="20" class="float-right" hspace="5" id="npupgraded" data-toggle="tooltip" data-html="true" title="This servant has an NP Upgrade."></img>
<img src="./img/npupgradegray.png" width="20" class="float-right" hspace="5" id="nonnpupgraded" data-toggle="tooltip" data-html="true" title="This servant does not yet have an NP Upgrade.<br>This is a projected NP multiplier."></img>
</label>
<select class="custom-select d-block w-100" id="npLevel" disabled>
<!--<option value="">Choose...</option>-->
<option value="0">NP 1</option>
<option value="1">NP 2</option>
<option value="2">NP 3</option>
<option value="3">NP 4</option>
<option value="4">NP 5</option>
</select>
</div>
<!-- <div class="col-md-2 mb-3">
<label for="state">
<img src="./img/overcharge.png" class="float-right" hspace="2" width="37" data-toggle="tooltip" data-html="true" title="NP Overcharge level.<br>For effects that scale with HP, the values are for 1 HP."></img>
</label>
<select class="custom-select d-block w-100" id="ocLevel" disabled>
<option value="0">1</option>
<option value="1">2</option>
<option value="2">3</option>
<option value="3">4</option>
<option value="4">5</option>
</select>
</div> -->
<div class="col-md-3 mb-3">
<label for="ceAttack">CE ATK
<img src="./img/alert-circle-outline.png" class="float-right" hspace="5" width="20" data-toggle="tooltip" data-html="true" title="Additional attack damage from equipped Craft Essence."></img>
</label>
<input type="number" class="form-control" id="ceAttack" placeholder="0" value="" data-bind="value:ceAttack">
<div class="invalid-feedback">
Valid attack value is required.
</div>
</div>
</div>
<div class="row">
<div class="col-md-5 mb-3">
<label for="cardBuffs">Card Buffs
<img src="./img/quickup.png" class="float-right" hspace="2" width="20"></img>
<img src="./img/artsup.png" class="float-right" hspace="2" width="20"></img>
<img src="./img/busterup.png" class="float-right" hspace="2" width="20"></img>
</label>
<div class="input-group">
<input type="number" class="form-control" id="cardBuffs" placeholder="0" value="" data-bind="value:cardBuffs">
<div class="input-group-append">
<span class="input-group-text">%</span>
</div>
<div class="invalid-feedback">
Valid buff value is required.
</div>
</div>
</div>
<div class="col-md-5 mb-3">
<label for="cardDebuffs">Card Debuffs on Enemy
<img src="./img/alert-circle-outline.png" class="float-right" hspace="5" width="20" data-toggle="tooltip" data-html="true" title="<img class='img-thumbnail{background-color:transparent}' hspace='2' width='20' src='./img/busterresistdown.png'/><img class='img-thumbnail{background-color:transparent}' hspace='2' width='20' src='./img/artsresistdown.png'/><img class='img-thumbnail{background-color:transparent}' hspace='2' width='20' src='./img/quickresistdown.png'/>"></img>
</label>
<div class="input-group">
<input type="number" class="form-control" id="cardDebuffs" placeholder="0" value="" data-bind="value:cardDebuffs">
<div class="input-group-append">
<span class="input-group-text">%</span>
</div>
<div class="invalid-feedback">
Valid debuff value is required.
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-5 mb-3">
<label for="attackBuffs">Attack Buffs
<img src="./img/attackup.png" class="float-right" hspace="5" width="20"></img>
</label>
<div class="input-group">
<input type="number" class="form-control" id="attackBuffs" placeholder="0" value="" data-bind="value:attackBuffs">
<div class="input-group-append">
<span class="input-group-text">%</span>
</div>
<div class="invalid-feedback">
Valid buff value is required.
</div>
</div>
</div>
<div class="col-md-5 mb-3">
<label for="defenseDebuffs">Defense Debuffs on Enemy
<img src="./img/defensedown.png" class="float-right" hspace="5" width="20"></img>
</label>
<div class="input-group">
<input type="number" class="form-control" id="defenseDebuffs" placeholder="0" value="" data-bind="value:defenseDebuffs">
<div class="input-group-append">
<span class="input-group-text">%</span>
</div>
<div class="invalid-feedback">
Valid debuff value is required.
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-5 mb-3">
<label for="NPBuffs">NP Damage Buffs
<img src="./img/npdamageup.png" class="float-right" hspace="5" width="20"></img>
</label>
<div class="input-group">
<input type="number" class="form-control" id="NPBuffs" placeholder="0" value="" data-bind="value:NPBuffs">
<div class="input-group-append">
<span class="input-group-text">%</span>
</div>
<div class="invalid-feedback">
Valid buff value is required.
</div>
</div>
</div>
<div class="col-md-5 mb-3">
<label for="flatAttack">Flat Damage Attack Buffs
<img src="./img/alert-circle-outline.png" class="float-right" hspace="5" width="20" data-toggle="tooltip" data-html="true" title="Flat damage attack values, like Divinity.<br><b>Not a percentage boost!</b>"></img>
</label>
<input type="number" class="form-control" id="flatAttack" placeholder="0" value="" data-bind="value:flatAttack">
<div class="invalid-feedback">
Valid attack value is required.
</div>
</div>
</div>
<div class="row">
<div class="col-md-5 mb-3">
<label for="SPBuffs">PowerMod Buffs
<img src="./img/alert-circle-outline.png" class="float-right" hspace="5" width="20" data-toggle="tooltip" data-html="true" title="Buffs that 'increase own damage against' something.<br>Buffs like Jack's vs. females would go here.<br>Applies to event bonus CE damage."></img>
<img src="./img/specialattackup.png" class="float-right" hspace="5" width="20"></img>
</label>
<div class="input-group">
<input type="number" class="form-control" id="SPBuffs" placeholder="0" value="" data-bind="value:SPBuffs">
<div class="input-group-append">
<span class="input-group-text">%</span>
</div>
<div class="invalid-feedback">
Valid buff value is required.
</div>
</div>
</div>
<div class="col-md-5 mb-3">
<label for="NPSPBuffs">NP Extra Damage
<img src="./img/alert-circle-outline.png" class="float-right" hspace="5" width="20" data-toggle="tooltip" data-html="true" title="When the NP 'Deals Extra Damage' to certain things.<br>Multipliers like Mordred's overcharge vs. Arthurs would go here.<br>Calculates using a base of 100%, so if the NP does 150% extra, you'd put 50% in the box."></img>
</label>
<div class="input-group">
<input type="number" class="form-control" id="NPSPBuffs" placeholder="0" value="" data-bind="value:NPSPBuffs">
<div class="input-group-append">
<span class="input-group-text">%</span>
</div>
<div class="invalid-feedback">
Valid attack value is required.
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-5 mb-3">
<label for="state">Man/Earth/Sky Advantage
<img src="./img/alert-circle-outline.png" class="float-right" hspace="5" width="20" data-toggle="tooltip" data-html="true" title="<img class='p-2' src='img/attribute_advantage.png' alt='Man deals more damage to Sky, Man takes less damage from Earth.<br>Sky deals more damage to Earth, Sky takes less damage from Earth.<br>Earth deals more damage to Man, Earth takes less damage from Man.' />"></img>
</label>
<select class="custom-select d-block w-100" id="ESAdvantage">
<option value="1">Neutral</option>
<option value="1.1">Yes (1.1x)</option>
<option value="0.9">No (0.9x)</option>
</select>
</div>
<div class="col-md-5 mb-3">
<label for="state">Advantage</label>
<select class="custom-select d-block w-100" id="advantage">
<!--<option value="">Choose...</option>-->
<option value="1">Neutral</option>
<option value="2">Yes (2x)</option>
<option value="0.5">No (0.5x)</option>
<option value="1.5">Berserker, AlterEgo (1.5x)</option>
</select>
</div>
</div>
<!--<hr class="mb-4">
<div class="row">
<div class ="col-md-10 mb-3">
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="mlbBgrail">
<label class="custom-control-label" for="mlbBgrail">MLB Black Grail</label>
</div>
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="doubleSkadi">
<label class="custom-control-label" for="doubleSkadi">2x Skadi</label>
</div>
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="doubleMerlin">
<label class="custom-control-label" for="doubleMerlin">2x Merlin</label>
</div>
</div>
</div>-->
<hr class="mb-4">
<button type="submit" class="btn btn-primary btn-lg">Calculate</button>
<button type="reset" class="btn btn-secondary btn-lg">Reset</button>
</form>
</div>
</div>
<footer class="my-5 pt-5 text-muted text-center text-small">
<p class="mb-1">created by maketakunai (Reverie#0718)</p>
servant data courtesy of the <a href="https://apps.atlasacademy.io/db/">Atlas Academy DB</a>
<ul class="list-inline">inspired by the work of the following:
<li class="list-inline-item"><a href="http://blogs.nrvnqsr.com/entry.php/3309-How-is-damage-calculated">Kyte</a></li>
<li class="list-inline-item"><a href="https://fgo.boyakin.net/fgocalc">Boyakin</a></li>
<li class="list-inline-item"><a href="https://www9.atwiki.jp/f_go/pages/2342.html">FGO @wiki</a></li>
</ul>
</footer>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.slim.min.js"><\/script>')</script>
<script>window.jQuery || document.write('<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.2.1.slim.min.js"><\/script>')</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="./js/servant-list.js" type="text/javascript"></script>
<script src="./js/main.js" type="text/javascript"></script>
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
$(function() {
var select = '';
for (i=1;i<=120;i++){
select += '<option val=' + i + '>' + i + '</option>';
}
$('#level').html(select);
})
$('#nonnpupgraded').hide();
$('#npupgraded').hide();
(function() {
'use strict';
window.addEventListener('load', function() {
var forms = document.getElementsByClassName('needs-validation');
var validation = Array.prototype.filter.call(forms, function(form) {
form.addEventListener('submit', function(event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
event.preventDefault();
}, false);
});
}, false);
})();
</script>
</body>
</html>