Does anybody know how to do this? I don't know where to start on adding progressive rates by Rebirth. I want it to be harder the more rebirth you have.
Got it!
Insert this at the top of Character.java
add this
Then modify the getExpRate
You can modify the rate and the threshhold for the amount of rebirths here.
Got it!
Insert this at the top of Character.java
JavaScript:
private int reborns;
add this
Code:
public int getReborns() {
return reborns;
}
public void setReborns(int reborns) {
this.reborns = reborns;
}
Then modify the getExpRate
You can modify the rate and the threshhold for the amount of rebirths here.
Code:
public int getExpRate() {
if (hasNoviceExpRate()) {
return 1;
}
int rebirthCount = getReborns();
if (rebirthCount >= 300 && rebirthCount < 400) {
return 100;
} else if (rebirthCount >= 200 && rebirthCount < 300) {
return 200;
} else if (rebirthCount >= 100 && rebirthCount < 200) {
return 300;
}
return baseExpRate; // This will handle all cases under 100 rebirths
}
}
Last edited:

