@blizzhackers/d2data 3.1.91640 → 3.1.91641
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compile.js +5 -3
- package/json/base/tcprecalc.json +1252 -1252
- package/json/tcprecalc.json +1710 -1710
- package/package.json +1 -1
package/compile.js
CHANGED
|
@@ -862,10 +862,11 @@ const fs = require('fs');
|
|
|
862
862
|
for (let subtc in tc.counts) {
|
|
863
863
|
if (
|
|
864
864
|
subtc in items &&
|
|
865
|
-
!(subtc in tcprecalc)
|
|
866
|
-
items[subtc].spawnable
|
|
865
|
+
!(subtc in tcprecalc)
|
|
867
866
|
) {
|
|
868
|
-
|
|
867
|
+
if (!items[subtc].spawnable) {
|
|
868
|
+
continue;
|
|
869
|
+
}
|
|
869
870
|
}
|
|
870
871
|
|
|
871
872
|
total += tc.counts[subtc] * totalTC(subtc, debug);
|
|
@@ -885,6 +886,7 @@ const fs = require('fs');
|
|
|
885
886
|
};
|
|
886
887
|
|
|
887
888
|
if (total > 6) {
|
|
889
|
+
console.log('Normalizing TC', key, 'with total', total, 'picks');
|
|
888
890
|
for (let exp in tc.droprateRoot) {
|
|
889
891
|
tc.droprateRoot[exp] = tc.droprateRoot[exp] * 6 / total;
|
|
890
892
|
}
|