@@ -2562,7 +2562,7 @@ function _RepConvGRC() {
2562
2562
?
2563
2563
/*((RepConv.requests.player && RepConv.requests.player.url) ? JSON.parse(unescape(RepConv.requests.player.url).match(/({.*})/)[0]).player_id : RCGP.getOptions().player_id)*/
2564
2564
RepConvTool . getPlayerId4Name ( RCGP . getJQElement ( ) . find ( $ ( '#write_message_form input[name="recipients"]' ) ) . val ( ) )
2565
- : JSON . parse ( atob ( __tmp [ 1 ] || __tmp [ 0 ] ) ) . id , AQQ
2565
+ : JSON . parse ( atob ( __tmp [ 1 ] || __tmp [ 0 ] ) ) . id ,
2566
2566
_days = parseFloat ( RepConvGRC . idle . JSON [ _player ] || '-1' ) ;
2567
2567
$ ( elem ) . addClass ( 'grcrt_idle_days' ) ,
2568
2568
$ ( elem ) . addClass ( 'grcrt_idle_dg' ) ,
@@ -3547,6 +3547,10 @@ function _RepConvGRC() {
3547
3547
} ) ;
3548
3548
} ) ;
3549
3549
observer_attack . observe ( document . querySelector ( 'div.activity.attack_indicator' ) , { attributes : true , childList : true , characterData : true } ) ;
3550
+ if ( $ ( 'div.activity.attack_indicator' ) . hasClass ( 'active' ) ) {
3551
+ attackIncoming ( parseInt ( $ ( 'div.activity.attack_indicator div.count' ) . html ( ) ) )
3552
+ }
3553
+
3550
3554
}
3551
3555
3552
3556
}
@@ -3573,10 +3577,11 @@ function _RepConvGRC() {
3573
3577
new _grcrtWindowGrcRT ( ) ;
3574
3578
new _grcrtWindowStats ( ) ;
3575
3579
new _grcrtWindowAnalysis ( ) ;
3576
- $ . Observer ( require ( "data/events" ) . attack . incoming )
3577
- . subscribe ( 'GameEvents.grcrt.attackIncomming' , function ( a , b ) {
3578
- attackIncoming ( b . count ) ;
3579
- } ) ;
3580
+ // $.Observer(require("data/events").attack.incoming)
3581
+ // .subscribe('GameEvents.grcrt.attackIncomming',function(a,b){
3582
+ // console.log('GameEvents.grcrt.attackIncomming '+b.count) /* AQQ */
3583
+ // attackIncoming(b.count);
3584
+ // });
3580
3585
if ( require ( "helpers/commands" ) . getTotalCountOfIncomingAttacks ( ) > 0 ) {
3581
3586
attackIncoming ( require ( "helpers/commands" ) . getTotalCountOfIncomingAttacks ( ) ) ;
3582
3587
}
0 commit comments