sigonasr2, Sig, Sigo 3 years ago
parent 056a02990e
commit ceb5f44ea1
  1. 11
      combos3.js
  2. 779
      combos3_3.out
  3. 779
      combos3_4.out
  4. 1
      combos3_5.out

@ -102,6 +102,7 @@ const FIRE=0;
if (!temp) {
continue
}
const PYRAMYTHRA=false //Enables PYRA/MYTHRA calculations in slot 1 of Driver 1.
var combinations={}
for (var combo of combos) {
if (!(prettyNames[combo[2]] in combinations)) {
@ -115,7 +116,7 @@ const FIRE=0;
var matches=0;
var driver1performedon=0;
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++;
driver1=[]
driver1performedon=ind
@ -125,11 +126,11 @@ const FIRE=0;
driver1=[]
driver1performedon=ind
} 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++;
driver4=[]
} else
if (ind==2&&driver1performedon==0&&driver4.includes(combo[ind])) {
if (PYRAMYTHRA&&ind==2&&driver1performedon==0&&driver4.includes(combo[ind])) {
matches++;
driver4=[]
} else
@ -149,10 +150,10 @@ const FIRE=0;
}
if (Object.keys(combinations).length>maxcombos) {
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
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}))

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save