Skip to content

Commit

Permalink
Fix elite clue drop rates for TOB (#6010)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arodab authored Aug 21, 2024
1 parent 10ed978 commit bb43e7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/simulation/tob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,19 @@ class TheatreOfBloodClass {
loot.add(NonUniqueTable.roll());
}

let clueRate = 3 / 25;
if (isHardMode) {
// Add 15% extra regular loot for hard mode:
for (const [itemID] of Object.entries(loot.bank)) {
loot.bank[Number.parseInt(itemID)] = Math.ceil(loot.bank[Number.parseInt(itemID)] * 1.15);
}
// Add HM Tertiary drops: dust / kits
loot.add(HardModeExtraTable.roll());

clueRate = 3.5 / 25;
}

if (roll(25)) {
if (Math.random() < clueRate) {
loot.add('Clue scroll (elite)');
}

Expand Down

0 comments on commit bb43e7c

Please sign in to comment.