Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Arodab committed Dec 8, 2024
1 parent 571bd3c commit 3abcc4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions src/lib/minions/data/killableMonsters/bosses/dt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,11 @@ export const desertTreasureKillableBosses: KillableMonster[] = [
gearSetup: 'melee'
}
],
itemInBankBoosts: [
{
[itemID('Voidwaker')]: 5,
}
],

respawnTime: Time.Minute * 1.5,
levelRequirements: {
Expand All @@ -615,6 +620,10 @@ export const desertTreasureKillableBosses: KillableMonster[] = [
{
itemID: itemID('Scythe of vitur'),
boostPercent: 15
},
{
itemID: itemID('Soulreaper axe'),
boostPercent: 18
}
]
}
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/commands/fish.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,21 @@ describe('Fish Command', async () => {

it('should handle using flakes without flakes in bank', async () => {
const user = await createTestUser();
const res = await user.runCommand(fishCommand, { name: 'Shrimps/Anchovies', flakes: true });
const res = await user.runCommand(fishCommand, { name: 'Shrimps/Anchovies', spirit_flakes: true });
expect(res).toEqual('You need to have at least one spirit flake!');
});

it('should fish with flakes', async () => {
const user = await createTestUser();
await user.update({ bank: new Bank({ 'Spirit flakes': 1000 }) });
const res = await user.runCommand(fishCommand, { name: 'Shrimps/Anchovies', flakes: true });
const res = await user.runCommand(fishCommand, { name: 'Shrimps/Anchovies', spirit_flakes: true });
expect(res).toContain('50% more fish from using spirit flakes');
});

it('should still use flakes if bank contains fewer flakes than fish quantity', async () => {
const user = await createTestUser();
await user.update({ bank: new Bank({ 'Spirit flakes': 100 }) });
const res = await user.runCommand(fishCommand, { name: 'Shrimps/Anchovies', flakes: true });
const res = await user.runCommand(fishCommand, { name: 'Shrimps/Anchovies', spirit_flakes: true });
expect(res).toContain('50% more fish from using spirit flakes');
});
});

0 comments on commit 3abcc4f

Please sign in to comment.