public class TallyHo2 { // TODO code application logic here // a = ego aptitude // b = total number of character points spent // c = total number of character points spent over 60 // y = expert trait true or false // x = base skill // z = final skill (prior to spending rez points) // r = bonus from morph // s = bonus from background + faction static int tally(int a, int b, int r, int s, boolean y){ int c = (a+b+s)-60; int x = (60 + c/2); //rounded down int z = 0; if(y == true){ if(x+r>90){ z=90; } else{ z = x+r; } } else if(y==false){ if(x+r>80){ z=80; } else{ z = x+r; } } return z; } }