Skip to content

Commit d1f06c1

Browse files
committed
Disable debug checks
1 parent a51b3d2 commit d1f06c1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pages/tools/gachacalc.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -732,17 +732,17 @@ function calcSimsExact<T>(
732732
const other = newSims[key]
733733

734734
if (other) {
735-
if (other.const != sim.const) console.error("const", key, sim, other)
736-
else if (other.guaranteed != sim.guaranteed) console.error("guaranteed", key, sim, other)
737-
else if (other.guaranteedPity != sim.guaranteedPity) console.error("guaranteedPity", key, sim, other)
738-
else if (other.pity != sim.pity) console.error("pity", key, sim, other)
739-
else if (other.lostPity != sim.lostPity) console.error("lostPity", key, sim, other)
740-
else if (other.gachaTargetIndex != sim.gachaTargetIndex) console.error("gachaTargetIndex", key, sim, other)
741-
else {
735+
// if (other.const != sim.const) console.error("const", key, sim, other)
736+
// else if (other.guaranteed != sim.guaranteed) console.error("guaranteed", key, sim, other)
737+
// else if (other.guaranteedPity != sim.guaranteedPity) console.error("guaranteedPity", key, sim, other)
738+
// else if (other.pity != sim.pity) console.error("pity", key, sim, other)
739+
// else if (other.lostPity != sim.lostPity) console.error("lostPity", key, sim, other)
740+
// else if (other.gachaTargetIndex != sim.gachaTargetIndex) console.error("gachaTargetIndex", key, sim, other)
741+
// else {
742742
other.rate += sim.rate
743743
return
744-
}
745-
throw new Error("Unexpected sim")
744+
// }
745+
// throw new Error("Unexpected sim")
746746
}
747747

748748
newSims[key] = sim
@@ -754,10 +754,10 @@ function calcSimsExact<T>(
754754
const gachaTarget = gachaTargets[sim.gachaTargetIndex]
755755
if (sim.const >= gachaTarget.target) {
756756
// Limited to target
757-
if (sim.gachaTargetIndex != gachaTargets.length - 1) {
758-
console.error("sim.gachaTargetIndex != gachaTargets.length - 1", sim, gachaTargets)
759-
throw new Error("Unexpected sim")
760-
}
757+
// if (sim.gachaTargetIndex != gachaTargets.length - 1) {
758+
// console.error("sim.gachaTargetIndex != gachaTargets.length - 1", sim, gachaTargets)
759+
// throw new Error("Unexpected sim")
760+
// }
761761
addOrMerge({ ...sim })
762762
continue
763763
}

0 commit comments

Comments
 (0)