Untitled

 avatar
unknown
java
a month ago
12 kB
2
Indexable
// addition item.java
public void randomOptionItem10x(boolean isMaxOption) {
        this.isLock = false;
        if (id >= 1100 && id <= 1109) {
            int[][][] itemOptionIds = {
                {{47, 2, 6, 7, 11, 17, 27, 28, 29, 35, 50},
                {47, 3, 6, 7, 12, 17, 27, 28, 29, 33, 48},
                {47, 4, 6, 7, 13, 17, 27, 28, 29, 34, 49}},
                {{47, 2, 6, 7, 11, 17, 27, 28, 29, 35, 50},
                {47, 3, 6, 7, 11, 17, 27, 28, 29, 33, 48},
                {47, 4, 6, 7, 13, 17, 27, 28, 29, 34, 49}},
                {{47, 4, 6, 7, 13, 15, 27, 28, 29, 33, 48},
                {47, 2, 6, 7, 11, 15, 27, 28, 29, 34, 49},
                {47, 3, 6, 7, 12, 15, 27, 28, 29, 35, 50}},
                {{47, 4, 6, 7, 13, 17, 25, 28, 29, 33, 48},
                {47, 2, 6, 7, 11, 15, 27, 28, 29, 34, 49},
                {47, 3, 6, 7, 12, 15, 27, 28, 29, 35, 50}},
                {{47, 2, 6, 7, 11, 15, 27, 28, 29, 35, 50},
                {47, 3, 6, 7, 12, 15, 27, 28, 29, 33, 48},
                {47, 4, 6, 7, 13, 15, 27, 28, 29, 34, 49}},
                {{47, 2, 6, 7, 11, 15, 27, 28, 29, 35, 50},
                {47, 3, 6, 7, 12, 15, 27, 28, 29, 33, 48},
                {47, 4, 6, 7, 13, 15, 27, 28, 29, 34, 49}},
                {{47, 3, 6, 7, 12, 18, 27, 28, 29, 34, 49},
                {47, 4, 6, 7, 13, 18, 27, 28, 29, 35, 50},
                {47, 2, 6, 7, 11, 18, 27, 28, 29, 33, 48}},
                {{47, 3, 6, 7, 12, 18, 27, 28, 29, 34, 49},
                {47, 4, 6, 7, 13, 18, 27, 28, 29, 35, 50},
                {47, 2, 6, 7, 11, 18, 27, 28, 29, 33, 48}},
                {{47, 4, 6, 7, 13, 16, 27, 28, 29, 33, 48},
                {47, 2, 6, 7, 11, 16, 27, 28, 29, 34, 49},
                {47, 3, 6, 7, 12, 16, 27, 28, 29, 35, 50}},
                {{47, 4, 6, 7, 13, 16, 27, 28, 29, 33, 48},
                {47, 2, 6, 7, 11, 16, 27, 28, 29, 34, 49},
                {47, 3, 6, 7, 12, 16, 27, 28, 29, 35, 50}}

            };
            int[] itemOptionParams = {60, 80, 170, 170, 80, 80, 18, 11, 750, 200, 700};
            byte randomSys = (byte) NinjaUtils.nextInt(1, 3);
            int indexItem = id - 1100;
            int[] itemOptionId = itemOptionIds[indexItem][randomSys - 1];
            int[][] option_max = new int[itemOptionId.length][2];
            for (int i = 0; i < itemOptionId.length; i++) {
                int optionId = itemOptionId[i];
                int param = itemOptionParams[i];
                option_max[i][0] = optionId;
                if (optionId == 16) {
                    option_max[i][1] = 36;
                } else {
                    option_max[i][1] = param;
                }
                // itm.options.add(new ItemOption(optionId, optionId == 16 ? 50 : param));
            }
            int[][] option_min = NinjaUtils.getOptionShop(option_max);
            for (int i = 0; i < option_max.length; i++) {
                int param = isMaxOption ? option_max[i][1] : NinjaUtils.nextInt(option_min[i][1], option_max[i][1]);
                this.options.add(new ItemOption(option_max[i][0], param));
            }
            this.sys = randomSys;
        } else if (id >= 1110 && id <= 1113) {
            int[][][] itemOptionIds = {
                {{47, 5, 6, 7, 12, 20, 30, 31, 32, 36, 46},
                {47, 5, 6, 7, 13, 20, 30, 31, 32, 36, 46},
                {47, 5, 6, 7, 11, 20, 30, 31, 32, 36, 46}},
                {{47, 5, 6, 7, 13, 14, 30, 31, 32, 33, 51},
                {47, 5, 6, 7, 11, 14, 30, 31, 32, 34, 52},
                {47, 5, 6, 7, 12, 14, 30, 31, 32, 35, 53}},
                {{47, 5, 6, 7, 11, 17, 30, 31, 32, 35, 53},
                {47, 5, 6, 7, 12, 17, 30, 31, 32, 33, 51},
                {47, 5, 6, 7, 13, 17, 30, 31, 32, 34, 52}},
                {{47, 5, 6, 7, 12, 14, 30, 31, 32, 34, 52},
                {47, 5, 6, 7, 13, 14, 30, 31, 32, 35, 53},
                {47, 5, 6, 7, 11, 14, 30, 31, 32, 33, 51}}

            };
            int[] itemOptionParams = {40, 80, 170, 170, 80, 80, 18, 11, 750, 200, 1000};
            byte randomSys = (byte) NinjaUtils.nextInt(1, 3);
            int indexItem = id - 1110;
            int[] itemOptionId = itemOptionIds[indexItem][randomSys - 1];
            int[][] option_max = new int[itemOptionId.length][2];
            for (int i = 0; i < itemOptionId.length; i++) {
                int optionId = itemOptionId[i];
                int param = itemOptionParams[i];
                if (optionId == 46) {
                    param = 55;
                }
                option_max[i][0] = optionId;
                option_max[i][1] = param;
                // itm.options.add(new ItemOption(optionId, optionId == 16 ? 50 : param));
            }
            int[][] option_min = NinjaUtils.getOptionShop(option_max);
            for (int i = 0; i < option_max.length; i++) {
                int param = isMaxOption ? option_max[i][1] : NinjaUtils.nextInt(option_min[i][1], option_max[i][1]);
                this.options.add(new ItemOption(option_max[i][0], param));
            }
            this.sys = randomSys;
        } else if (id == 1094) {
            int[][] option_max = new int[11][2];
            option_max[0][0] = 0;
            option_max[0][1] = 700;
            option_max[1][0] = 1;
            option_max[1][1] = 700;
            option_max[2][0] = 8;
            option_max[2][1] = 170;
            option_max[3][0] = 10;
            option_max[3][1] = 80;
            option_max[4][0] = 21;
            option_max[4][1] = 2000;
            option_max[5][0] = 19;
            option_max[5][1] = 170;
            option_max[6][0] = 27;
            option_max[6][1] = 18;
            option_max[7][0] = 37;
            option_max[7][1] = 110;
            option_max[8][0] = 38;
            option_max[8][1] = 1100;
            option_max[9][0] = 39;
            option_max[9][1] = 160;
            option_max[10][0] = 55;
            option_max[10][1] = 60;
            int[][] option_min = NinjaUtils.getOptionShop(option_max);
            for (int i = 0; i < option_max.length; i++) {
                int param = isMaxOption ? option_max[i][1] : NinjaUtils.nextInt(option_min[i][1], option_max[i][1]);
                this.options.add(new ItemOption(option_max[i][0], param));
            }
            this.sys = 1;
        } else if (id == 1095) {
            int[][] option_max = new int[11][2];
            option_max[0][0] = 0;
            option_max[0][1] = 700;
            option_max[1][0] = 1;
            option_max[1][1] = 700;
            option_max[2][0] = 9;
            option_max[2][1] = 170;
            option_max[3][0] = 10;
            option_max[3][1] = 80;
            option_max[4][0] = 22;
            option_max[4][1] = 2000;
            option_max[5][0] = 19;
            option_max[5][1] = 170;
            option_max[6][0] = 27;
            option_max[6][1] = 18;
            option_max[7][0] = 37;
            option_max[7][1] = 110;
            option_max[8][0] = 38;
            option_max[8][1] = 1100;
            option_max[9][0] = 39;
            option_max[9][1] = 160;
            option_max[10][0] = 55;
            option_max[10][1] = 60;
            int[][] option_min = NinjaUtils.getOptionShop(option_max);
            for (int i = 0; i < option_max.length; i++) {
                int param = isMaxOption ? option_max[i][1] : NinjaUtils.nextInt(option_min[i][1], option_max[i][1]);
                this.options.add(new ItemOption(option_max[i][0], param));
            }
            this.sys = 1;
        } else if (id == 1096) {
            int[][] option_max = new int[11][2];
            option_max[0][0] = 0;
            option_max[0][1] = 700;
            option_max[1][0] = 1;
            option_max[1][1] = 700;
            option_max[2][0] = 8;
            option_max[2][1] = 170;
            option_max[3][0] = 10;
            option_max[3][1] = 60;
            option_max[4][0] = 23;
            option_max[4][1] = 2000;
            option_max[5][0] = 19;
            option_max[5][1] = 170;
            option_max[6][0] = 27;
            option_max[6][1] = 18;
            option_max[7][0] = 37;
            option_max[7][1] = 110;
            option_max[8][0] = 38;
            option_max[8][1] = 1100;
            option_max[9][0] = 39;
            option_max[9][1] = 160;
            option_max[10][0] = 56;
            option_max[10][1] = 60;
            int[][] option_min = NinjaUtils.getOptionShop(option_max);
            for (int i = 0; i < option_max.length; i++) {
                int param = isMaxOption ? option_max[i][1] : NinjaUtils.nextInt(option_min[i][1], option_max[i][1]);
                this.options.add(new ItemOption(option_max[i][0], param));
            }
            this.sys = 2;
        } else if (id == 1097) {
            int[][] option_max = new int[11][2];
            option_max[0][0] = 0;
            option_max[0][1] = 700;
            option_max[1][0] = 1;
            option_max[1][1] = 700;
            option_max[2][0] = 9;
            option_max[2][1] = 170;
            option_max[3][0] = 10;
            option_max[3][1] = 80;
            option_max[4][0] = 24;
            option_max[4][1] = 2000;
            option_max[5][0] = 19;
            option_max[5][1] = 170;
            option_max[6][0] = 27;
            option_max[6][1] = 18;
            option_max[7][0] = 37;
            option_max[7][1] = 110;
            option_max[8][0] = 38;
            option_max[8][1] = 1100;
            option_max[9][0] = 39;
            option_max[9][1] = 160;
            option_max[10][0] = 56;
            option_max[10][1] = 60;
            int[][] option_min = NinjaUtils.getOptionShop(option_max);
            for (int i = 0; i < option_max.length; i++) {
                int param = isMaxOption ? option_max[i][1] : NinjaUtils.nextInt(option_min[i][1], option_max[i][1]);
                this.options.add(new ItemOption(option_max[i][0], param));
            }
            this.sys = 2;
        } else if (id == 1098) {
            int[][] option_max = new int[11][2];
            option_max[0][0] = 0;
            option_max[0][1] = 700;
            option_max[1][0] = 1;
            option_max[1][1] = 700;
            option_max[2][0] = 8;
            option_max[2][1] = 170;
            option_max[3][0] = 10;
            option_max[3][1] = 80;
            option_max[4][0] = 25;
            option_max[4][1] = 2000;
            option_max[5][0] = 19;
            option_max[5][1] = 170;
            option_max[6][0] = 27;
            option_max[6][1] = 18;
            option_max[7][0] = 37;
            option_max[7][1] = 110;
            option_max[8][0] = 38;
            option_max[8][1] = 1100;
            option_max[9][0] = 39;
            option_max[9][1] = 160;
            option_max[10][0] = 54;
            option_max[10][1] = 60;
            int[][] option_min = NinjaUtils.getOptionShop(option_max);
            for (int i = 0; i < option_max.length; i++) {
                int param = isMaxOption ? option_max[i][1] : NinjaUtils.nextInt(option_min[i][1], option_max[i][1]);
                this.options.add(new ItemOption(option_max[i][0], param));
            }
            this.sys = 3;
        } else if (id == 1099) {
            int[][] option_max = new int[11][2];
            option_max[0][0] = 0;
            option_max[0][1] = 700;
            option_max[1][0] = 1;
            option_max[1][1] = 700;
            option_max[2][0] = 9;
            option_max[2][1] = 170;
            option_max[3][0] = 10;
            option_max[3][1] = 80;
            option_max[4][0] = 26;
            option_max[4][1] = 2000;
            option_max[5][0] = 19;
            option_max[5][1] = 170;
            option_max[6][0] = 27;
            option_max[6][1] = 18;
            option_max[7][0] = 37;
            option_max[7][1] = 110;
            option_max[8][0] = 38;
            option_max[8][1] = 1100;
            option_max[9][0] = 39;
            option_max[9][1] = 160;
            option_max[10][0] = 54;
            option_max[10][1] = 60;
            int[][] option_min = NinjaUtils.getOptionShop(option_max);
            for (int i = 0; i < option_max.length; i++) {
                int param = isMaxOption ? option_max[i][1] : NinjaUtils.nextInt(option_min[i][1], option_max[i][1]);
                this.options.add(new ItemOption(option_max[i][0], param));
            }
            this.sys = 3;
        }
    }
Leave a Comment