Skip to content

Commit

Permalink
Eagle Tame Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
themrrobert committed Feb 25, 2024
1 parent 8c2db37 commit 5c2b98b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/mahoji/commands/tames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,8 @@ async function tameClueCommand(user: MUser, channelID: string, inputName: string
return 'You need to have all your STASH units built and full for your tame to do Grandmaster clues.';
}

if (!user.owns(cost)) {
if (!user.owns(cost) || (costSavedByDemonicJibwings !== null && !user.owns(costSavedByDemonicJibwings))) {
if (costSavedByDemonicJibwings) cost.add(costSavedByDemonicJibwings);
return `You need ${cost} to feed your Eagle for this trip.`;
}

Expand Down
5 changes: 3 additions & 2 deletions src/tasks/tames/tameTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,14 @@ export async function runTameTask(activity: TameActivity, tame: Tame) {
}

if (clueTier.name === 'Master') {
const percentChanceOfGMC = mTame.hasEquipped('Divine ring') ? 3.5 : 1.5;
const hasDivineRing = mTame.hasEquipped('Divine ring');
const percentChanceOfGMC = hasDivineRing ? 3.5 : 1.5;
for (let i = 0; i < activityData.quantity; i++) {
if (percentChance(percentChanceOfGMC)) {
loot.add('Clue scroll (grandmaster)');
}
}
messages.push('2x GMC droprate for divine ring');
if (hasDivineRing) messages.push('2x GMC droprate for divine ring');
}

if (user.bitfield.includes(BitField.DisabledTameClueOpening)) {
Expand Down

0 comments on commit 5c2b98b

Please sign in to comment.