public synchronized boolean setLevel(String str,int level){
      //返回是否拥有这个属性 如果有则返回true 没有就返回false
        //如果没有 会自动为你添加属性
       boolean has = false;
        for (int i = 0; i < getLoreSize() ; i++) {
            String line = getString(i);
            if(line.contains(str)) {
                if(line.contains(": ")) {
                    has = true;
                    String strs[] = line.split(": ");
                    String newer = null;
                    if((!Main.other.contains(strs[0]))&&(!Main.special.contains(strs[0]))){
                       newer = strs[0]+": "+level;
                    }else if(Main.other.contains(strs[0])){
                       newer = strs[0]+": "+level+".0"+"%";
                    }else if(Main.special.contains(strs[0])){
                       newer = strs[0]+": "+("+"+level+".0-"+(level+5)+".0");
                    }

                    setStringAt(i,newer);
                }
            }
        }
        if(!has){
           addString(str+": "+level);
        }
       return has;
    }