heres the proper code used for cubing.
replace blocks "resetPotential()" and "renewPotential(int type)" with these
ill update this code later to add in adjustable mods such as enabling/disabling 4/5 lines.
type 1 - prem cube
type 3 - super cube
for the random part add this under randomizer file thingyCode:public void resetPotential() { //equip first one, scroll hidden on it final int chance = Randomizer.random(1, 100); final int rank = (chance <= 20 ? (chance <= 5 ? (chance <= 1 ? (-20) : -19) : -18) : -17); setPotential1(rank); setPotential2(Randomizer.nextInt(100) <= 50 ? rank : 0); setPotential3(Randomizer.nextInt(100) <= 25 ? rank : 0); setPotential4(Randomizer.nextInt(100) <= 10 ? rank : 0); setPotential5(Randomizer.nextInt(100) <= 1 ? rank : 0); } public void renewPotential(int type) { // 0 = normal miracle cube, 1 = premium, 2 = epic pot scroll, 3 = super final int chance = Randomizer.random(1, 100); final int rank = ((getState() == 17 && (type == 2 || chance <= 10)) || (getState() == 18 && chance <= 5) || (getState() == 19 && chance == 1 && type == 3)) ? -(getState() + 1) : -(getState()); setPotential1(rank); setPotential2(getPotential3() > 0 ? rank : (Randomizer.nextInt(100) <= 25 ? rank : 0)); setPotential3(getPotential4() > 0 ? rank : ((type == 1 || type == 3) && Randomizer.nextInt(100) <= 5 ? rank : 0));// setPotential4(getPotential5() > 0 ? rank : ((type == 3) && Randomizer.nextInt(100) <= 1 ? rank : 0));// setPotential5(0); }
Code:public static final int random(int min, int max) { return rand.nextInt(max - min + 1) + min; }


Reply With Quote![fix for cube line jumping [read info]](http://ragezone.com/hyper728.png)



