- Joined
- Aug 24, 2012
- Messages
- 280
- Reaction score
- 101
Re: Cubes (GMS-similar) (Fixed)
Will this remove it going from legendary to rare?
If so, I can't thank you enough.
Use this:
Code:public void renewPotential(int type){ // 0 = normal miracle cube, 1 = premium, 2 = epic pot scroll, 3 = super final int rank = type == 2 ? -18 : (Randomizer.nextInt(100) < 4 && getState() != (type == 3 ? 20 : 19) ? -(getState() + 1) : -(getState())); // 4 % chance to up 1 tier setPotential1(rank); setPotential2(rank); if (getPotential3() > 0){ setPotential3(rank); } else { switch (type){ case 1: // premium-> suppose to be 25% setPotential3(Randomizer.nextInt(10) == 0 ? rank : 0); //1/10 chance of 3 line break; case 2: // epic pot setPotential3(Randomizer.nextInt(10) <= 1 ? rank : 0); //2/10 chance of 3 line break; case 3: // revolutionary setPotential3(Randomizer.nextInt(10) <= 2 ? rank : 0); //3/10 chance of 3 line break; default: setPotential3(0); break; } } }
Will this remove it going from legendary to rare?
If so, I can't thank you enough.

