@@ -622,6 +622,11 @@ gg.factory('Match', ['$ggResource', '$compile', 'Matchnote', function($ggResourc
622
622
is_team : false
623
623
}
624
624
625
+ speed_multiplier = 1
626
+ if ( this . expansion_tag == 'LotV' ) {
627
+ speed_multiplier = Sc2 . LOTV_SPEEDUP
628
+ }
629
+
625
630
// Income and army graphs from summary
626
631
// Graph data is already prepared currently, so we just have to add it
627
632
if ( entity . summary ) {
@@ -633,11 +638,16 @@ gg.factory('Match', ['$ggResource', '$compile', 'Matchnote', function($ggResourc
633
638
if ( entity . summary . upgradespendinggraph ) {
634
639
this . _series . summary_upgradespending . entities [ _entity ] = $ . extend ( { data : entity . summary . upgradespendinggraph } , base_series ) ;
635
640
}
641
+
642
+ entity . summary . resource_collection_rate_adjusted = Math . round ( entity . summary . resource_collection_rate * speed_multiplier )
636
643
}
637
644
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 ) ;
641
651
this . _series . replaylost . entities [ _entity ] = $ . extend ( { data : statx ( this . Lost [ entity . identity . id ] ) } , base_series ) ;
642
652
this . _series . replayminerals . entities [ _entity ] = $ . extend ( { data : statx ( this . MineralsCurrent [ entity . identity . id ] ) } , base_series ) ;
643
653
this . _series . replaygas . entities [ _entity ] = $ . extend ( { data : statx ( this . VespeneCurrent [ entity . identity . id ] ) } , base_series ) ;
0 commit comments