File tree 1 file changed +4
-3
lines changed
packages/oldschooljs/src/simulation/monsters/special
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { roll } from 'e' ;
2
2
3
+ import type { MonsterKillOptions } from '../../../meta/types' ;
3
4
import Bank from '../../../structures/Bank' ;
4
5
import LootTable from '../../../structures/LootTable' ;
5
6
import Monster from '../../../structures/Monster' ;
@@ -48,16 +49,16 @@ const OtherTable = new LootTable()
48
49
. add ( new LootTable ( ) . add ( 'Loop half of key' ) . add ( 'Tooth half of key' ) , 1 , 6 )
49
50
. add ( 'Dragon med helm' ) ;
50
51
51
- const ClueTable = new LootTable ( ) . tertiary ( 34 , 'Clue scroll (elite)' ) ;
52
+ const ClueTable = new LootTable ( ) . tertiary ( 29 , 'Clue scroll (elite)' ) ;
52
53
53
54
const NUMBER_OF_BROTHERS = 6 ;
54
55
55
56
export class Barrows extends Monster {
56
- public kill ( quantity = 1 ) : Bank {
57
+ public kill ( quantity : number , options : MonsterKillOptions ) : Bank {
57
58
const loot = new Bank ( ) ;
58
59
59
60
for ( let i = 0 ; i < quantity ; i ++ ) {
60
- ClueTable . roll ( 1 , { targetBank : loot } ) ;
61
+ ClueTable . roll ( 1 , { ... options . lootTableOptions , targetBank : loot } ) ;
61
62
62
63
// We use a set to track items received, you cannot get
63
64
// the same item twice per chest.
You can’t perform that action at this time.
0 commit comments