@blizzhackers/d2data 3.1.91639 → 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 +10 -0
- package/json/base/tcprecalc.json +1188 -1188
- package/json/tcprecalc.json +1560 -1560
- package/package.json +1 -1
package/compile.js
CHANGED
|
@@ -860,6 +860,15 @@ const fs = require('fs');
|
|
|
860
860
|
let tc = tcprecalc[key], total = 0;
|
|
861
861
|
|
|
862
862
|
for (let subtc in tc.counts) {
|
|
863
|
+
if (
|
|
864
|
+
subtc in items &&
|
|
865
|
+
!(subtc in tcprecalc)
|
|
866
|
+
) {
|
|
867
|
+
if (!items[subtc].spawnable) {
|
|
868
|
+
continue;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
863
872
|
total += tc.counts[subtc] * totalTC(subtc, debug);
|
|
864
873
|
}
|
|
865
874
|
|
|
@@ -877,6 +886,7 @@ const fs = require('fs');
|
|
|
877
886
|
};
|
|
878
887
|
|
|
879
888
|
if (total > 6) {
|
|
889
|
+
console.log('Normalizing TC', key, 'with total', total, 'picks');
|
|
880
890
|
for (let exp in tc.droprateRoot) {
|
|
881
891
|
tc.droprateRoot[exp] = tc.droprateRoot[exp] * 6 / total;
|
|
882
892
|
}
|