Skip to content

Commit

Permalink
Dupe TOB clues
Browse files Browse the repository at this point in the history
  • Loading branch information
nwjgit committed Feb 8, 2024
1 parent 1c328cf commit 774b79c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/simulation/tob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ export class TheatreOfBloodClass {
const loot = new Bank();
for (let i = 0; i < 3; i++) {
loot.add(NonUniqueTable.roll());

// OSB only: Remove dupe elite clue scrolls
if (loot.amount('Clue scroll (elite)') > 1) {
loot.remove('Clue scroll (elite)', 1);
}
}

if (isHardMode) {
Expand All @@ -106,6 +111,7 @@ export class TheatreOfBloodClass {
// Add HM Tertiary drops: dust / kits
loot.add(HardModeExtraTable.roll());
}

let petChance = isHardMode ? 500 : 650;
if (member.numDeaths > 0) {
petChance *= member.numDeaths;
Expand Down
5 changes: 5 additions & 0 deletions src/tasks/minions/minigames/tobActivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ export const tobTask: MinionTask = {
// Refund initial 100k entry cost
userLoot.add('Coins', 100_000);

// OSB only: Remove elite clue scroll if user has one in bank
if (user.owns('Clue scroll (elite)')) {
userLoot.remove('Clue scroll (elite)', 1);
}

// Add this raids loot to the raid's total loot:
totalLoot.add(userLoot);

Expand Down

0 comments on commit 774b79c

Please sign in to comment.