Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Arodab committed Oct 19, 2024
1 parent bfb8933 commit 014ec2a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/lib/structures/GearBank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export class GearBank {
this.skillsAsLevels = skillsAsLevels;
this.skillsAsXP = skillsAsXP;
this.chargeBank = chargeBank;
this.skillsAsXP = skillsAsXP;
}

wildyGearCheck(item: string | number, isWildy: boolean) {
Expand Down
4 changes: 1 addition & 3 deletions src/tasks/minions/fishingActivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ export const fishingTask: MinionTask = {
quantity: z.number().min(1)
}),
async run(data: FishingActivityTaskOptions) {
let { fishID, userID, channelID, spirit_flakes, Qty, loot = [], flakesToRemove } = data;

spirit_flakes = spirit_flakes ?? false;
let { fishID, userID, channelID, Qty, loot = [], flakesToRemove } = data;

const user = await mUserFetch(userID);
const fishLvl = user.skillLevel(SkillsEnum.Fishing);
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/commands/fish.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Fish Command', async () => {
it('should handle insufficient fishing level', async () => {
const user = await createTestUser();
const res = await user.runCommand(fishCommand, { name: 'trout/salmon', quantity: 1 });
expect(res).toEqual('<:minion:778418736180494347> Your minion needs 20 Fishing to fish Trout.');
expect(res).toEqual('<:minion:778418736180494347> Your minion needs 20 Fishing to fish Trout/Salmon.');
});

it('should handle insufficient QP', async () => {
Expand Down

0 comments on commit 014ec2a

Please sign in to comment.