diff --git a/src/lib/MUser.ts b/src/lib/MUser.ts index 237580dae1..04b81c7b58 100644 --- a/src/lib/MUser.ts +++ b/src/lib/MUser.ts @@ -742,7 +742,11 @@ GROUP BY data->>'clueID';`); return this.caPoints() >= CombatAchievements[tier].rewardThreshold; } - buildTertiaryItemChanges(hasRingOfWealthI: boolean = false, isInWilderness: boolean = false, isOnSlayerTask: boolean = false) { + buildTertiaryItemChanges( + hasRingOfWealthI: boolean = false, + isInWilderness: boolean = false, + isOnSlayerTask: boolean = false + ) { const changes = new Map(); const tiers = Object.keys(CombatAchievements) as Array; @@ -754,25 +758,24 @@ GROUP BY data->>'clueID';`); changes.set(`Clue scroll (${tier})`, change); } - if (isInWilderness) changes.set('Giant key', 50); + if (isInWilderness) changes.set('Giant key', 50); let mossGiantType: string = `${isInWilderness}_${isOnSlayerTask}`; - switch(mossGiantType) { + switch (mossGiantType) { case 'true_false': - changes.set('Mossy key', 60) + changes.set('Mossy key', 60); break; case 'false_true': - changes.set('Mossy key', 66.67) + changes.set('Mossy key', 66.67); break; case 'true_true': - changes.set('Mossy key', 77.6) + changes.set('Mossy key', 77.6); break; } - + return changes; } - async checkBankBackground() { if (this.bitfield.includes(BitField.isModerator)) { return; diff --git a/src/tasks/minions/monsterActivity.ts b/src/tasks/minions/monsterActivity.ts index 32a0c8b43b..0f4a34cf3e 100644 --- a/src/tasks/minions/monsterActivity.ts +++ b/src/tasks/minions/monsterActivity.ts @@ -213,7 +213,11 @@ export const monsterTask: MinionTask = { hasSuperiors: superiorTable, inCatacombs: isInCatacombs, lootTableOptions: { - tertiaryItemPercentageChanges: user.buildTertiaryItemChanges(hasRingOfWealthI, isInWilderness, isOnTaskResult.isOnTask) + tertiaryItemPercentageChanges: user.buildTertiaryItemChanges( + hasRingOfWealthI, + isInWilderness, + isOnTaskResult.isOnTask + ) } };