Skip to content

Commit 586f663

Browse files
Reverted change to atomics and added reference so I don't make the mistake again.
1 parent bcd9c7f commit 586f663

1,919 files changed

Lines changed: 4713 additions & 4707 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

compile.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,18 @@ const fs = require('fs');
387387
atomic[type + c] = atomic[type + c] || [];
388388
});
389389
}
390+
391+
/**
392+
* "For those treasure classes generated off the item type table, the probability value is the value in the 'rarity' column (badly named thus)."
393+
*
394+
* @see https://d2mods.info/forum/kb/viewarticle?a=410
395+
*/
390396

391397
atomic.forEach((atom, atomName) => {
392398
let precalc = {}, total = 0;
393399

394400
atom.forEach((itc, i) => {
395-
let rarity = items[itc].rarity | 0;
401+
let rarity = full.itemtypes[items[itc].type].Rarity | 0;
396402
total += rarity;
397403
atom[i] = [itc, rarity];
398404
});

0 commit comments

Comments
 (0)