Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #69

Open
ringringllingling opened this issue Dec 3, 2015 · 0 comments
Open

Update #69

ringringllingling opened this issue Dec 3, 2015 · 0 comments

Comments

@ringringllingling
Copy link

So I've been informed that you are actually supposed to add the bonuses from factions and backgrounds PRIOR to adding skill points, and morph bonuses AFTER. Seems ass backwards to me, but whatever, I modified my code so that it works the way it should:

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;
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant