add macroses: avgBattleTier and avgBattleTierDiff. fix credit calculating