Skip to content

Commit

Permalink
set default twitcher setting to egg without
Browse files Browse the repository at this point in the history
  • Loading branch information
nwjgit committed Mar 6, 2024
1 parent 1951141 commit 8e0d0c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/mahoji/commands/chop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const chopCommand: OSBMahojiCommand = {
{
type: ApplicationCommandOptionType.String,
name: 'twitchers_gloves',
description: "Change the settings of your Twitcher's gloves. (default off, optional)",
description: "Change the settings of your Twitcher's gloves. (default egg, optional)",
required: false,
choices: TWITCHERS_GLOVES.map(i => ({ name: `${i} nest`, value: i }))
}
Expand Down
10 changes: 7 additions & 3 deletions src/tasks/minions/woodcuttingActivity.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { percentChance, randInt, Time } from 'e';
import { Bank, LootTable } from 'oldschooljs';

import { Emoji, Events } from '../../lib/constants';
import { Emoji, Events, TwitcherGloves } from '../../lib/constants';
import { MediumSeedPackTable } from '../../lib/data/seedPackTables';
import addSkillingClueToLoot from '../../lib/minions/functions/addSkillingClueToLoot';
import { eggNest } from '../../lib/simulation/birdsNest';
Expand Down Expand Up @@ -236,7 +236,7 @@ export const woodcuttingTask: MinionTask = {

let strungRabbitFoot = user.hasEquipped('Strung rabbit foot');
let twitchersEquipped = user.hasEquipped("twitcher's gloves");
let twitcherSetting = undefined;
let twitcherSetting: TwitcherGloves | undefined = 'egg';
let xpReceived = quantity * log.xp;
let bonusXP = 0;
let rationUsed = 0;
Expand Down Expand Up @@ -306,7 +306,11 @@ export const woodcuttingTask: MinionTask = {

// Check for twitcher gloves
if (twitchersEquipped) {
twitcherSetting = twitchers;
if (twitchers !== undefined) {
twitcherSetting = twitchers;
}
} else {
twitcherSetting = undefined;
}

// Add clue scrolls & nests
Expand Down

0 comments on commit 8e0d0c0

Please sign in to comment.