@@ -862,7 +862,6 @@ function _GRCRTConverterCtrl(wnd) {
862
862
max_row = Math . max ( max_row , elem . length ) ;
863
863
} ) ,
864
864
report . title = GameData . buildings . academy . name + ' (' + RepConvTool . Adds ( ( GRCRTtpl . rct . outside ) ? Game . townName : Game . townId . toString ( ) , GRCRTtpl . rct . town ) + ')' ,
865
- //report.title = _window.find($('.title')).html().replace(/(.*)\(.*\)/,'$1('+RepConvTool.Adds((GRCRTtpl.rct.outside) ? Game.townName : Game.townId.toString(), GRCRTtpl.rct.town)+')'),
866
865
report . time = '' ,
867
866
report . linia = { } ,
868
867
$ . each ( tech_tree , function ( ind , elem ) {
@@ -927,7 +926,7 @@ function _GRCRTConverterCtrl(wnd) {
927
926
return ITowns . getCurrentTown ( ) . getResearches ( )
928
927
}
929
928
function getTownBuildings ( ) {
930
- return ITowns . getCurrentTown ( ) . getBuildings ( ) //this.getCollection("towns").getCurrentTown().getBuildings()
929
+ return ITowns . getCurrentTown ( ) . getBuildings ( )
931
930
}
932
931
function getTownResources ( ) {
933
932
return ITowns . getCurrentTown ( ) . resources ( )
@@ -971,15 +970,7 @@ function _GRCRTConverterCtrl(wnd) {
971
970
function getAvailableResearchPoints ( ) {
972
971
return getCurrentResearchPoints ( ) - getSpentResearchPoints ( )
973
972
}
974
- // var
975
- // tech_tree = getResearchesInColumns(),
976
- // max_row = 0,
977
- // academy_lvl = getAcademyLevel();
978
- // $.each(tech_tree, function(ind,elem){
979
- // max_row = Math.max(max_row, elem.length);
980
- // }),
981
973
report . title = GameData . buildings . main . name + ' (' + RepConvTool . Adds ( ( GRCRTtpl . rct . outside ) ? Game . townName : Game . townId . toString ( ) , GRCRTtpl . rct . town ) + ')' ,
982
- //report.title = _window.find($('.title')).html().replace(/(.*)\(.*\)/,'$1('+RepConvTool.Adds((GRCRTtpl.rct.outside) ? Game.townName : Game.townId.toString(), GRCRTtpl.rct.town)+')'),
983
974
report . time = '' ,
984
975
report . linia = { } ,
985
976
$ . each ( tech_tree , function ( ind , elem ) {
@@ -1260,14 +1251,9 @@ function _GRCRTConverterCtrl(wnd) {
1260
1251
1261
1252
report . attacker = getPlayerInfo2 ( report . attacker , _content . find ( $ ( '#report_sending_town' ) ) ) ;
1262
1253
report . defender = getPlayerInfo2 ( report . defender , _content . find ( $ ( '#report_receiving_town' ) ) ) ;
1263
- //report.attacker = getPlayerInfo(_content.find($('#report_sending_town')));
1264
- //report.defender = getPlayerInfo(_content.find($('#report_receiving_town')));
1265
1254
report . power = ( _content . find ( $ ( 'div.report_power' ) ) . length == 0 ) ? ''
1266
1255
: RepConvTool . Adds ( RepConv . Const . staticImg + _content . find ( $ ( 'div.report_power' ) ) . attr ( 'id' ) + '_30x30.png' , "img" ) ;
1267
1256
1268
- //report.attacker.unit_img = '';
1269
- //report.attacker.unit_send = '';
1270
- //report.attacker.unit_list = '';
1271
1257
1272
1258
if ( cAttUnit . isChecked ( ) ) { // $('#MSGATTUNIT').attr('checked')) {
1273
1259
__getUnitDetail1Way ( 'attacker' , 'div.report_unit' , 10 ) ;
@@ -1287,8 +1273,6 @@ function _GRCRTConverterCtrl(wnd) {
1287
1273
report . nightbonus = '' ;
1288
1274
report . attacker = getPlayerInfo2 ( report . attacker , _content . find ( $ ( '#report_sending_town' ) ) ) ;
1289
1275
report . defender = getPlayerInfo2 ( report . defender , _content . find ( $ ( '#report_receiving_town' ) ) ) ;
1290
- //report.attacker = getPlayerInfo(_content.find($('#report_sending_town')));
1291
- //report.defender = getPlayerInfo(_content.find($('#report_receiving_town')));
1292
1276
var town = _content . find ( $ ( '#report_game_body p a.gp_town_link' ) ) . length == 0
1293
1277
? ''
1294
1278
: RepConvTool . Adds ( ( JSON . parse ( RepConvTool . Atob ( ( _content . find ( $ ( '#report_game_body p a.gp_town_link' ) ) . attr ( 'href' ) ) ) ) ) [ GRCRTtpl . rct . getTown ] . toString ( ) , GRCRTtpl . rct . town ) ;
0 commit comments