From 774b79c8bfdeef9a6137d5d8cc33111f31980295 Mon Sep 17 00:00:00 2001 From: nwjgit Date: Thu, 8 Feb 2024 16:42:56 -0600 Subject: [PATCH] Dupe TOB clues --- src/lib/simulation/tob.ts | 6 ++++++ src/tasks/minions/minigames/tobActivity.ts | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/src/lib/simulation/tob.ts b/src/lib/simulation/tob.ts index 1c789f1fd1..6d8047f47e 100644 --- a/src/lib/simulation/tob.ts +++ b/src/lib/simulation/tob.ts @@ -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) { @@ -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; diff --git a/src/tasks/minions/minigames/tobActivity.ts b/src/tasks/minions/minigames/tobActivity.ts index f25fe8ac75..f83d240270 100644 --- a/src/tasks/minions/minigames/tobActivity.ts +++ b/src/tasks/minions/minigames/tobActivity.ts @@ -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);