Skip to content

Commit 1997d0a

Browse files
refactor: Removes unused variables
Co-authored-by: James Monger <[email protected]>
1 parent 8f90e20 commit 1997d0a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/plugins/skills/woodcutting/woodcutting-task.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,12 @@ export const activate = (task: TaskExecutor<ObjectInteractionAction>, taskIterat
6969

7070
// Check if the amount of ticks passed equal the tools pulses.
7171
if(taskIteration % 3 === 0 && taskIteration != 0) {
72-
const successChance = randomBetween(0, 255);
7372

7473
let toolLevel = tool.level - 1;
7574
if(tool.itemId === 1349 || tool.itemId === 1267) {
7675
toolLevel = 2;
7776
}
7877

79-
const percentNeeded = tree.baseChance + toolLevel + actor.skills.woodcutting.level;
8078
const succeeds = canCut(tree, toolLevel, actor.skills.woodcutting.level);
8179
if(succeeds) {
8280
const targetName: string = findItem(tree.itemId).name.toLowerCase();

0 commit comments

Comments
 (0)