Skip to content

Commit 06cccea

Browse files
committed
Fix Barrows ClueTable tertiary rate and update kill method to accept options
1 parent 3d98082 commit 06cccea

File tree

1 file changed

+4
-3
lines changed
  • packages/oldschooljs/src/simulation/monsters/special

1 file changed

+4
-3
lines changed

packages/oldschooljs/src/simulation/monsters/special/Barrows.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { roll } from 'e';
22

3+
import type { MonsterKillOptions } from '../../../meta/types';
34
import Bank from '../../../structures/Bank';
45
import LootTable from '../../../structures/LootTable';
56
import Monster from '../../../structures/Monster';
@@ -48,16 +49,16 @@ const OtherTable = new LootTable()
4849
.add(new LootTable().add('Loop half of key').add('Tooth half of key'), 1, 6)
4950
.add('Dragon med helm');
5051

51-
const ClueTable = new LootTable().tertiary(34, 'Clue scroll (elite)');
52+
const ClueTable = new LootTable().tertiary(29, 'Clue scroll (elite)');
5253

5354
const NUMBER_OF_BROTHERS = 6;
5455

5556
export class Barrows extends Monster {
56-
public kill(quantity = 1): Bank {
57+
public kill(quantity: number, options: MonsterKillOptions): Bank {
5758
const loot = new Bank();
5859

5960
for (let i = 0; i < quantity; i++) {
60-
ClueTable.roll(1, { targetBank: loot });
61+
ClueTable.roll(1, { ...options.lootTableOptions, targetBank: loot });
6162

6263
// We use a set to track items received, you cannot get
6364
// the same item twice per chest.

0 commit comments

Comments
 (0)