⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 matlib.java

📁 《神州》RPG游戏引擎
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
import java.util.*;


public class MatLib
{
    public static Mat[] weapons;  //武器
    public static Mat[] caps;  //帽子
    public static Mat[] cloths;  //衣服
    public static Mat[] shoes;  //鞋
    public static Mat[] shells;  //盾牌
    public static Mat[] jewelrys;  //装饰
    public static Mat[] items;  //道具
    
    public static Vector matVC;  //全部物品VC

    static
    {
        matVC = new Vector();
        //武器
        weapons=new Mat[13];

        weapons[0]=new Mat();
        weapons[0].setType(Mat.TYPE_EQUIP);
        weapons[0].setName("短剑");
        weapons[0].setPart(Mat.PART_RHAND);
        weapons[0].setPowerAdd(5);
        weapons[0].setDesc("攻击力+5");
        weapons[0].setPrice(100);

        weapons[1]=new Mat();
        weapons[1].setType(Mat.TYPE_EQUIP);
        weapons[1].setName("铜剑");
        weapons[1].setPart(Mat.PART_RHAND);
        weapons[1].setPowerAdd(10);
        weapons[1].setMinLv(5);
        weapons[1].setDesc("攻击力+10,等级要求5");
        weapons[1].setPrice(500);

        weapons[2]=new Mat();
        weapons[2].setType(Mat.TYPE_EQUIP);
        weapons[2].setName("玄铁剑");
        weapons[2].setPart(Mat.PART_RHAND);
        weapons[2].setPowerAdd(20);
        weapons[2].setMinLv(10);
        weapons[2].setDesc("攻击力+20,等级要求10");
        weapons[2].setPrice(1000);

        weapons[3]=new Mat();
        weapons[3].setType(Mat.TYPE_EQUIP);
        weapons[3].setName("吴越剑");
        weapons[3].setPart(Mat.PART_RHAND);
        weapons[3].setPowerAdd(40);
        weapons[3].setMinLv(20);
        weapons[3].setDesc("攻击力+40,等级要求20");
        weapons[3].setPrice(2000);

        weapons[4]=new Mat();
        weapons[4].setType(Mat.TYPE_EQUIP);
        weapons[4].setName("青锋剑");
        weapons[4].setPart(Mat.PART_RHAND);
        weapons[4].setPowerAdd(80);
        weapons[4].setMinLv(30);
        weapons[4].setDesc("攻击力+80,等级要求30");
        weapons[4].setPrice(4000);

        weapons[5]=new Mat();
        weapons[5].setType(Mat.TYPE_EQUIP);
        weapons[5].setName("龙泉剑");
        weapons[5].setPart(Mat.PART_RHAND);
        weapons[5].setPowerAdd(120);
        weapons[5].setMinLv(40);
        weapons[5].setDesc("攻击力+120,等级要求40");
        weapons[5].setPrice(6000);

        weapons[6]=new Mat();
        weapons[6].setType(Mat.TYPE_EQUIP);
        weapons[6].setName("黑金剑");
        weapons[6].setPart(Mat.PART_RHAND);
        weapons[6].setPowerAdd(160);
        weapons[6].setMinLv(50);
        weapons[6].setDesc("攻击力+160,等级要求50");
        weapons[6].setPrice(8000);

        weapons[7]=new Mat();
        weapons[7].setType(Mat.TYPE_EQUIP);
        weapons[7].setName("游龙剑");
        weapons[7].setPart(Mat.PART_RHAND);
        weapons[7].setPowerAdd(200);
        weapons[7].setMinLv(60);
        weapons[7].setDesc("攻击力+200,等级要求60");
        weapons[7].setPrice(10000);

        weapons[8]=new Mat();
        weapons[8].setType(Mat.TYPE_EQUIP);
        weapons[8].setName("七星剑");
        weapons[8].setPart(Mat.PART_RHAND);
        weapons[8].setPowerAdd(220);
        weapons[8].setMinLv(70);
        weapons[8].setDesc("攻击力+220,等级要求70");
        weapons[8].setPrice(11000);

        weapons[9]=new Mat();
        weapons[9].setType(Mat.TYPE_EQUIP);
        weapons[9].setName("碧玉剑");
        weapons[9].setPart(Mat.PART_RHAND);
        weapons[9].setPowerAdd(260);
        weapons[9].setMinLv(80);
        weapons[9].setDesc("攻击力+260,等级要求80");
        weapons[9].setPrice(13000);


        weapons[10]=new Mat();
        weapons[10].setType(Mat.TYPE_EQUIP);
        weapons[10].setName("干将");
        weapons[10].setPart(Mat.PART_RHAND);
        weapons[10].setPowerAdd(300);
        weapons[10].setMinLv(90);
        weapons[10].setDesc("攻击力+300,等级要求90");
        weapons[10].setPrice(15000);

        weapons[11]=new Mat();
        weapons[11].setType(Mat.TYPE_EQUIP);
        weapons[11].setName("莫邪");
        weapons[11].setPart(Mat.PART_RHAND);
        weapons[11].setPowerAdd(280);
        weapons[11].setMinLv(90);
        weapons[11].setDesc("攻击力+280,等级要求90");
        weapons[11].setPrice(14000);

        weapons[12]=new Mat();
        weapons[12].setType(Mat.TYPE_EQUIP);
        weapons[12].setName("倚天");
        weapons[12].setPart(Mat.PART_RHAND);
        weapons[12].setPowerAdd(400);
        weapons[12].setMinLv(90);
        weapons[12].setDesc("攻击力+400,等级要求90");
        weapons[12].setPrice(20000);
        
        matVC.addElement(weapons);

        //帽子
        caps=new Mat[7];

        caps[0]=new Mat();
        caps[0].setType(Mat.TYPE_EQUIP);
        caps[0].setName("布帽");
        caps[0].setPart(Mat.PART_HEAD);
        caps[0].setDefenceAdd(2);
        caps[0].setDesc("防御力+2");
        caps[0].setPrice(250);

        caps[1]=new Mat();
        caps[1].setType(Mat.TYPE_EQUIP);
        caps[1].setName("皮帽");
        caps[1].setPart(Mat.PART_HEAD);
        caps[1].setDefenceAdd(5);
        caps[1].setMinLv(5);
        caps[1].setDesc("防御力+5,等级要求5");
        caps[1].setPrice(600);

        caps[2]=new Mat();
        caps[2].setType(Mat.TYPE_EQUIP);
        caps[2].setName("金丝冠");
        caps[2].setPart(Mat.PART_HEAD);
        caps[2].setDefenceAdd(8);
        caps[2].setMinLv(10);
        caps[2].setDesc("防御力+8,等级要求10");
        caps[2].setPrice(1700);

        caps[3]=new Mat();
        caps[3].setType(Mat.TYPE_EQUIP);
        caps[3].setName("青铜盔");
        caps[3].setPart(Mat.PART_HEAD);
        caps[3].setDefenceAdd(12);
        caps[3].setMinLv(20);
        caps[3].setDesc("防御力+12,等级要求20");
        caps[3].setPrice(3000);

        caps[4]=new Mat();
        caps[4].setType(Mat.TYPE_EQUIP);
        caps[4].setName("牛角盔");
        caps[4].setPart(Mat.PART_HEAD);
        caps[4].setDefenceAdd(16);
        caps[4].setMinLv(30);
        caps[4].setDesc("防御力+16,等级要求30");
        caps[4].setPrice(8000);

        caps[5]=new Mat();
        caps[5].setType(Mat.TYPE_EQUIP);
        caps[5].setName("将军盔");
        caps[5].setPart(Mat.PART_HEAD);
        caps[5].setDefenceAdd(25);
        caps[5].setMinLv(40);
        caps[5].setDesc("防御力+25,等级要求40");
        caps[5].setPrice(14000);

        caps[6]=new Mat();
        caps[6].setType(Mat.TYPE_EQUIP);
        caps[6].setName("黄金盔");
        caps[6].setPart(Mat.PART_HEAD);
        caps[6].setDefenceAdd(30);
        caps[6].setMinLv(50);
        caps[6].setDesc("防御力+30,等级要求50");
        caps[6].setPrice(20000);
        
        matVC.addElement(caps);

        //装饰
        jewelrys=new Mat[9];

        jewelrys[0]=new Mat();
        jewelrys[0].setType(Mat.TYPE_EQUIP);
        jewelrys[0].setName("护身符");
        jewelrys[0].setPart(Mat.PART_JEWELRY);
        jewelrys[0].setMaxMagicAdd(15);
        jewelrys[0].setDesc("精神+15");
        jewelrys[0].setPrice(200);

        jewelrys[1]=new Mat();
        jewelrys[1].setType(Mat.TYPE_EQUIP);
        jewelrys[1].setName("珍珠链");
        jewelrys[1].setPart(Mat.PART_JEWELRY);
        jewelrys[1].setMaxMagicAdd(25);
        jewelrys[1].setMinLv(5);
        jewelrys[1].setDesc("精神+25,等级要求5");
        jewelrys[1].setPrice(500);

        jewelrys[2]=new Mat();
        jewelrys[2].setType(Mat.TYPE_EQUIP);
        jewelrys[2].setName("苍魂珠");
        jewelrys[2].setPart(Mat.PART_JEWELRY);
        jewelrys[2].setMaxMagicAdd(40);
        jewelrys[2].setMinLv(10);
        jewelrys[2].setDesc("精神+40,等级要求10");
        jewelrys[2].setPrice(1000);

        jewelrys[3]=new Mat();
        jewelrys[3].setType(Mat.TYPE_EQUIP);
        jewelrys[3].setName("九宫坠");
        jewelrys[3].setPart(Mat.PART_JEWELRY);
        jewelrys[3].setMaxMagicAdd(60);
        jewelrys[3].setMinLv(20);
        jewelrys[3].setDesc("精神+60,等级要求20");
        jewelrys[3].setPrice(2000);

        jewelrys[4]=new Mat();
        jewelrys[4].setType(Mat.TYPE_EQUIP);
        jewelrys[4].setName("八卦坠");
        jewelrys[4].setPart(Mat.PART_JEWELRY);
        jewelrys[4].setMaxMagicAdd(80);
        jewelrys[4].setMinLv(30);
        jewelrys[4].setDesc("精神+80,等级要求30");
        jewelrys[4].setPrice(4000);

        jewelrys[5]=new Mat();
        jewelrys[5].setType(Mat.TYPE_EQUIP);
        jewelrys[5].setName("风月宝链");
        jewelrys[5].setPart(Mat.PART_JEWELRY);
        jewelrys[5].setMaxMagicAdd(110);
        jewelrys[5].setMinLv(40);
        jewelrys[5].setDesc("精神+110,等级要求40");
        jewelrys[5].setPrice(6000);

        jewelrys[6]=new Mat();
        jewelrys[6].setType(Mat.TYPE_EQUIP);
        jewelrys[6].setName("疾风之铃");
        jewelrys[6].setPart(Mat.PART_JEWELRY);
        jewelrys[6].setMaxMagicAdd(140);
        jewelrys[6].setMinLv(50);
        jewelrys[6].setDesc("精神+140,等级要求50");
        jewelrys[6].setPrice(8000);

        jewelrys[7]=new Mat();
        jewelrys[7].setType(Mat.TYPE_EQUIP);
        jewelrys[7].setName("七彩玲珑");
        jewelrys[7].setPart(Mat.PART_JEWELRY);
        jewelrys[7].setMaxMagicAdd(160);
        jewelrys[7].setMinLv(60);
        jewelrys[7].setDesc("精神+160,等级要求60");
        jewelrys[7].setPrice(10000);

        jewelrys[8]=new Mat();
        jewelrys[8].setType(Mat.TYPE_EQUIP);
        jewelrys[8].setName("碧水青龙");
        jewelrys[8].setPart(Mat.PART_JEWELRY);
        jewelrys[8].setMaxMagicAdd(180);
        jewelrys[8].setMinLv(70);
        jewelrys[8].setDesc("精神+180,等级要求70");
        jewelrys[8].setPrice(12000);
        
        matVC.addElement(jewelrys);



        //衣服
        cloths=new Mat[7];
        cloths[0]=new Mat();
        cloths[0].setType(Mat.TYPE_EQUIP);
        cloths[0].setName("布衣");
        cloths[0].setPart(Mat.PART_BODY);
        cloths[0].setDefenceAdd(4);
        cloths[0].setDesc("防御力+4");
        cloths[0].setPrice(150);

        cloths[1]=new Mat();
        cloths[1].setType(Mat.TYPE_EQUIP);
        cloths[1].setName("皮衣");
        cloths[1].setPart(Mat.PART_BODY);
        cloths[1].setDefenceAdd(10);
        cloths[1].setMinLv(5);
        cloths[1].setDesc("防御力+10,等级要求5");
        cloths[1].setPrice(500);

        cloths[2]=new Mat();
        cloths[2].setType(Mat.TYPE_EQUIP);
        cloths[2].setName("披风");
        cloths[2].setPart(Mat.PART_BODY);
        cloths[2].setDefenceAdd(20);
        cloths[2].setMinLv(10);
        cloths[2].setDesc("防御力+20,等级要求10");
        cloths[2].setPrice(1200);

        cloths[3]=new Mat();
        cloths[3].setType(Mat.TYPE_EQUIP);
        cloths[3].setName("鳞甲");
        cloths[3].setPart(Mat.PART_BODY);
        cloths[3].setDefenceAdd(40);
        cloths[3].setMinLv(20);
        cloths[3].setDesc("防御力+40,等级要求20");
        cloths[3].setPrice(3000);

        cloths[4]=new Mat();
        cloths[4].setType(Mat.TYPE_EQUIP);
        cloths[4].setName("锁子甲");
        cloths[4].setPart(Mat.PART_BODY);
        cloths[4].setDefenceAdd(70);
        cloths[4].setMinLv(30);
        cloths[4].setDesc("防御力+70,等级要求30");
        cloths[4].setPrice(8000);

        cloths[5]=new Mat();
        cloths[5].setType(Mat.TYPE_EQUIP);
        cloths[5].setName("钢甲");
        cloths[5].setPart(Mat.PART_BODY);
        cloths[5].setDefenceAdd(100);
        cloths[5].setMinLv(40);
        cloths[5].setDesc("防御力+100,等级要求40");
        cloths[5].setPrice(14000);

        cloths[6]=new Mat();
        cloths[6].setType(Mat.TYPE_EQUIP);
        cloths[6].setName("龙骨甲");
        cloths[6].setPart(Mat.PART_BODY);
        cloths[6].setDefenceAdd(150);
        cloths[6].setMinLv(50);
        cloths[6].setDesc("防御力+150,等级要求50");
        cloths[6].setPrice(20000);
        
        matVC.addElement(cloths);


        //鞋
        shoes=new Mat[8];

        shoes[0]=new Mat();
        shoes[0].setType(Mat.TYPE_EQUIP);
        shoes[0].setName("布鞋");
        shoes[0].setPart(Mat.PART_FOOT);
        shoes[0].setDefenceAdd(2);
        shoes[0].setDesc("防御力+2");
        shoes[0].setPrice(200);

        shoes[1]=new Mat();
        shoes[1].setType(Mat.TYPE_EQUIP);
        shoes[1].setName("皮靴");
        shoes[1].setPart(Mat.PART_FOOT);
        shoes[1].setDefenceAdd(5);
        shoes[1].setMinLv(5);
        shoes[1].setDesc("防御力+5,等级要求5");
        shoes[1].setPrice(500);

        shoes[2]=new Mat();
        shoes[2].setType(Mat.TYPE_EQUIP);
        shoes[2].setName("侠客履");
        shoes[2].setPart(Mat.PART_FOOT);
        shoes[2].setDefenceAdd(10);
        shoes[2].setMinLv(10);
        shoes[2].setDesc("防御力+10,等级要求10");
        shoes[2].setPrice(1000);

        shoes[3]=new Mat();
        shoes[3].setType(Mat.TYPE_EQUIP);
        shoes[3].setName("神行靴");
        shoes[3].setPart(Mat.PART_FOOT);
        shoes[3].setDefenceAdd(15);
        shoes[3].setMinLv(20);
        shoes[3].setDesc("防御力+15,等级要求20");
        shoes[3].setPrice(2000);

        shoes[4]=new Mat();
        shoes[4].setType(Mat.TYPE_EQUIP);
        shoes[4].setName("追星踏月");
        shoes[4].setPart(Mat.PART_FOOT);
        shoes[4].setDefenceAdd(20);
        shoes[4].setMinLv(30);
        shoes[4].setDesc("防御力+20,等级要求30");
        shoes[4].setPrice(5000);

        shoes[5]=new Mat();
        shoes[5].setType(Mat.TYPE_EQUIP);
        shoes[5].setName("九州履");
        shoes[5].setPart(Mat.PART_FOOT);
        shoes[5].setDefenceAdd(30);
        shoes[5].setMinLv(40);
        shoes[5].setDesc("防御力+30,等级要求40");
        shoes[5].setPrice(7000);

        shoes[6]=new Mat();
        shoes[6].setType(Mat.TYPE_EQUIP);
        shoes[6].setName("万里追云履");
        shoes[6].setPart(Mat.PART_FOOT);
        shoes[6].setDefenceAdd(45);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -