document.getElementById("console").value+="Step "+(step++)+") Using "+voltage+" voltage w/"+Math.round(tbonus*100)+"% team, score between "+i+"~"+(i+interval-1)+" pts. EP +"+EPCalc(voltage,i,tbonus)+". Remaining:"+(end-start)+" EP \n"
document.getElementById("console").value+="Step "+(step++)+") Using "+voltage+" voltage w/"+Math.round(tbonus*100)+"% team, score between "+i+"~"+(i+interval-1)+" pts. EP +"+EPCalc(voltage,i,tbonus)+". Remaining:"+(end-start)+" EP \n"
document.getElementById("console").value+="Step "+(step++)+") Using "+voltage+" voltage w/"+Math.round(tbonus*100)+"% team, score between "+i+"~"+(i+interval-1)+" pts. EP +"+EPCalc(voltage,i,tbonus)+". Remaining:"+(end-start)+" EP \n"
document.getElementById("console").value+="Step "+(step++)+") Using "+voltage+" voltage w/"+Math.round(tbonus*100)+"% team, score between "+i+"~"+(i+interval-1)+" pts. EP +"+EPCalc(voltage,i,tbonus)+". Remaining:"+(end-start)+" EP \n"
document.getElementById("console").value+="Step "+(step++)+") Using "+voltage+" voltage w/"+Math.round(tbonus*100)+"% team, score between "+i+"~"+(i+interval-1)+" pts. EP +"+EPCalc(voltage,i,tbonus)+". Remaining:"+(end-start)+" EP \n"
document.getElementById("console").value+="Step "+(step++)+") Using "+voltage+" voltage w/"+Math.round(tbonus*100)+"% team, score between "+i+"~"+(i+interval-1)+" pts. EP +"+EPCalc(voltage,i,tbonus)+". Remaining:"+(end-start)+" EP \n"
document.getElementById("console").value+="Step "+(step++)+") Use Rehearsal w/"+Math.round(tbonus*100)+"% team. EP +"+gain+". Remaining:"+(end-start)+" EP \n"
returnfalse
}
returntrue
}
functionTryRehearsal(tbonus){
if(end==start){
returnfalse;
returnfalse
}
varvoltage=0;
varvoltage=0
if((end-start)%2!==0){
returnundefined;
returnundefined
}
if(end-start>10+Math.round(tbonus*10)+10){
vargain=10+Math.round(tbonus*10);
start+=gain;
document.getElementById("console").value+=
"Step "+
step+++
") Use Rehearsal w/"+
tbonus*100+
"% team. EP +"+
gain+
". Remaining:"+
(end-start)+
" EP \n";
returntrue;
}elseif(end-start>=20){
vargain=end-start-10;
start+=gain;
document.getElementById("console").value+=
"Step "+
step+++
") Use Rehearsal w/"+
(gain-10)*10+
"% team. EP +"+
gain+
". Remaining:"+
(end-start)+
" EP \n";
returntrue;
}elseif((end-start)%10==0){
vargain=10;
start+=gain;
document.getElementById("console").value+=
"Step "+
step+++
") Use Rehearsal w/0% team. EP +"+
gain+
". Remaining:"+
(end-start)+
" EP \n";
returnfalse;
if(end-start>(10+Math.round(tbonus*10))+10){
vargain=(10+Math.round(tbonus*10))
start+=gain
document.getElementById("console").value+="Step "+(step++)+") Use Rehearsal w/"+(tbonus*100)+"% team. EP +"+gain+". Remaining:"+(end-start)+" EP \n"
returntrue
}else
if(end-start>=20){
vargain=end-start-10
start+=gain
document.getElementById("console").value+="Step "+(step++)+") Use Rehearsal w/"+((gain-10)*10)+"% team. EP +"+gain+". Remaining:"+(end-start)+" EP \n"
returntrue
}else
if((end-start)%10==0){
vargain=10
start+=gain
document.getElementById("console").value+="Step "+(step++)+") Use Rehearsal w/0% team. EP +"+gain+". Remaining:"+(end-start)+" EP \n"
returnfalse
}else
{
vargain=end-start
if(((gain-10)*10)>=0){
start+=gain
document.getElementById("console").value+="Step "+(step++)+") Use Rehearsal w/"+((gain-10)*10)+"% team. EP +"+(gain)+". Remaining:"+(end-start)+" EP \n"
returnfalse
}else{
vargain=end-start;
start+=gain;
document.getElementById("console").value+=
"Step "+
step+++
") Use Rehearsal w/"+
(gain-10)*10+
"% team. EP +"+
gain+
". Remaining:"+
(end-start)+
" EP \n";
returnfalse;
returnundefined
}
}
returnfalse;
returnfalse
/*varvoltage=0
if(end-start>36){
start+=26
@ -373,11 +220,11 @@ function test() {
returntrue*/
}
if(end-start>1000000){
document.getElementById("console").value=
"Get closer to target score before using parking calculator!";
}else{
varresult=true;
if((end-start)>1000000){
document.getElementById("console").value="Get closer to target score before using parking calculator!"
document.getElementById("console").value="Impossible to park using this team!"
}else{
document.getElementById("console").value=
"Calculating from "+
originalTarget+
" to "+
end+
" for event type "+
type+
"...\n\t(All games are done in Free Live)\n\nFound a park! "+
(step-1)+
" steps and "+
flameCount+
" voltage required!\n\n"+
document.getElementById("console").value;
document.getElementById("console").value="Calculating from "+originalTarget+" to "+end+" for event type "+type+"...\n\t(All games are done in Free Live)\n\nFound a park! "+(step-1)+" step"+Plural(step-1)+" and "+flameCount+" voltage required!\n\n"+document.getElementById("console").value