Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Cubes (Post-poned)

Status
Not open for further replies.
Experienced Elementalist
Joined
Aug 24, 2012
Messages
280
Reaction score
101
Re: Cubes (GMS-similar) (Fixed)

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.
 
Status
Not open for further replies.
Back
Top