question: @ Override protected int calcAttackValue ( ) { int [ ] payload = waa . getBombPayload ( ) ; if ( null == payload ) { return 0 ; } int nbombs = 0 ; for ( int i = 0 ; i < payload . length ; i ++ ) { nbombs += payload [ i ] ; } if ( bDirect ) { nbombs = Math . min ( nbombs + ( toHit . getMoS ( ) / 3 ) , nbombs * 2 ) ; } if ( bGlancing ) { nbombs = ( int ) Math . floor ( nbombs / 2.0 ) ; } return nbombs ; }
target:  Calculate the attack value based on range