Skip to content

Commit 2174566

Browse files
authored
Merge pull request dsjoerg#26 from nickelsen/lotv-saturation-benchmarks
Update saturation benchmarks for LotV
2 parents e81860a + 5d80f0c commit 2174566

File tree

6 files changed

+42
-32
lines changed

6 files changed

+42
-32
lines changed

app/assets/javascripts/angular/resources/match.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,11 @@ gg.factory('Match', ['$ggResource', '$compile', 'Matchnote', function($ggResourc
622622
is_team: false
623623
}
624624

625+
speed_multiplier = 1
626+
if (this.expansion_tag == 'LotV') {
627+
speed_multiplier = Sc2.LOTV_SPEEDUP
628+
}
629+
625630
// Income and army graphs from summary
626631
// Graph data is already prepared currently, so we just have to add it
627632
if(entity.summary) {
@@ -633,11 +638,16 @@ gg.factory('Match', ['$ggResource', '$compile', 'Matchnote', function($ggResourc
633638
if (entity.summary.upgradespendinggraph) {
634639
this._series.summary_upgradespending.entities[_entity] = $.extend({data: entity.summary.upgradespendinggraph}, base_series);
635640
}
641+
642+
entity.summary.resource_collection_rate_adjusted = Math.round(entity.summary.resource_collection_rate*speed_multiplier)
636643
}
637644

638-
if(this.MineralsCurrent) {
639-
this._series.replayincome.entities[_entity] = $.extend({data: statx(this.MineralsCollectionRate[entity.identity.id])}, base_series);
640-
this._series.replaygasincome.entities[_entity] = $.extend({data: statx(this.VespeneCollectionRate[entity.identity.id])}, base_series);
645+
if(this.MineralsCurrent && this.MineralsCurrent[entity.identity.id]) {
646+
function getResourceCollectionRate(x) {
647+
return x*speed_multiplier
648+
}
649+
this._series.replayincome.entities[_entity] = $.extend({data: statx(this.MineralsCollectionRate[entity.identity.id].map(getResourceCollectionRate))}, base_series);
650+
this._series.replaygasincome.entities[_entity] = $.extend({data: statx(this.VespeneCollectionRate[entity.identity.id].map(getResourceCollectionRate))}, base_series);
641651
this._series.replaylost.entities[_entity] = $.extend({data: statx(this.Lost[entity.identity.id])}, base_series);
642652
this._series.replayminerals.entities[_entity] = $.extend({data: statx(this.MineralsCurrent[entity.identity.id])}, base_series);
643653
this._series.replaygas.entities[_entity] = $.extend({data: statx(this.VespeneCurrent[entity.identity.id])}, base_series);

app/views/home/econ_staircase.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@
2222
<tbody>
2323
<tr><th>Saturation Speed</a></th><th ng-repeat="league in leagues"><span><league data-league="{{ league }}" data-size="small"></league></span></th></tr>
2424
<tr><td>
25-
<a href class="ggtipper2" title="When sixteen workers are mining from mineral patches, they gather 640 minerals per minute, which is the maximum income per worker. This statistic shows when 640 minerals per minute income was first achieved." data-gravity="s">
26-
1 Base Mineral Income (640)</a></td><td ng-repeat="league in leagues">{{ es[league + key + '_mineral_saturation_1'][metric()] | minutes_seconds }}</td></tr>
25+
<a href class="ggtipper2" title="When sixteen workers are mining from mineral patches, they gather 870 minerals per minute, which is the maximum income per worker. This statistic shows when 870 minerals per minute income was first achieved." data-gravity="s">
26+
1 Base Mineral Income (870)</a></td><td ng-repeat="league in leagues">{{ es[league + key + '_mineral_saturation_1'][metric()] | minutes_seconds }}</td></tr>
2727
<tr><td>
2828
<a href class="ggtipper2" title="
2929
This statistic measures how long it takes from when the second mining base is
30-
completed, to when 2x640 = 1280 minerals per minute income is achieved." data-gravity="s">
31-
Time from 2nd Base Complete to 2 Base Mineral Income (1280)</a></td>
30+
completed, to when 2x870 = 1740 minerals per minute income is achieved." data-gravity="s">
31+
Time from 2nd Base Complete to 2 Base Mineral Income (1740)</a></td>
3232
<td ng-repeat="league in leagues">
3333
{{ es[league + key + '_mdelta2'][metric()] | minutes_seconds }}
3434
</td>
3535
</tr>
3636
<tr><td>
3737
<a href class="ggtipper2" title="
3838
This statistic measures how long it take from when the third mining base is
39-
completed to when 3x640 = 1920 minerals per minute income is achieved." data-gravity="s">
40-
Time from 3rd Base Complete to 3 Base Mineral Income (1920)</a></td>
39+
completed to when 3x870 = 2610 minerals per minute income is achieved." data-gravity="s">
40+
Time from 3rd Base Complete to 3 Base Mineral Income (2610)</a></td>
4141
<td ng-repeat="league in leagues">
4242
{{ es[league + key + '_mdelta3'][metric()] | minutes_seconds }}
4343
</td>

app/views/home/economy_stats.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,22 @@
3838
</td><td ng-repeat="league in leagues">{{ es[key][league].miningbase_3 | minutes_seconds}}</td></tr>
3939
<tr><th>Saturation Speed</a></th><th ng-repeat="league in leagues"></th></tr>
4040
<tr><td>
41-
<a href class="ggtipper2" title="When sixteen workers are mining from mineral patches, they gather 640 minerals per minute, which is the maximum income per worker. This statistic shows when 640 minerals per minute income was first achieved." data-gravity="s">
42-
1 Base Mineral Income (640)</a></td><td ng-repeat="league in leagues">{{ es[key][league].mineral_saturation_1 | minutes_seconds }}</td></tr>
41+
<a href class="ggtipper2" title="When sixteen workers are mining from mineral patches, they gather 870 minerals per minute, which is the maximum income per worker. This statistic shows when 870 minerals per minute income was first achieved." data-gravity="s">
42+
1 Base Mineral Income (870)</a></td><td ng-repeat="league in leagues">{{ es[key][league].mineral_saturation_1 | minutes_seconds }}</td></tr>
4343
<tr><td>
4444
<a href class="ggtipper2" title="
4545
This statistic measures how long it takes from when the second mining base is
46-
completed, to when 2x640 = 1280 minerals per minute income is achieved." data-gravity="s">
47-
Time from 2nd Base Complete to 2 Base Mineral Income (1280)</a></td>
46+
completed, to when 2x870 = 1740 minerals per minute income is achieved." data-gravity="s">
47+
Time from 2nd Base Complete to 2 Base Mineral Income (1740)</a></td>
4848
<td ng-repeat="league in leagues">
4949
{{ es[key][league].mdelta2 | minutes_seconds }}
5050
</td>
5151
</tr>
5252
<tr><td>
5353
<a href class="ggtipper2" title="
5454
This statistic measures how long it take from when the third mining base is
55-
completed to when 3x640 = 1920 minerals per minute income is achieved." data-gravity="s">
56-
Time from 3rd Base Complete to 3 Base Mineral Income (1920)</a></td>
55+
completed to when 3x870 = 2610 minerals per minute income is achieved." data-gravity="s">
56+
Time from 3rd Base Complete to 3 Base Mineral Income (2610)</a></td>
5757
<td ng-repeat="league in leagues">
5858
{{ es[key][league].mdelta3 | minutes_seconds }}
5959
</td>

app/views/home/economy_stats2.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,22 @@
3737
</td><td ng-repeat="matchup in matchups">{{ es[matchup][league].miningbase_3 | minutes_seconds}}</td></tr>
3838
<tr><th>Saturation Speed</a></th><th ng-repeat="matchup in matchups"></th></tr>
3939
<tr><td>
40-
<a href class="ggtipper2" title="When sixteen workers are mining from mineral patches, they gather 640 minerals per minute, which is the maximum income per worker. This statistic shows when 640 minerals per minute income was first achieved." data-gravity="s">
41-
1 Base Mineral Income (640)</a></td><td ng-repeat="matchup in matchups">{{ es[matchup][league].mineral_saturation_1 | minutes_seconds }}</td></tr>
40+
<a href class="ggtipper2" title="When sixteen workers are mining from mineral patches, they gather 870 minerals per minute, which is the maximum income per worker. This statistic shows when 870 minerals per minute income was first achieved." data-gravity="s">
41+
1 Base Mineral Income (870)</a></td><td ng-repeat="matchup in matchups">{{ es[matchup][league].mineral_saturation_1 | minutes_seconds }}</td></tr>
4242
<tr><td>
4343
<a href class="ggtipper2" title="
4444
This statistic measures how long it takes from when the second mining base is
45-
completed, to when 2x640 = 1280 minerals per minute income is achieved." data-gravity="s">
46-
Time from 2nd Base Complete to 2 Base Mineral Income (1280)</a></td>
45+
completed, to when 2x870 = 1740 minerals per minute income is achieved." data-gravity="s">
46+
Time from 2nd Base Complete to 2 Base Mineral Income (1740)</a></td>
4747
<td ng-repeat="matchup in matchups">
4848
{{ es[matchup][league].mdelta2 | minutes_seconds }}
4949
</td>
5050
</tr>
5151
<tr><td>
5252
<a href class="ggtipper2" title="
5353
This statistic measures how long it take from when the third mining base is
54-
completed to when 3x640 = 1920 minerals per minute income is achieved." data-gravity="s">
55-
Time from 3rd Base Complete to 3 Base Mineral Income (1920)</a></td>
54+
completed to when 3x870 = 2610 minerals per minute income is achieved." data-gravity="s">
55+
Time from 3rd Base Complete to 3 Base Mineral Income (2610)</a></td>
5656
<td ng-repeat="matchup in matchups">
5757
{{ es[matchup][league].mdelta3 | minutes_seconds }}
5858
</td>

app/views/home/saturation_speed.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<div class="static_inner">
99
<h1>What is Saturation Speed?</h1>
1010
<p><b>Saturation Speed</b> measures how quickly you can ramp up your economy. Higher-league players tend to be faster than lower-league players. Although there are strategic reasons in particular games why you might delay your economy, on average higher-league players do get their economy up faster. You can use Saturation Speed to keep tabs on the economic side of your game.</p>
11-
<p>Your <b>1st Base Saturation Speed</b> measures how quickly you can get to 640 mineral income. That's the income you get from 16 workers mining minerals. After the 16th worker, any additional workers do not mine as quickly.</p>
12-
<p>Your <b>2nd Base Saturation Speed</b> measures how quickly you can go from having your 2nd base complete, and in mining position, to having 1280 (2x640) mineral income.</p>
13-
<p>Your <b>3rd Base Saturation Speed</b> measures how quickly you can go from having your 3rd base complete, and in mining position, to having 1920 (3x640) mineral income.</p>
11+
<p>Your <b>1st Base Saturation Speed</b> measures how quickly you can get to 870 mineral income. That's the income you get from 16 workers mining minerals. After the 16th worker, any additional workers do not mine as quickly.</p>
12+
<p>Your <b>2nd Base Saturation Speed</b> measures how quickly you can go from having your 2nd base complete, and in mining position, to having 1740 (2x870) mineral income.</p>
13+
<p>Your <b>3rd Base Saturation Speed</b> measures how quickly you can go from having your 3rd base complete, and in mining position, to having 2610 (3x870) mineral income.</p>
1414
<br>
1515
<h1>How Can I See My Saturation Speed?</h1>
1616
<p>On any match page, click on the Economy button:</p>

app/views/matches/show.html.erb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
</td>
138138
<td ng-hide='match.entities[0].summary.workers_created == null'>{{ entity.summary.workers_created }}</td>
139139
<td>{{ entity.summary.structures_built }}</td>
140-
<td>{{ entity.summary.resource_collection_rate }}</td>
140+
<td>{{ entity.summary.resource_collection_rate_adjusted }}</td>
141141
<td>{{ entity.summary.average_unspent_resources }}</td>
142142
<td class="league"><a href class="ggtipper2" title="SQ: {{ entity.summary.spending_quotient.toFixed(0) }}"><league data-league="{{ entity.summary.spending_skill }}"></league></a></td>
143143
<td>{{ entity.summary.units_trained }}</td>
@@ -177,8 +177,8 @@
177177
</tr>
178178
<tr>
179179
<td>
180-
<a href class="ggtipper2" title="When sixteen workers are mining from mineral patches, they gather 640 minerals per minute, which is the maximum income per worker. This statistic shows when 640 minerals per minute income was first achieved." data-gravity="s">
181-
1 Base Mineral Income (640)</a>
180+
<a href class="ggtipper2" title="When sixteen workers are mining from mineral patches, they gather 870 minerals per minute, which is the maximum income per worker. This statistic shows when 870 minerals per minute income was first achieved." data-gravity="s">
181+
1 Base Mineral Income (870)</a>
182182
</td>
183183
<td ng-repeat="entity in match.doubleents" ng-show="$index % 2 == 0 || user.view_mode == 1">
184184
<span ng-show="$index % 2 == 0">{{ entity.stats.mineral_saturation_1 | minutes_seconds }}</span>
@@ -187,8 +187,8 @@
187187
<tr><td>
188188
<a href class="ggtipper2" title="
189189
This statistic measures how long it takes from when the second mining base is
190-
completed, to when 2x640 = 1280 minerals per minute income is achieved." data-gravity="s">
191-
Time from 2nd Base Complete to 2 Base Mineral Income (1280)</a></td>
190+
completed, to when 2x870 = 1760 minerals per minute income is achieved." data-gravity="s">
191+
Time from 2nd Base Complete to 2 Base Mineral Income (1760)</a></td>
192192
<td ng-repeat="entity in match.doubleents" ng-show="$index % 2 == 0 || user.view_mode == 1">
193193
<span ng-show="$index % 2 == 0">{{ entity.mdelta2() | minutes_seconds }}</span>
194194
<span ng-show="$index % 2 == 1" ><league data-league="{{ entity.sat_2_skill }}"></league></span>
@@ -197,8 +197,8 @@ completed, to when 2x640 = 1280 minerals per minute income is achieved." data-gr
197197
<tr><td>
198198
<a href class="ggtipper2" title="
199199
This statistic measures how long it take from when the third mining base is
200-
completed to when 3x640 = 1920 minerals per minute income is achieved." data-gravity="s">
201-
Time from 3rd Base Complete to 3 Base Mineral Income (1920)</a></td>
200+
completed to when 3x870 = 2610 minerals per minute income is achieved." data-gravity="s">
201+
Time from 3rd Base Complete to 3 Base Mineral Income (2610)</a></td>
202202
<td ng-repeat="entity in match.doubleents" ng-show="$index % 2 == 0 || user.view_mode == 1">
203203
<span ng-show="$index % 2 == 0">{{ entity.mdelta3() | minutes_seconds }}</span>
204204
<span ng-show="$index % 2 == 1" ><league data-league="{{ entity.sat_3_skill }}"></league></span>
@@ -258,7 +258,7 @@ completed to when 3x640 = 1920 minerals per minute income is achieved." data-gra
258258
<% if @match.replays_count > 0 %>
259259
<chart id="num_bases" class="djcloak grid_1" ng-show="$parent.match.num_bases.length > 0" data-series="match.series.bases.combined" data-condensed="condensed">
260260
<span class="title">
261-
<a href class="ggtipper2" title="Number of bases.<br><br>Bases are considered alive 100 seconds after the build command (worker travel time is ignored).<br><br>They are considered dead after the last time they are selected." data-gravity="n">bases</a>
261+
<a href class="ggtipper2" title="Number of bases.<br><br>Bases are considered alive 71 seconds after the build command (worker travel time is ignored).<br><br>They are considered dead after the last time they are selected." data-gravity="n">bases</a>
262262
</span>
263263
</chart>
264264
<macrochart class="grid_1" match="match" ng-show="show" ng-repeat="entity in match.race_entities('Z')">

0 commit comments

Comments
 (0)