forked from Slimmmo/Slimmmo.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
339 lines (339 loc) · 21.8 KB
/
index.html
File metadata and controls
339 lines (339 loc) · 21.8 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/png" href="icon.png">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bonusstyle.css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67150336-1', 'auto');
ga('send', 'pageview');
</script>
<script src="js/angular.min.js"></script>
<script src="js/angular-animate.min.js"></script>
<script src="js/ui-bootstrap-custom-tpls-0.14.3.min.js"></script>
<script src="js/main.js"></script>
<title>AdVenture Capitalist Calculator</title>
<base href="/">
</head>
<body data-ng-app="advApp">
<div class="container-fluid col-xs-12" data-ng-controller="advController">
<div class="page-header">
<h1>AdVenture Capitalist Calculator </h1> v0.1<a class="pull-right" href="https://www.reddit.com/r/AdventureCapitalist/comments/4djl15/suit_calculation_platinum/">Feedback</a>
</div>
<div>
Load a saved state: <input type="file" id="fileInput"><button type="button" class="btn btn-primary pull-right" data-ng-click="export()">Save State</button>
<br/>
Load from *.upp file: <input type="file" id="uppInput" />
</div>
<br>
<uib-alert data-ng-if="showUpdate" type="success" close="hideUpdate()">
<strong>Update!</strong> Live Rich and Profit event Calculations are here!
</uib-alert>
<ul class="nav nav-tabs nav-justified">
<li role="presentation" data-ng-class="{active: !isCompare() && isWorld('earth')}"><a data-ng-click="setWorld('earth')">Earth</a></li>
<li role="presentation" data-ng-class="{active: !isCompare() && isWorld('moon')}"><a data-ng-click="setWorld('moon')">Moon</a></li>
<li role="presentation" data-ng-class="{active: !isCompare() && isWorld('mars')}"><a data-ng-click="setWorld('mars')">Mars</a></li>
<li role="presentation" data-ng-class="{active: !isCompare() && isWorld('liverich')}"><a data-ng-click="setWorld('liverich')">Live Rich and Profit</a></li>
</ul>
<div data-ng-show="!isCompare()">
<div>
<input type="number" class="form-control" min="0" data-ng-model="ref.viewNumAngels" data-ng-blur="updateAngels()" step="0.001" required> <input type="text" class="form-control illions" data-ng-model="ref.illions" uib-typeahead="ill for ill in illionsArray | filter:$viewValue | limitTo:8" placeholder="*illions" data-ng-blur="updateAngels()"> # Angels
<label><input type="checkbox" class="form-control" data-ng-model="raw"> Raw Values</label>
<button type="button" class="btn btn-primary" data-ng-click="resetPlanet(ref)">Reset Planet</button>
<button type="button" class="btn btn-primary" data-ng-click="fullyResetPlanet(ref)">Hard Reset Planet</button>
</div>
<div>
<table class="table table-striped table-hover table-bordered space_top">
<thead>
<tr>
<th>Type</th>
<th>Number</th>
<th ng-show="ref.hasMegaTickets"><label><input type="checkbox" class="form-control" data-ng-model="selectAll[0]" data-ng-change="selectedAll(ref, 0)"> Mega Ticket</label></th>
<th>$ / Cycle</th>
<th>Cycle Time</th>
<th>$ / Second</th>
<th>% of total $ / Second</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="inv in ref.investments track by $index">
<td>{{inv[0]}}</td>
<td><input type="number" class="form-control" min="0" data-ng-model="inv[1]"></td>
<td ng-show="ref.hasMegaTickets"><input type="checkbox" class="form-control" data-ng-model="inv[2]"></td>
<td>${{inv[3] | num:raw}}</td>
<td>{{inv[4] | time:raw}}</td>
<td>${{inv[5] | num:raw}}</td>
<td>{{inv[6] | num:raw}}%</td>
</tr>
</tbody>
</table>
</div>
<div>
<uib-accordion close-others="false">
<uib-accordion-group is-open="accOpen[0]">
<uib-accordion-heading>
Cost of Upgrades<span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen[0], 'fa-chevron-right': !accOpen[0]}"></span>
</uib-accordion-heading>
<table class="table table-striped table-hover table-bordered">
<thead>
<tr>
<th>Type</th>
<th>$ Cost +1</th>
<th>Time Cost +1</th>
<th>$ Cost +10</th>
<th>Time Cost +10</th>
<th>$ Cost +bonus</th>
<th>Time Cost +bonus</th>
<th>$ Cost +all bonus</th>
<th>Time Cost +all bonus</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="rUC in ref.upgradeCosts track by $index">
<td>{{ref.investments[$index][0]}}</td>
<td>${{rUC[0] | num:raw}}</td>
<td>{{rUC[1] | time:raw}}</td>
<td>${{rUC[2] | num:raw}}</td>
<td>{{rUC[3] | time:raw}}</td>
<td>${{rUC[4] | num:raw}}</td>
<td>{{rUC[5] | time:raw}}</td>
<td>${{rUC[6] | num:raw}}</td>
<td>{{rUC[7] | time:raw}}</td>
</tr>
</tbody>
</table>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen[1]">
<uib-accordion-heading>
Cash Upgrades<span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen[1], 'fa-chevron-right': !accOpen[1]}"></span>
</uib-accordion-heading>
<div class="well">
<label><input type="checkbox" class="form-control col-xs-offset-3" data-ng-model="fillBefore[0]"> Buy all before (inclusive)</label>
<label><input type="checkbox" class="form-control col-xs-offset-3" data-ng-model="clearAfter[0]"> Clear all after (inclusive)</label>
</div>
<div class="multicolumn">
<div data-ng-repeat="cupg in ref.cashUpgrades track by $index"><label class="strike-when-checked"><input type="checkbox" class="form-control" data-ng-model="cupg[2]" data-ng-change="checkCash(ref, $index)"> <span>{{getNamedType(ref, cupg)}} (${{cupg[0] | num:raw}})</span></label></div>
</div>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen[2]">
<uib-accordion-heading>
Angel Upgrades<i data-ng-show="ref.angelExclamation" class="fa fa-plus"></i><span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen[2], 'fa-chevron-right': !accOpen[2]}"></span>
</uib-accordion-heading>
<div class="well">
<label><input type="checkbox" class="form-control col-xs-offset-3" data-ng-model="fillBefore[1]"> Buy all before (inclusive)</label>
<label><input type="checkbox" class="form-control col-xs-offset-3" data-ng-model="clearAfter[1]"> Clear all after (inclusive)</label>
</div>
<div class="multicolumn">
<div data-ng-repeat="aupg in ref.angelUpgrades track by $index"><label class="strike-when-checked"><input type="checkbox" class="form-control" data-ng-model="aupg[3]" data-ng-change="checkAngel(ref, $index)"> <span>{{getNamedType(ref, aupg)}} ({{aupg[0] | num:raw}} AI)<i data-ng-show="aupg[2]" title="{{aupg[2] | percentage }} increase in $ / second" class="fa fa-plus"></i></span></label></div>
</div>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen[3]">
<uib-accordion-heading>
Managers<span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen[3], 'fa-chevron-right': !accOpen[3]}"></span>
</uib-accordion-heading>
<table class="table table-striped table-hover table-bordered">
<thead>
<tr>
<th>Business</th>
<th data-ng-show="isWorld('earth')"><label><input type="checkbox" class="form-control" data-ng-model="selectAll[1]" data-ng-change="selectedAll(ref, 1)"> 10% off</label></th>
<th data-ng-show="isWorld('earth')"><label><input type="checkbox" class="form-control" data-ng-model="selectAll[2]" data-ng-change="selectedAll(ref, 2)"> 99.999% off</label></th>
<th data-ng-show="isWorld('moon')"><label><input type="checkbox" class="form-control" data-ng-model="selectAll[3]" data-ng-change="selectedAll(ref, 3)"> 25% off</label></th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="mupg in ref.managerUpgrades track by $index">
<td>{{ref.investments[$index][0]}}</td>
<td data-ng-repeat="mtup in mupg track by $index">
<label class="strike-when-checked"><input type="checkbox" data-ng-model="mtup[1]"> <span>{{(isWorld('moon') || $index == 1) ? ' $' : ' '}}{{mtup[0] | num:raw}}{{(!isWorld('moon') && $index == 0) ? ' AI' : ''}}</span></label>
</td>
</tr>
</tbody>
</table>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen[4]" class="form-inline">
<uib-accordion-heading>
Gold/Platinum Upgrades + Suits<i data-ng-show="ref.suitExclamation" class="fa fa-plus"></i><span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen[4], 'fa-chevron-right': !accOpen[4]}"></span>
</uib-accordion-heading>
<div class="row">
<label class="col-xs-6"><input type="number" class="form-control" min="0" data-ng-model="ref.triples"> # 3x Multipliers</label>
<label class="col-xs-6"><input type="number" class="form-control" min="0" data-ng-model="ref.flux"> # Flux Capitalors</label>
</div>
<div class="multicolumn">
Platinum Boost:
<div data-ng-repeat="boost in platinumboosts track by $index">
<label class="strike-when-checked checkbox-inline"><input type="checkbox" data-ng-model="ref.platinum[$index][0]" data-ng-change="changePlatinum(ref, $index)"> <span>{{boost}}</span></label>
</div>
</div>
<div class="multicolumn">
<div data-ng-repeat="suit in ref.suits track by $index">
<label class="strike-when-checked checkbox-inline"><input type="checkbox" data-ng-model="ref.suits[$index][0]" data-ng-change="changeSuits(ref, $index)"> <span>{{suitList[$index][0]}} Suit<i data-ng-show="ref.suits[$index][1]" title="{{ref.suits[$index][1] | percentage}} increase in $ / second" data-ng-class="{best_suit: $index == ref.bestSuit}" class="fa fa-plus"></i></span></label>
</div>
</div>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen[5]">
<uib-accordion-heading>
Other Bonuses<span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen[5], 'fa-chevron-right': !accOpen[5]}"></span>
</uib-accordion-heading>
<p>Please only input the bonus you have.<br>
For example, if you have a 30% Angel Investor increase from a Christmas event, so now your base Angel Investor bonus is 32%, but with upgrades it could easily be above 40%, please only input 30 or the calculations will be off.
</p>
<label class="col-xs-6"><input type="number" class="form-control" min="0" data-ng-model="ref.bonusAngelEffectiveness">% Angel Investor bonus</label>
<label class="col-xs-6"><input type="number" class="form-control" min="0" data-ng-model="ref.bonusMultiplier">x multiplier</label>
<label class="col-xs-6">Total Angel Investor % = {{ref.angelEffectiveness | number:0}}%</label>
</uib-accordion-group>
</uib-accordion>
</div>
<h2>Total $ / second : {{ref.totalMoneyPerSecond | number}} ({{ref.totalMoneyPerSecond | num}})</h2>
<h2>Total $ / minute : {{ref.totalMoneyPerSecond * 60 | number}} ({{ref.totalMoneyPerSecond * 60 | num}})</h2>
<h2>Total $ / hour : {{ref.totalMoneyPerSecond * 3600 | number}} ({{ref.totalMoneyPerSecond * 3600 | num}})</h2>
<uib-accordion>
<uib-accordion-group is-open="accOpen2[0]">
<uib-accordion-heading>
Angel Calculations<span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen2[0], 'fa-chevron-right': !accOpen2[0]}"></span>
</uib-accordion-heading>
All of values in the tables will include sacrificed angels in calculating the number required to increase by x%. The only exception is Doubled w/o Sacrificed which should match your in game numbers exactly and does not include sacrificed angels.
<br><br>
<input type="number" class="form-control" min="0" data-ng-model="ref.viewLifetimeEarnings" data-ng-blur="updateEarnings()" step="0.001" required> <input type="text" class="form-control illions" data-ng-model="ref.angelIllions" uib-typeahead="ill for ill in illionsArray | filter:$viewValue | limitTo:8" placeholder="*illions" data-ng-blur="updateEarnings()"> Lifetime Earnings
<br>
<input type="number" class="form-control" min="0" data-ng-model="ref.viewSacAngels" data-ng-blur="updateSacrificedAngels()" step="0.001" required> <input type="text" class="form-control illions" data-ng-model="ref.sacIllions" uib-typeahead="ill for ill in illionsArray | filter:$viewValue | limitTo:8" placeholder="*illions" data-ng-blur="updateSacrificedAngels()"> # Angels Sacrificed
<br>
<button type="button" class="btn btn-primary space_top" data-ng-click="calcAngelInvestors(ref)">Calculate Angels</button>
<table class="table table-striped table-hover table-bordered space_top">
<thead>
<tr>
<th></th>
<th>Number of Angels</th>
<th>Lifetime Cost</th>
<th>Lifetime Difference</th>
<th>Difference Time Cost</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="aUC in ref.angelCosts track by $index">
<td data-ng-if="!$last">{{aUC[0]}}</td>
<td data-ng-if="$last"><input type="number" class="form-control" min="0" data-ng-model="ref.customAngelMul" step="0.1"> x</td>
<td>{{aUC[1] | num:raw}} AI</td>
<td>${{aUC[2] | num:raw}}</td>
<td>${{aUC[3] | num:raw}}</td>
<td>{{aUC[4] | time:raw}}</td>
</tr>
</tbody>
</table>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen2[1]">
<uib-accordion-heading>
Filter recommendations<span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen2[1], 'fa-chevron-right': !accOpen2[1]}"></span>
</uib-accordion-heading>
<label><input type="checkbox" class="form-control" data-ng-model="ref.noSingles"> Don't show +1 upgrades</label>
<label><input type="checkbox" class="form-control" data-ng-model="ref.noTens"> Don't show +10 upgrades</label>
<br>
<br>
<div>
Don't show upgrades that take longer than (Days : Hours : Minutes)
</div>
<table>
<tr class="text-center">
<td><a ng-click="incrementDays(ref)" class="btn btn-link"><span class="fa fa-chevron-up"></span></a></td>
<td> </td>
<td><a ng-click="incrementHours(ref)" class="btn btn-link"><span class="fa fa-chevron-up"></span></a></td>
<td> </td>
<td><a ng-click="incrementMinutes(ref)" class="btn btn-link"><span class="fa fa-chevron-up"></span></a></td>
</tr>
<tr>
<td class="form-group">
<input style="width:50px;" data-ng-model="filterTime.days" class="form-control text-center" type="text" pattern="[0-9]*" placeholder="d">
</td>
<td>:</td>
<td class="form-group">
<input style="width:50px;" data-ng-model="filterTime.hours" class="form-control text-center" type="text" pattern="[0-9]*" placeholder="h">
</td>
<td>:</td>
<td class="form-group">
<input style="width:50px;" data-ng-model="filterTime.minutes" class="form-control text-center" type="text" pattern="[0-9]*" placeholder="m">
</td>
</tr>
<tr class="text-center">
<td><a ng-click="decrementDays(ref)" class="btn btn-link"><span class="fa fa-chevron-down"></span></a></td>
<td> </td>
<td><a ng-click="decrementHours(ref)" class="btn btn-link"><span class="fa fa-chevron-down"></span></a></td>
<td> </td>
<td><a ng-click="decrementMinutes(ref)" class="btn btn-link"><span class="fa fa-chevron-down"></span></a></td>
</tr>
</table>
<div>
Don't show upgrades that have % Increase in $ / Second less than X
</div>
<table>
<tr class="text-center">
<td><a ng-click="incrementPercentage(ref)" class="btn btn-link"><span class="fa fa-chevron-up"></span></a></td>
</tr>
<tr class="form-group">
<td class="form-group">
<input style="width:50px;" data-ng-model="filterTime.percentage" class="form-control text-center" type="text" pattern="[0-9]*" placeholder="%">
</td>
</tr>
<tr class="text-center">
<td><a ng-click="decrementPercentage(ref)" class="btn btn-link"><span class="fa fa-chevron-down"></span></a></td>
</tr>
</table>
</uib-accordion-group>
</uib-accordion>
<button type="button" class="btn btn-primary" data-ng-click="calc(ref)">Calculate</button>
<div data-ng-show="ref.recTable.length">
<h2>Recommendation: {{ref.recommendation}}</h2>
<button type="button" class="btn btn-primary" data-ng-click="apply(ref)">Apply Recommendation</button>
<label><input type="checkbox" class="form-control" data-ng-model="raw"> Raw Values</label>
<table class="table table-striped table-hover table-bordered space_top">
<thead>
<tr>
<th>Upgrade</th>
<th>To</th>
<th class="clickable" data-ng-click="clickSort(ref, 2)">Upgrade Score (higher = better)*
<span data-ng-if="2 == sortIndex && reverse" class="pull-right fa fa-chevron-down"></span>
<span data-ng-if="2 == sortIndex && !reverse" class="pull-right fa fa-chevron-up"></span>
</th>
<th class="clickable" data-ng-click="clickSort(ref, 3)">Cost of Upgrade
<span data-ng-if="3 == sortIndex && reverse" class="pull-right fa fa-chevron-down"></span>
<span data-ng-if="3 == sortIndex && !reverse" class="pull-right fa fa-chevron-up"></span>
</th>
<th class="clickable" data-ng-click="clickSort(ref, 4)">Cost of Upgrade in Time
<span data-ng-if="4 == sortIndex && reverse" class="pull-right fa fa-chevron-down"></span>
<span data-ng-if="4 == sortIndex && !reverse" class="pull-right fa fa-chevron-up"></span>
</th>
<th class="clickable" data-ng-click="clickSort(ref, 5)">Increase in $ / Second
<span data-ng-if="5 == sortIndex && reverse" class="pull-right fa fa-chevron-down"></span>
<span data-ng-if="5 == sortIndex && !reverse" class="pull-right fa fa-chevron-up"></span>
</th>
<th class="clickable" data-ng-click="clickSort(ref, 6)">% Increase in $ / Second
<span data-ng-if="6 == sortIndex && reverse" class="pull-right fa fa-chevron-down"></span>
<span data-ng-if="6 == sortIndex && !reverse" class="pull-right fa fa-chevron-up"></span>
</th>
<th>Apply</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="rec in ref.recTable track by $index">
<td>{{rec[0] | rec:ref}}</td>
<td>{{rec[1] | num:raw}}</td>
<td>{{rec[2] | num:raw}}</td>
<td>${{rec[3] | num:raw}}</td>
<td>{{rec[4] | time:raw}}</td>
<td>${{rec[5] | num:raw}}</td>
<td>{{rec[6] | num:raw}}%</td>
<td><button type="button" class="btn btn-primary" data-ng-click="applyRow(ref, rec)">Apply this row</button></td>
</tr>
</tbody>
</table>
</div>
<h3>* Upgrade Score is calculated by minimizing time to buy any pair of upgrades. If your goal is to buy two upgrades, then the upgrade with a higher score should be bought first.</h3>
</div>
<hr>
<h4 class="pull-right">Found an error? Want to request a feature? You can do so on <a href="https://www.reddit.com/r/AdventureCapitalist/comments/4djl15/suit_calculation_platinum/">Reddit</a> or <a href="https://github.com/Slimmmo/Slimmmo.github.io">Github</a>.</h4>
</div>
</body>
</html>