forked from hsoptimizer/ancient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
227 lines (225 loc) · 12.2 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<link rel="stylesheet" type="text/css" href="rulesofthumb.css" media="all">
<title>Clicker Heroes Ancient Calculator</title>
<script src="scripts/jquery-2.1.4.min.js"></script>
<!-- tooltips -->
<script type="text/javascript" src="scripts/nhpup_1.1.js"></script>
<!-- savegame checksum -->
<script type="text/javascript" src="scripts/md5.js"></script>
</head>
<body onload="loadSettings()">
<img src='http://i.imgur.com/rxZ8ypH.png' height="64px"><h1 style="display: inline-block;vertical-align:middle;">Clicker Heroes Ancient Calculator</h1>
<table>
<tr>
<td>Save game:</td>
<td colspan="4"><textarea id="savegame" autofocus placeholder="Paste your save game here"></textarea></td>
</tr>
<tr>
<td></td>
<td colspan="4"><input type="button" onclick="import_save()" style="text-align: center; width:100%;" value="Import/reload save game"></td>
</tr>
<tr>
<th rowspan="5">Options</td>
<td><input type="checkbox" id="primalsouls" disabled></td>
<td colspan="3" style="text-align:left;">Include souls gained after ascension</td>
</tr>
<tr>
<td><input type="checkbox" id="ignoreIris"></td>
<td style="text-align:left;">Ignore Iris <a onclick="void(0)" onmouseover="nhpup.popup('Enabling this will ignore Iris during the optimization.');">(<u>?</u>)</a></td>
<td><input type="number" class="uservalue" value="0" id="irisBonus"></td>
<td style="text-align:left;">Iris bonus from relics</td>
</tr>
<tr>
<td><input type="checkbox" id="noBossLanding"></td>
<td colspan="3" style="text-align:left;">Do not ascend directly to a boss zone <a onclick="void(0)" onmouseover="nhpup.popup('Enabling this will cause the highest zone unlocked by Iris to be one zone before a Boss. Disable this to ascend directly to a Boss zone.');">(<u>?</u>)</a></td>
</tr>
<tr>
<td><input type="checkbox" id="laxsolo"></td>
<td colspan="3" style="text-align:left;">Easier Solomon <a onclick="void(0)" onmouseover="nhpup.popup('Enabling this will use log10 for Solomon instead of ln (log base e). This will value Solomon significantly lower.');">(<u>?</u>)</a></td>
</tr>
<tr>
<td><input type="checkbox" id="clicking"></td>
<td colspan="3" style="text-align:left;">Include clicking ancients <a onclick="void(0)" onmouseover="nhpup.popup('Clicking ancients are ignored by default, unless you don’t have Siyalatas. Enabling this will include Bhaal, Fragsworth, Juggernaut and Pluto in the optimization, if you have them.');">(<u>?</u>)</a></td>
</tr>
<tr>
<td></td>
<td colspan="4"><input type="button" onclick="optimize()" style="text-align: center; width:100%;" value="Do the math"></td>
</tr>
<tr>
<th>Ancient</th>
<th><a onclick="void(0)" onmouseover="nhpup.popup('The current ancient levels and banked Hero Souls found in your save game. You can manually adjust these values.');">Current</a></th>
<th><a onclick="void(0)" onmouseover="nhpup.popup('Optimal ancient levels according to the Rules of Thumb, based on your <i>recommended</i> level of Siyalatas (or Argaiv, if you don’t have Siya). You may or may not be able to afford these levels yet.');">Optimal</a></th>
<th><a onclick="void(0)" onmouseover="nhpup.popup('Level your ancients to the value shown here. These are the levels you can afford with the amount of Hero Souls in your bank.');">Recommended</a></th>
<th><a onclick="void(0)" onmouseover="nhpup.popup('Affordable number of upgrades for each ancient.<br>(Recommended-Current)');">Delta</a></th>
</tr>
<tr>
<td>Souls in bank:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old0"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal0"></td>
<td><input type="number" class="noborder" disabled readonly id="new0"></td>
<td><input type="number" class="noborder" disabled readonly id="delta0"></td>
</tr>
<tr>
<td>Argaiv:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old28"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal28"></td>
<td><input type="number" class="noborder" disabled readonly id="new28"></td>
<td><input type="number" class="noborder" disabled readonly id="delta28"></td>
</tr>
<tr>
<td>Iris:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old30"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal30"></td>
<td><input type="number" class="noborder" disabled readonly id="new30"></td>
<td><input type="number" class="noborder" disabled readonly id="delta30"></td>
</tr>
<tr>
<td>Libertas:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old4"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal4"></td>
<td><input type="number" class="noborder" disabled readonly id="new4"></td>
<td><input type="number" class="noborder" disabled readonly id="delta4"></td>
</tr>
<tr>
<td>Mammon:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old8"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal8"></td>
<td><input type="number" class="noborder" disabled readonly id="new8"></td>
<td><input type="number" class="noborder" disabled readonly id="delta8"></td>
</tr>
<tr>
<td>Mimzee:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old9"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal9"></td>
<td><input type="number" class="noborder" disabled readonly id="new9"></td>
<td><input type="number" class="noborder" disabled readonly id="delta9"></td>
</tr>
<tr>
<td>Morgulis:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old16"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal16"></td>
<td><input type="number" class="noborder" disabled readonly id="new16"></td>
<td><input type="number" class="noborder" disabled readonly id="delta16"></td>
</tr>
<tr>
<td>Siyalatas:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old5"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal5"></td>
<td><input type="number" class="noborder" disabled readonly id="new5"></td>
<td><input type="number" class="noborder" disabled readonly id="delta5"></td>
</tr>
<tr>
<td>Solomon:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old3"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal3"></td>
<td><input type="number" class="noborder" disabled readonly id="new3"></td>
<td><input type="number" class="noborder" disabled readonly id="delta3"></td>
</tr>
<tr>
<td>Bhaal:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old15"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal15"></td>
<td><input type="number" class="noborder" disabled readonly id="new15"></td>
<td><input type="number" class="noborder" disabled readonly id="delta15"></td>
</tr>
<tr>
<td>Fragsworth:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old19"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal19"></td>
<td><input type="number" class="noborder" disabled readonly id="new19"></td>
<td><input type="number" class="noborder" disabled readonly id="delta19"></td>
</tr>
<tr>
<td>Juggernaut:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old29"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal29"></td>
<td><input type="number" class="noborder" disabled readonly id="new29"></td>
<td><input type="number" class="noborder" disabled readonly id="delta29"></td>
</tr>
<tr>
<td>Pluto:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old10"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal10"></td>
<td><input type="number" class="noborder" disabled readonly id="new10"></td>
<td><input type="number" class="noborder" disabled readonly id="delta10"></td>
</tr>
<tr id="max13" hidden>
<td>Atman:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old13"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal13"></td>
<td><input type="number" class="noborder" disabled readonly id="new13"></td>
<td><input type="number" class="noborder" disabled readonly id="delta13"></td>
</tr>
<tr id="max18" hidden>
<td>Bubos:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old18"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal18"></td>
<td><input type="number" class="noborder" disabled readonly id="new18"></td>
<td><input type="number" class="noborder" disabled readonly id="delta18"></td>
</tr>
<tr id="max11" hidden>
<td>Dogcog:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old11"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal11"></td>
<td><input type="number" class="noborder" disabled readonly id="new11"></td>
<td><input type="number" class="noborder" disabled readonly id="delta11"></td>
</tr>
<tr id="max14" hidden>
<td>Dora:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old14"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal14"></td>
<td><input type="number" class="noborder" disabled readonly id="new14"></td>
<td><input type="number" class="noborder" disabled readonly id="delta14"></td>
</tr>
<tr id="max12" hidden>
<td>Fortuna:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old12"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal12"></td>
<td><input type="number" class="noborder" disabled readonly id="new12"></td>
<td><input type="number" class="noborder" disabled readonly id="delta12"></td>
</tr>
<tr id="max21" hidden>
<td>Kumawakamaru:</td>
<td><input type="number" class="uservalue" value="0" min="0" id="old21"></td>
<td><input type="number" class="noborder" disabled readonly id="optimal21"></td>
<td><input type="number" class="noborder" disabled readonly id="new21"></td>
<td><input type="number" class="noborder" disabled readonly id="delta21"></td>
</tr>
<tr><td colspan="5" class="filler"> </td></tr>
<tr>
<th rowspan="4">Statistics</th>
<td colspan="3">Relic found this ascension:</td>
<td id="relicfound"></td>
</tr>
<tr>
<td colspan="3">Souls spent on ancients:</td>
<td id="soulsspent"></td>
</tr>
<tr>
<td colspan="3">Highest zone ever:</td>
<td id="hze"></td>
</tr>
<tr>
<td colspan="3">Total ascensions:</td>
<td id="worldresets"></td>
</tr>
</table>
<p class="comments">
Iris recommendation is experimental, following <a href='https://www.reddit.com/r/ClickerHeroes/comments/3f3djb/late_game_iris_and_other_large_numbers/'>this analysis of Iris</a>.
</p>
<p class="comments">
About capped ancients: Ancients with a maximum level are initially hidden from view. They will only show if you have not maxed the ancient.<br>
Also, no fancy calculations, the calculator will always try to max them (optimal = maxlevel).
</p>
<p class="comments">
Clicker Heroes Ancient Calculator by /u/findmeanewone.<br>
Based on the Clicker Heroes <a href='https://www.reddit.com/r/ClickerHeroes/comments/339m3j/thumbs_up_the_rules_of_thumb/'>Rules of Thumb</a> and <a href='https://www.reddit.com/r/ClickerHeroes/comments/3823wt/mathematical_analysis_of_lategame_for_most_idle/'>more of that sweet math</a>.<br>
Made possible thanks to all the math grinding done by /u/Awlcer, /u/glitchypenguin, /u/Kragnir and /u/TheRealDumbleDore (and others).<br>
Inspired by the <a href='http://wieschie.github.io/'>Simple Rules of Thumb Calculator</a> by /u/wieschie.
</p>
<script src="scripts/mathmagician.js"></script>
</body>
</html>