From b656e9c3203710a7dd71bb5cdd03d63f013cf278 Mon Sep 17 00:00:00 2001 From: nwjgit Date: Tue, 5 Mar 2024 13:31:18 -0600 Subject: [PATCH] small fix --- src/lib/minions/functions/addSkillingClueToLoot.ts | 2 +- src/tasks/minions/woodcuttingActivity.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/minions/functions/addSkillingClueToLoot.ts b/src/lib/minions/functions/addSkillingClueToLoot.ts index 651c2b9d26..1b92d2d3f4 100644 --- a/src/lib/minions/functions/addSkillingClueToLoot.ts +++ b/src/lib/minions/functions/addSkillingClueToLoot.ts @@ -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; diff --git a/src/tasks/minions/woodcuttingActivity.ts b/src/tasks/minions/woodcuttingActivity.ts index c51da19d4b..3e7f994e15 100644 --- a/src/tasks/minions/woodcuttingActivity.ts +++ b/src/tasks/minions/woodcuttingActivity.ts @@ -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