Java Hit Formulas
<p>I'm making a simple RPG game and finding out formulas is hard. So far I hav this:</p>

<pre><code>import java.lang.Math.*;
import java.util.*;
import java.text.*;

public class expTable {

public static void main(String[] args) {

int myLevel = 6;
int myAttack = 6;
int myDefense = 1;
    DecimalFormat df = new DecimalFormat("###,###,###");
    int rawr = monsterFormula(myLevel, myAttack, myDefense);


 System.out.println("At level " +myLevel+ " you hit for " + df.format(rawr) + " attack points!");

}


public static int monsterFormula(int e,int myAttack, int myDefense) {

 int xTotal = 0;
 for(int i=1; i&lt;e; i++) {
        xTotal += (int)Math.floor(i + myAttack * Math.pow(myDefense, (i / 42.0)));
    }
      return (int)Math.floor(xTotal/8.0);
}


}
</code></pre>

<p>but...it seems overpowered because at level 10 with attack 10, you hit for 10.
Do you see anyway I can improve my hit formula?</p>
