Skip to content

Commit

Permalink
Dung & Runecraft
Browse files Browse the repository at this point in the history
  • Loading branch information
I-am-TURBO committed Feb 22, 2024
1 parent de7239d commit be67927
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lib/skilling/skills/dung/dungDbFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export function calcMaxFloorUserCanDo(user: MUser) {

export function calcUserGorajanShardChance(user: MUser) {
return calcGorajanShardChance({
hasMasterCape: user.hasEquipped('Dungeoneering master cape'),
hasMasterCape: user.hasEquippedOrInBank('Dungeoneering master cape'),
dungLevel: user.skillLevel(SkillsEnum.Dungeoneering),
hasRingOfLuck: user.hasEquipped('Ring of luck')
hasRingOfLuck: user.hasEquippedOrInBank('Ring of luck')
});
}

Expand Down
6 changes: 3 additions & 3 deletions src/mahoji/commands/runecraft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const runecraftCommand: OSBMahojiCommand = {
tripLength /= 2;
boosts.push('2x from Obis (3x more essence)');
}
if (user.hasEquipped('Runecraft master cape')) {
if (user.hasEquippedOrInBank('Runecraft master cape')) {
tripLength /= 2;
boosts.push(`${Emoji.RunecraftMasterCape} 2x faster`);
}
Expand Down Expand Up @@ -254,8 +254,8 @@ export const runecraftCommand: OSBMahojiCommand = {
let removeTalismanAndOrRunes = new Bank();
let hasRingOfTheElements = false;
if (runeObj.inputTalisman) {
const tomeOfFire = user.hasEquipped(['Tome of fire', 'Tome of fire (empty)']) ? 0 : 7;
const tomeOfWater = user.hasEquipped(['Tome of water', 'Tome of water (empty)']) ? 0 : 7;
const tomeOfFire = user.hasEquippedOrInBank(['Tome of fire', 'Tome of fire (empty)']) ? 0 : 7;
const tomeOfWater = user.hasEquippedOrInBank(['Tome of water', 'Tome of water (empty)']) ? 0 : 7;
const magicImbueRuneCost = determineRunes(
user,
new Bank({ 'Astral rune': 2, 'Fire rune': tomeOfFire, 'Water rune': tomeOfWater })
Expand Down

0 comments on commit be67927

Please sign in to comment.