question: public static int calculateReward ( Player player ) { int moneys = 0 ; int kills = 0 ; for ( int i = 0 ; i < RAT_TYPES . size ( ) ; i ++ ) { try { final String killed = player . getQuest ( QUEST_SLOT , i + 1 ) ; if ( killed != null ) { kills = Integer . decode ( killed ) ; } } catch ( NumberFormatException nfe ) { } moneys = moneys + kills * RAT_REWARDS . get ( i ) ; } return ( moneys ) ; }
target:  function for calculating reward's moneys for player