public static int getHellboundLevel()
{
long confidence = ServerVariables.getLong("HellboundConfidence", 0);
boolean judesBoxes = ServerVariables.getBool("HB_judesBoxes", false);
boolean bernardBoxes = ServerVariables.getBool("HB_bernardBoxes", false);
boolean derekKilled = ServerVariables.getBool("HB_derekKilled", false);
boolean captainKilled = ServerVariables.getBool("HB_captainKilled", false);
if(confidence < 1)
return 0;
else if(confidence >= 1 && confidence < 300000)
return 1;
else if(confidence >= 300000 && confidence < 600000)
return 2;
else if(confidence >= 600000 && confidence < 1000000)
return 3;
else if(confidence >= 1000000 && confidence < 1200000)
{
if(derekKilled && judesBoxes && bernardBoxes)
return 5;
else if(!derekKilled && judesBoxes && bernardBoxes)
return 4;
else if(!derekKilled && (!judesBoxes || !bernardBoxes))
return 3;
}
else if(confidence >= 1200000 && confidence < 1500000)
return 6;
else if(confidence >= 1500000 && confidence < 1800000)
return 7;
else if(confidence >= 1800000 && confidence < 2100000)
{
if(captainKilled)
return 9;
else
return 8;
}
else if(confidence >= 2100000 && confidence < 2200000)
return 10;
else if(confidence >= 2200000)
return 11;
return 0;
}