Skip to content

Commit

Permalink
Update hunterActivity.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
TastyPumPum committed Mar 12, 2024
1 parent f89ba32 commit 5ec36da
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions src/tasks/minions/HunterActivity/hunterActivity.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Prisma } from '@prisma/client';
import { percentChance, randInt, Time } from 'e';
import { randInt, Time } from 'e';
import { Bank } from 'oldschooljs';
import { EquipmentSlot } from 'oldschooljs/dist/meta/types';

Expand Down Expand Up @@ -157,31 +157,6 @@ export const hunterTask: MinionTask = {
});
}
}
if (crystalImpling) {
let successfulQuantity = 0;

const maxImplingsPer60 = 21;
const maxImplings = Math.round((maxImplingsPer60 / 60) * duration) + 1;

let catchChance = 20;

if (userHasGracefulEquipped(user)) {
catchChance *= 1.05;
}
if (usingStaminaPotion) {
catchChance *= 1.2;
}

catchChance = Math.round(catchChance);

for (let i = 0; i < quantity; i++) {
if (percentChance(catchChance)) {
successfulQuantity++;
}
}

successfulQuantity = Math.min(successfulQuantity, maxImplings);
}

const loot = new Bank();
for (let i = 0; i < successfulQuantity - pkedQuantity; i++) {
Expand Down

0 comments on commit 5ec36da

Please sign in to comment.