// package javaapplication2; public class TallyHo { // 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 static int tally(int a, int b, int c, int r, int s, int x, int z, boolean y){c = (a+b)-60; c = (a+b)-60; x = (60 + c/2); //rounded down if(y == true){ if(x+r+s>90){ z=90; } else{ z = x+r+s; } } else if(y==false){ if(x+r+s>80){ z=80; } else{ z = x+r+s; } } return z; } }