public int getLevel(String str){
        for (int i = 0; i < getLoreSize() ; i++) {
            String line = getString(i);
            if(line.contains(str)) {
                if(line.contains(": ")) {
                    String strs[] = line.split(": ");
                    if(strs[0].contains(str)){
                        if((!Main.other.contains(strs[0]))&&(!Main.special.contains(strs[0])))
                        {
                            return Integer.parseInt(strs[1]);
                        }else if(Main.other.contains(strs[0])){
                            //xxx.0
                            String lev = strs[1].split(".")[0].replace(" ","").replace(":","").replace(".0","");
                            return Integer.parseInt(lev);

                        }else if(Main.special.contains(strs[0])){
                            //+XXX-XXX
                            String lev = strs[1].split("-")[0].replace("+","").replace(" ","").replace(".0","");
                            return Integer.parseInt(lev);
                        }
                    }
                }
            }
        }
        return 0;
    }