Skip to content

Commit

Permalink
Prevent rogue outfit doubling clues (#6240)
Browse files Browse the repository at this point in the history
  • Loading branch information
DayV-git authored Nov 27, 2024
1 parent 4ac4835 commit 1e2119c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tasks/minions/pickpocketActivity.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { percentChance, randInt, roll } from 'e';
import { Bank } from 'oldschooljs';

import { ClueTiers } from '../../lib/clues/clueTiers';
import { Events } from '../../lib/constants';
import type { Stealable } from '../../lib/skilling/skills/thieving/stealables';
import { stealables } from '../../lib/skilling/skills/thieving/stealables';
Expand Down Expand Up @@ -63,6 +64,13 @@ export const pickpocketTask: MinionTask = {
const lootItems = obj.table.roll(1, {
tertiaryItemPercentageChanges: user.buildTertiaryItemChanges()
});

//add clues to loot before rogue boost
for (const id of ClueTiers.map(c => c.scrollID).filter(sid => lootItems.has(sid))) {
loot.add(id, lootItems.amount(id));
lootItems.remove(id);
}

// TODO: Remove Rocky from loot tables in oldschoolJS
if (lootItems.has('Rocky')) lootItems.remove('Rocky');

Expand Down

0 comments on commit 1e2119c

Please sign in to comment.