@blizzhackers/d2data 2.7.6 → 2.7.8
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/monpopulationest.json +4996 -4996
- package/json/monstats.json +2 -1
- package/json/superuniques.json +1 -2
- package/package.json +1 -1
package/compile.js
CHANGED
|
@@ -263,7 +263,7 @@ files.forEach(fn => {
|
|
|
263
263
|
full[fn]['Coldworm the Burrower'].areaId = 64;
|
|
264
264
|
full[fn]['Fire Eye'].areaId = 54;
|
|
265
265
|
full[fn]['Dark Elder'].areaId = 44;
|
|
266
|
-
full[fn]['The Summoner'].areaId = 74;
|
|
266
|
+
// full[fn]['The Summoner'].areaId = 74; // I don't think he spawns a superunique.
|
|
267
267
|
full[fn]['The Smith'].areaId = 28;
|
|
268
268
|
full[fn]['Web Mage the Burning'].areaId = 85;
|
|
269
269
|
full[fn]['Witch Doctor Endugu'].areaId = 91;
|
|
@@ -305,6 +305,7 @@ files.forEach(fn => {
|
|
|
305
305
|
|
|
306
306
|
if (fn === 'monstats') {
|
|
307
307
|
full[fn]['bloodraven'].areaId = 17;
|
|
308
|
+
full[fn]['summoner'].areaId = 74;
|
|
308
309
|
full[fn]['andariel'].areaId = 37;
|
|
309
310
|
full[fn]['duriel'].areaId = 73;
|
|
310
311
|
full[fn]['mephisto'].areaId = 102;
|
|
@@ -463,6 +464,7 @@ let monpopulation = {};
|
|
|
463
464
|
[0, 1, 2].forEach((diff) => {
|
|
464
465
|
let uniqueCount = 3.5 + diff;
|
|
465
466
|
let champCount = 3;
|
|
467
|
+
let uniqueRatio = 0.8, champRatio = 0.2;
|
|
466
468
|
let s = _s(diff);
|
|
467
469
|
full.levels.forEach((level) => {
|
|
468
470
|
let l = (key) => level[key] || 0;
|
|
@@ -510,8 +512,8 @@ let monpopulation = {};
|
|
|
510
512
|
)
|
|
511
513
|
);
|
|
512
514
|
}, 0),
|
|
513
|
-
ucount = avg(l(s("MonUMin")), l(s("MonUMax"))) *
|
|
514
|
-
ccount = avg(l(s("MonUMin")), l(s("MonUMax"))) *
|
|
515
|
+
ucount = avg(l(s("MonUMin")), l(s("MonUMax"))) * uniqueRatio * uniqueCount,
|
|
516
|
+
ccount = avg(l(s("MonUMin")), l(s("MonUMax"))) * champRatio * champCount,
|
|
515
517
|
count = acount - ucount - ccount - scount - bcount;
|
|
516
518
|
|
|
517
519
|
if (count > 0) {
|