File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
data/mp/multiplay/skirmish/cobra_includes Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ function playerCyborgRatio(player)
3333
3434 function uncached ( player )
3535 {
36- return enumDroid ( player , DROID_CYBORG ) . length / ( enumDroid ( player ) . length + 1 ) ;
36+ return enumDroid ( player , DROID_CYBORG ) . length / ( countDroid ( DROID_ANY , player ) + 1 ) ;
3737 }
3838
3939 return cacheThis ( uncached , [ player ] , "playerCyborgRatio" + player , 8000 ) ;
@@ -77,7 +77,7 @@ function playerVtolRatio(player)
7777
7878 function uncached ( player )
7979 {
80- return countEnemyVTOL ( player ) / ( enumDroid ( player ) . length + 1 ) ;
80+ return countEnemyVTOL ( player ) / ( countDroid ( DROID_ANY , player ) + 1 ) ;
8181 }
8282
8383 return cacheThis ( uncached , [ player ] , "playerVtolRatio" + player , 6000 ) ;
@@ -92,7 +92,7 @@ function playerStructureUnitRatio(player)
9292
9393 function uncached ( player )
9494 {
95- return enumStruct ( player ) . length / ( enumDroid ( player ) . length + 1 ) ;
95+ return enumStruct ( player ) . length / ( countDroid ( DROID_ANY , player ) + 1 ) ;
9696 }
9797
9898 return cacheThis ( uncached , [ player ] , "playerStructureUnitRatio" + player , 30000 ) ;
You can’t perform that action at this time.
0 commit comments