|
|
|
@ -20,6 +20,7 @@ public class ITGReader extends Reader{ |
|
|
|
|
final static int REGION_PADDING = 32; |
|
|
|
|
List<Box> extraRegions = new ArrayList<>(); |
|
|
|
|
static int lastJump=0; |
|
|
|
|
boolean failed=false; |
|
|
|
|
public ITGReader(){ |
|
|
|
|
addRegion(new Box(388,552,227,60),NUMBER); //score[0]
|
|
|
|
|
addRegion(new Box(797,438,164,58),NUMBER); //fantastic+[1]
|
|
|
|
@ -220,6 +221,31 @@ public class ITGReader extends Reader{ |
|
|
|
|
case 9:{ |
|
|
|
|
other=convertToString(splitter); |
|
|
|
|
}break; |
|
|
|
|
case 10:{ |
|
|
|
|
if (convertToString(splitter).equals("F")) { |
|
|
|
|
failed=true; |
|
|
|
|
} |
|
|
|
|
if (failed) { |
|
|
|
|
rank=17;/*F*/ |
|
|
|
|
} else |
|
|
|
|
if (pct>=100) {rank=0;/*Quad*/} else |
|
|
|
|
if (pct>=99) {rank=1;/*Trip*/} else |
|
|
|
|
if (pct>=98) {rank=2;/*Doub*/} else |
|
|
|
|
if (pct>=96) {rank=3;/*Star*/} else |
|
|
|
|
if (pct>=94) {rank=4;/*S+*/} else |
|
|
|
|
if (pct>=92) {rank=5;/*S*/} else |
|
|
|
|
if (pct>=89) {rank=6;/*S-*/} else |
|
|
|
|
if (pct>=86) {rank=7;/*A+*/} else |
|
|
|
|
if (pct>=83) {rank=8;/*A*/} else |
|
|
|
|
if (pct>=80) {rank=9;/*A-*/} else |
|
|
|
|
if (pct>=76) {rank=10;/*B+*/} else |
|
|
|
|
if (pct>=72) {rank=11;/*B*/} else |
|
|
|
|
if (pct>=68) {rank=12;/*B-*/} else |
|
|
|
|
if (pct>=64) {rank=13;/*C+*/} else |
|
|
|
|
if (pct>=60) {rank=14;/*C*/} else |
|
|
|
|
if (pct>=55) {rank=15;/*C-*/} else |
|
|
|
|
{rank=16;/*D*/} |
|
|
|
|
} |
|
|
|
|
case 11:{ |
|
|
|
|
title=convertToString(splitter); |
|
|
|
|
}break; |
|
|
|
|