Skip to content

Commit

Permalink
fix egg rate, fix beehive rate/message
Browse files Browse the repository at this point in the history
  • Loading branch information
nwjgit committed Mar 4, 2024
1 parent ffc2430 commit 1bc62dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mahoji/commands/chop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const chopCommand: OSBMahojiCommand = {
{
type: ApplicationCommandOptionType.String,
name: 'twitchers_gloves',
description: "Change the settings of your Twitcher's gloves. (default egg nests)",
description: "Change the settings of your Twitcher's gloves. (default egg nests, optional)",
required: false,
choices: [
{ name: 'Egg nest (Default)', value: 'egg' },
Expand Down
9 changes: 7 additions & 2 deletions src/tasks/minions/woodcuttingActivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function handleForestry({ user, duration, loot }: { user: MUser; log: Log;
case 5: // Beehive
case5++;
for (let i = 0; i < randInt(4, 6); i++) {
if (percentChance(2 / 3)) {
if (percentChance(200 / 300)) {
loot.add('Sturdy beehive parts', 1);
}
}
Expand All @@ -77,7 +77,7 @@ async function handleForestry({ user, duration, loot }: { user: MUser; log: Log;
break;
case 9: // Pheasant Control
case9++;
eggsDelivered = randInt(15, 60);
eggsDelivered = randInt(15, 45);
for (let i = 0; i < eggsDelivered; i++) {
if (percentChance(50)) {
loot.add('Pheasant tail feathers', 1);
Expand Down Expand Up @@ -180,6 +180,11 @@ async function handleForestry({ user, duration, loot }: { user: MUser; log: Log;
? `Completed Forestry event${totalEvents > 1 ? 's:' : ':'} ${completedEvents}. ${xpRes}\n`
: ''
}`;
strForestry += `${
loot.has('Sturdy beehive parts') && !user.cl.has('Sturdy beehive parts') // only show this message once to reduce spam
? '- The temporary beehive was made so well you could repurpose parts of it to build a permanent hive.\n'
: ''
}`;
strForestry += `${
loot.has('Golden pheasant egg')
? '- You feel a connection to the pheasants as if one wishes to travel with you...\n'
Expand Down

0 comments on commit 1bc62dc

Please sign in to comment.