forked from Slimmmo/dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
420 lines (420 loc) · 27.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<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="https://www.google.com/jsapi"></script>-->
<script src="js/angular.min.js"></script>
<script src="js/angular-animate.min.js"></script>
<script src="js/ui-bootstrap-custom-tpls-1.3.1.min.js"></script>
<script src="js/main.js"></script>
<title>AdVenture Capitalist Calculator</title>
<base href="/">
</head>
<body data-ng-app="advApp">
<div data-ng-controller="advController">
<header class="navbar navbar-default navbar-fixed-top navbar-inner">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-ng-click="collapse=!collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="navbar-brand">{{WorldFactory.getCurrProfile()}}</div>
</div>
<div class="collapse navbar-collapse" uib-collapse="collapse">
<ul class="nav navbar-nav">
<li data-ng-repeat="planet in WorldFactory.planets track by $index" data-ng-class="{active: isWorld(planet[0])}"><a data-ng-click="setWorld(planet[0])"><i class="fa" data-ng-class="planet[1]"></i> {{planet[0] | capitalize}}</a></li>
<li>
<div class="btn-group" uib-dropdown is-open="isOpen">
<button id="single-button" type="button" class="btn btn-primary navbar-btn" uib-dropdown-toggle>
Format <span class="caret"></span>
</button>
<ul uib-dropdown-menu role="menu" aria-labelledby="single-button">
<li class="clickable" role="menuitem" data-ng-click="toggleRaw()"><a><i data-ng-if="format === 1" class="fa fa-check"></i> Raw</a></li>
<li class="clickable" role="menuitem" data-ng-click="toggleScience()"><a><i data-ng-if="format === 2" class="fa fa-check"></i> Scientific</a></li>
</ul>
</div>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<button type="button" class="btn btn-primary navbar-btn" data-ng-click="manageProfiles()"><i class="fa fa-files-o"></i> Manage Profiles</button>
<input class="ng-hide" type="file" id="fileInputC">
<label for="fileInputC" class="btn btn-primary navbar-btn"><i class="fa fa-file-text-o"></i> Load Export</label>
<input class="ng-hide" type="file" id="fileInputG">
<label for="fileInputG" class="btn btn-primary navbar-btn"><i class="fa fa-folder-open-o"></i> Load Game State</label>
<button type="button" class="btn btn-primary navbar-btn" data-ng-click="export()"><i class="fa fa-floppy-o"></i> Save</button>
</li>
</ul>
</div>
</div>
</header>
<div class="page-header">
<p>AdVenture Capitalist Calculator <span class="small">v1.0</span><span class="pull-right"><a href="https://www.reddit.com/r/AdventureCapitalist/comments/4djl15/suit_calculation_platinum/" title="Reddit Feedback"><i class="clickable fa fa-reddit-alien"></i></a><a href="https://github.com/Slimmmo/Slimmmo.github.io"><i class="clickable fa fa-github-alt" title="GitHub Code"></i></a></span></p>
</div>
<div class="container-fluid">
<uib-alert data-ng-if="showUpdate" type="success" close="hideUpdate()">
<strong>Update!</strong> There might be a few new errors, please let me know.<br><br>Loading game files is now being tested!<br>The files you want to load are called <planet>-gamestate-3.sav, e.g. earth-gamestate-3.sav<br><br>These files are located in<br>
<strong>PC</strong> - C:\Program Files (x86)\Steam\userdata\<your steam>\346900\remote\<br>
<strong>Mac</strong> - ~/Users/<you>/Library/Application Support/Steam/userdata/<your steam>/346900/remote/<br>
<strong>Linux</strong> - ?
</uib-alert>
<form>
<div class="form-inline space_below">
<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
<div class="pull-right">
<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 data-ng-if="!isEvent()"><input type="checkbox" data-ng-model="selectAll[0]" data-ng-change="selectedAll(ref, 0)"> Mega Ticket</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>{{WorldFactory.statics[ref.name].investments[$index].name}}</td>
<td><input type="number" class="form-control" min="0" data-ng-model="inv.level"></td>
<td data-ng-if="!isEvent()"><input type="checkbox" class="form-control" data-ng-model="inv.golden"></td>
<td>${{inv.cycleIncome | num:format}}</td>
<td>{{inv.cycleTime | time:format}}</td>
<td>${{inv.income | num:format}}</td>
<td>{{inv.incomePercent | num:format}}%</td>
</tr>
</tbody>
</table>
<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>{{WorldFactory.statics[ref.name].investments[$index].name}}</td>
<td>${{rUC[0] | num:format}}</td>
<td>{{rUC[1] | time:format}}</td>
<td>${{rUC[2] | num:format}}</td>
<td>{{rUC[3] | time:format}}</td>
<td>${{rUC[4] | num:format}}</td>
<td>{{rUC[5] | time:format}}</td>
<td>${{rUC[6] | num:format}}</td>
<td>{{rUC[7] | time:format}}</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">
<span class="col-sm-offset-2">
<label class="checkbox-inline"><input type="checkbox" data-ng-model="fillBefore[0]"> Buy all before (inclusive)</label>
</span>
<span class="col-sm-offset-3">
<label class="checkbox-inline"><input type="checkbox" data-ng-model="clearAfter[0]"> Clear all after (inclusive)</label>
</span>
</div>
<div class="multicolumn">
<div data-ng-repeat="cupg in ref.cashUpgrades track by $index">
<label class="strike-when-checked checkbox-inline"><input type="checkbox" data-ng-model="ref.cashUpgrades[$index]" data-ng-change="WorldFactory.checkCash(ref, $index, fillBefore, clearAfter)"> <span>{{WorldFactory.statics[ref.name].cashUpgrades[$index][1] | rec:ref.name}} (${{WorldFactory.statics[ref.name].cashUpgrades[$index][0] | num:format}})</span></label>
</div>
</div>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen[2]">
<uib-accordion-heading>
Angel Upgrades<i data-ng-show="ref.angelIndicator" 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">
<span class="col-xs-offset-2">
<label class="checkbox-inline"><input type="checkbox" data-ng-model="fillBefore[1]"> Buy all before (inclusive)</label>
</span>
<span class="col-xs-offset-3">
<label class="checkbox-inline"><input type="checkbox" data-ng-model="clearAfter[1]"> Clear all after (inclusive)</label>
</span>
</div>
<div class="multicolumn">
<div data-ng-repeat="aupg in ref.angelUpgrades track by $index">
<label class="strike-when-checked checkbox-inline"><input type="checkbox" data-ng-model="ref.angelUpgrades[$index][0]" data-ng-change="WorldFactory.checkAngel(ref, $index, fillBefore, clearAfter)"> <span>{{WorldFactory.statics[ref.name].angelUpgrades[$index][1] | rec:ref.name}} ({{WorldFactory.statics[ref.name].angelUpgrades[$index][0] | num:format}} AI)<i data-ng-show="ref.angelUpgrades[$index][1]" title="{{ref.angelUpgrades[$index][1] | percentage}} increase in $ / second" class="fa fa-plus"></i></span></label>
</div>
</div>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen[3]" data-ng-if="hasManagers(ref)">
<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" 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" 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" 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" ng-init="mIndex = $index">
<td>{{WorldFactory.statics[ref.name].investments[$index].name}}</td>
<td data-ng-repeat="mtup in mupg track by $index">
<label class="strike-when-checked checkbox-inline"><input type="checkbox" data-ng-model="ref.managerUpgrades[mIndex][$index]" data-ng-change="toggleManagers(ref.managerUpgrades[mIndex], $index)"> <span>{{(isWorld('moon') || $index == 1) ? ' $' : ' '}}{{WorldFactory.statics[ref.name].managerUpgrades[mIndex][$index] | num:format}}{{(!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 Upgrades + Suits<i data-ng-show="ref.suitIndicator" 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">
<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="WorldFactory.changeSuits(ref, $index)"> <span>{{WorldFactory.statics.suits[$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]" class="form-inline">
<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>
<uib-alert type="info">
Please only input the <strong>bonus</strong> 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.
</uib-alert>
<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>
<h2>Total $ / second : {{ref.totalMoneyPerSecond | number}} ({{ref.totalMoneyPerSecond | num:0}})</h2>
<h2>Total $ / minute : {{ref.totalMoneyPerSecond * 60 | number}} ({{ref.totalMoneyPerSecond * 60 | num:0}})</h2>
<h2>Total $ / hour : {{ref.totalMoneyPerSecond * 3600 | number}} ({{ref.totalMoneyPerSecond * 3600 | num:0}})</h2>
<uib-accordion>
<uib-accordion-group is-open="accOpen2[0]" class="form-inline">
<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>
<uib-alert type="info">
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.
</uib-alert>
<div class="space_below_sm">
<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
</div>
<div class="space_below">
<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
</div>
<button type="button" class="btn btn-primary space_below" data-ng-click="WorldFactory.calcAngelInvestors(ref)">Calculate Angels</button>
<table class="table table-striped table-hover table-bordered" data-ng-if="ref.angelCosts">
<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:format}} AI</td>
<td>${{aUC[2] | num:format}}</td>
<td>${{aUC[3] | num:format}}</td>
<td>{{aUC[4] | time:format}}</td>
</tr>
</tbody>
</table>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen2[1]" class="form-inline">
<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>
<h3>Don't show:</h3>
<div class="multicolumn">
<div>
<label class="strike-when-checked checkbox-inline"><input type="checkbox" data-ng-model="ref.filters.noSingles"> <span>+1 upgrades</span></label>
</div>
<div>
<label class="strike-when-checked checkbox-inline"><input type="checkbox" data-ng-model="ref.filters.noTens"> <span>+10 upgrades</span></label>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-6">
<div>
Upgrades that take longer than (Days : Hours : Minutes)
</div>
<table>
<tr class="text-center">
<td><a ng-click="FilterFactory.increment(ref, 'days')" class="btn btn-link"><span class="fa fa-chevron-up"></span></a></td>
<td> </td>
<td><a ng-click="FilterFactory.increment(ref, 'hours')" class="btn btn-link"><span class="fa fa-chevron-up"></span></a></td>
<td> </td>
<td><a ng-click="FilterFactory.increment(ref, 'minutes')" class="btn btn-link"><span class="fa fa-chevron-up"></span></a></td>
</tr>
<tr>
<td class="form-group">
<input data-ng-model="ref.filters.days" class="form-control text-center spinless" type="number" placeholder="d">
</td>
<td>:</td>
<td class="form-group">
<input data-ng-model="ref.filters.hours" class="form-control text-center spinless" type="number" placeholder="h">
</td>
<td>:</td>
<td class="form-group">
<input data-ng-model="ref.filters.minutes" class="form-control text-center spinless" type="number" placeholder="m">
</td>
</tr>
<tr class="text-center">
<td><a ng-click="FilterFactory.decrement(ref, 'days')" class="btn btn-link"><span class="fa fa-chevron-down"></span></a></td>
<td> </td>
<td><a ng-click="FilterFactory.decrement(ref, 'hours')" class="btn btn-link"><span class="fa fa-chevron-down"></span></a></td>
<td> </td>
<td><a ng-click="FilterFactory.decrement(ref, 'minutes')" class="btn btn-link"><span class="fa fa-chevron-down"></span></a></td>
</tr>
</table>
</div>
<div class="col-sm-6">
<div>
Upgrades that cost more than
</div>
<div class="form-inline">
$ <input type="number" class="form-control" min="0" data-ng-model="ref.filters.viewCost" data-ng-blur="updateFilterCost()" step="0.001"> <input type="text" class="form-control illions" data-ng-model="ref.filters.costIllions" uib-typeahead="ill for ill in illionsArray | filter:$viewValue | limitTo:8" placeholder="*illions" data-ng-blur="updateFilterCost()">
</div>
</div>
</div>
<hr>
<div>
<div>
Upgrades that have % Increase in $ / Second less than
</div>
<table>
<tr class="text-center">
<td><a ng-click="FilterFactory.increment(ref, 'percentage')" class="btn btn-link"><span class="fa fa-chevron-up"></span></a></td>
</tr>
<tr class="form-group">
<td class="form-group">
<input data-ng-model="ref.filters.percentage" class="form-control text-center spinless" type="number" placeholder="%">
</td>
</tr>
<tr class="text-center">
<td><a ng-click="FilterFactory.decrement(ref, 'percentage')" class="btn btn-link"><span class="fa fa-chevron-down"></span></a></td>
</tr>
</table>
</div>
</uib-accordion-group>
</uib-accordion>
<button type="submit" class="btn btn-primary space_below" data-ng-click="calc(ref)"><i class="fa fa-calculator"></i> Calculate</button>
</form>
<div data-ng-show="ref.recTable.length">
<h2 class="rec_header">Recommendation: {{ref.recommendation}}</h2>
<button type="button" class="btn btn-primary space_below" data-ng-click="applyTop(ref)">Apply Recommendation</button>
<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.name}}</td>
<td>{{rec[1] | num:format}}</td>
<td>{{rec[2] | num:format}}</td>
<td>${{rec[3] | num:format}}</td>
<td>{{rec[4] | time:format}}</td>
<td>${{rec[5] | num:format}}</td>
<td>{{rec[6] | num:format}}%</td>
<td><button type="button" class="btn btn-primary" data-ng-click="applyRow(ref, rec)">Apply this row</button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script type="text/ng-template" id="modal.html">
<div class="modal-header">
<h3 class="modal-title">Profile Manager</h3>
</div>
<div class="modal-body">
<table class="table table-striped table-hover">
<tbody>
<tr data-ng-repeat="(k1, planet) in WorldFactory.worlds">
<th>{{k1}}</th>
<td data-ng-repeat="(k2, data) in planet">{{k2 | capitalize}}: ${{data.totalMoneyPerSecond | num:0}}</td>
<td><button type="button" class="btn btn-primary" data-ng-if="WorldFactory.getCurrProfile() !== k1" data-ng-click="selectProfile(k1)">Select</button><i data-ng-if="WorldFactory.getCurrProfile() === k1" class="fa fa-check fa-centred"></i></td>
<td><button type="button" class="btn btn-info" data-ng-click="renameProfile(k1, pName)">Rename</button></td>
<td><button type="button" class="btn btn-danger" data-ng-click="deleteProfile(k1)">Delete</button></td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer form-inline">
<a class="clickable" data-ng-click="addProfile(pName)" title="Add New Profile"><i class="fa fa-plus"></i></a>
<input type="text" class="form-control" data-ng-model="pName" data-ng-class="{invalid: pNameInvalid}" placeholder="Profile Name">
<a class="clickable pull-right" data-ng-click="closeModal()" title="Close"><i class="fa fa-times"></i></a>
</div>
</script>
</body>
</html>