|
|
@ -45,6 +45,7 @@ const MAXSTEPS= 10000 |
|
|
|
var start = Math.abs(Math.max(0,Number(document.getElementById("starting").value))) |
|
|
|
var start = Math.abs(Math.max(0,Number(document.getElementById("starting").value))) |
|
|
|
var end = Math.abs(Math.max(0,Number(document.getElementById("ending").value))) |
|
|
|
var end = Math.abs(Math.max(0,Number(document.getElementById("ending").value))) |
|
|
|
var bonus = Number(document.getElementById("team").value) |
|
|
|
var bonus = Number(document.getElementById("team").value) |
|
|
|
|
|
|
|
var parameter = Math.abs(Math.max(0,Number(document.getElementById("parameter").value))) |
|
|
|
var type = (document.getElementById("Bingo").checked?"Bingo": |
|
|
|
var type = (document.getElementById("Bingo").checked?"Bingo": |
|
|
|
document.getElementById("Poker").checked?"Poker/Raid": |
|
|
|
document.getElementById("Poker").checked?"Poker/Raid": |
|
|
|
"Medley") |
|
|
|
"Medley") |
|
|
@ -63,7 +64,7 @@ const MAXSTEPS= 10000 |
|
|
|
if (voltage>0) { |
|
|
|
if (voltage>0) { |
|
|
|
switch (type) { |
|
|
|
switch (type) { |
|
|
|
case "Bingo":{ |
|
|
|
case "Bingo":{ |
|
|
|
return voltage * Math.floor((1 + bonus)*Math.max(10,Math.floor(score/interval))) |
|
|
|
return voltage * Math.floor((1 + bonus)*Math.max(10,Math.floor(score/interval))+Math.floor((1 + bonus)*Math.floor(parameter/600))) |
|
|
|
}break; |
|
|
|
}break; |
|
|
|
case "Medley":{ |
|
|
|
case "Medley":{ |
|
|
|
return voltage * Math.floor((1 + bonus)*(10+Math.floor(score/interval))) |
|
|
|
return voltage * Math.floor((1 + bonus)*(10+Math.floor(score/interval))) |
|
|
|