|
|
@ -102,6 +102,7 @@ const FIRE=0; |
|
|
|
if (!temp) { |
|
|
|
if (!temp) { |
|
|
|
continue |
|
|
|
continue |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const PYRAMYTHRA=false //Enables PYRA/MYTHRA calculations in slot 1 of Driver 1.
|
|
|
|
var combinations={} |
|
|
|
var combinations={} |
|
|
|
for (var combo of combos) { |
|
|
|
for (var combo of combos) { |
|
|
|
if (!(prettyNames[combo[2]] in combinations)) { |
|
|
|
if (!(prettyNames[combo[2]] in combinations)) { |
|
|
@ -115,7 +116,7 @@ const FIRE=0; |
|
|
|
var matches=0; |
|
|
|
var matches=0; |
|
|
|
var driver1performedon=0; |
|
|
|
var driver1performedon=0; |
|
|
|
for (var ind=0;ind<3;ind++) { |
|
|
|
for (var ind=0;ind<3;ind++) { |
|
|
|
if (driver1.length>0&&(combo[ind]==FIRE||combo[ind]==LIGHT)) { |
|
|
|
if (PYRAMYTHRA&&driver1.length>0&&(combo[ind]==FIRE||combo[ind]==LIGHT)) { |
|
|
|
matches++; |
|
|
|
matches++; |
|
|
|
driver1=[] |
|
|
|
driver1=[] |
|
|
|
driver1performedon=ind |
|
|
|
driver1performedon=ind |
|
|
@ -125,11 +126,11 @@ const FIRE=0; |
|
|
|
driver1=[] |
|
|
|
driver1=[] |
|
|
|
driver1performedon=ind |
|
|
|
driver1performedon=ind |
|
|
|
} else |
|
|
|
} else |
|
|
|
if (ind==2&&driver1performedon==0&&driver4.length>0&&(combo[ind]==FIRE||combo[ind]==LIGHT)) { |
|
|
|
if (PYRAMYTHRA&&ind==2&&driver1performedon==0&&driver4.length>0&&(combo[ind]==FIRE||combo[ind]==LIGHT)) { |
|
|
|
matches++; |
|
|
|
matches++; |
|
|
|
driver4=[] |
|
|
|
driver4=[] |
|
|
|
} else |
|
|
|
} else |
|
|
|
if (ind==2&&driver1performedon==0&&driver4.includes(combo[ind])) { |
|
|
|
if (PYRAMYTHRA&&ind==2&&driver1performedon==0&&driver4.includes(combo[ind])) { |
|
|
|
matches++; |
|
|
|
matches++; |
|
|
|
driver4=[] |
|
|
|
driver4=[] |
|
|
|
} else |
|
|
|
} else |
|
|
@ -149,10 +150,10 @@ const FIRE=0; |
|
|
|
} |
|
|
|
} |
|
|
|
if (Object.keys(combinations).length>maxcombos) { |
|
|
|
if (Object.keys(combinations).length>maxcombos) { |
|
|
|
maxcombos=Object.keys(combinations).length |
|
|
|
maxcombos=Object.keys(combinations).length |
|
|
|
combolist=[{drivers:temp.split('').map((ele,i)=>(i==0)?GetCommonName(-1):GetCommonName(ele)),combos:combinations}] |
|
|
|
combolist=[{drivers:temp.split('').map((ele,i)=>(i==0&&PYRAMYTHRA)?GetCommonName(-1):GetCommonName(ele)),combos:combinations}] |
|
|
|
} else |
|
|
|
} else |
|
|
|
if (Object.keys(combinations).length==maxcombos) { |
|
|
|
if (Object.keys(combinations).length==maxcombos) { |
|
|
|
combolist.push({drivers:temp.split('').map((ele,i)=>(i==0)?GetCommonName(-1):GetCommonName(ele)),combos:combinations}) |
|
|
|
combolist.push({drivers:temp.split('').map((ele,i)=>(i==0&&PYRAMYTHRA)?GetCommonName(-1):GetCommonName(ele)),combos:combinations}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(JSON.stringify({maxcombo:maxcombos,count:combolist.length,list:combolist})) |
|
|
|
console.log(JSON.stringify({maxcombo:maxcombos,count:combolist.length,list:combolist})) |
|
|
|