Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nwjgit committed Mar 5, 2024
1 parent 07dfa28 commit b656e9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/lib/minions/functions/addSkillingClueToLoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export default function addSkillingClueToLoot(
) {
const userLevel = user.skillLevel(skill);
const chance = Math.floor(clueChance / (100 + userLevel));
let nests = 0;
const nestChance = wcCapeNestBoost ? Math.floor(256 * 0.9) : 256;
const cluesTotalWeight = sumArr(clues.map(c => c[1]));
let nests = 0;

for (let i = 0; i < quantity; i++) {
let twitcherClueNest = false;
Expand Down
14 changes: 7 additions & 7 deletions src/tasks/minions/woodcuttingActivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ async function handleForestry({ user, duration, loot }: { user: MUser; duration:
});

let strForestry = '';
let userWcLevel = user.skillLevel(SkillsEnum.Woodcutting);
let chanceWcLevel = Math.min(userWcLevel, 99);
let eggChance = Math.ceil(2700 - ((chanceWcLevel - 1) * (2700 - 1350)) / 98);
let whistleChance = Math.ceil(90 - ((chanceWcLevel - 1) * (90 - 45)) / 98);
const userWcLevel = user.skillLevel(SkillsEnum.Woodcutting);
const chanceWcLevel = Math.min(userWcLevel, 99);
const eggChance = Math.ceil(2700 - ((chanceWcLevel - 1) * (2700 - 1350)) / 98);
const whistleChance = Math.ceil(90 - ((chanceWcLevel - 1) * (90 - 45)) / 98);

perTimeUnitChance(duration, 20, Time.Minute, async () => {
let eventIndex = randInt(0, ForestryEvents.length - 1);
let event = ForestryEvents[eventIndex];
let eggsDelivered = 0;
const eventIndex = randInt(0, ForestryEvents.length - 1);
const event = ForestryEvents[eventIndex];
const defaultEventXP = 5 * (randInt(85, 115) / 100); // used for unverified xp rates
let eggsDelivered = 0;

switch (event.id) {
case 1: // Rising Roots
Expand Down

0 comments on commit b656e9c

Please sign in to comment.