Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TastyPumPum committed Jul 14, 2024
1 parent 744f69d commit 7a446ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/lib/types/minions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export interface MonsterActivityTaskOptions extends ActivityTaskOptions {
pkEncounters?: number;
hasWildySupplies?: boolean;
isInWilderness?: boolean;
isUsingKonar?: boolean;
}

export interface ClueActivityTaskOptions extends ActivityTaskOptions {
Expand Down
6 changes: 5 additions & 1 deletion src/mahoji/lib/abstracted_commands/minionKill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ export async function minionKillCommand(
usersTask.currentTask !== null &&
usersTask.assignedTask.monsters.includes(monster.id);

let isUsingKonar = false;
if (isOnTask && usersTask.slayerMaster.id === 5) isUsingKonar = true;

if (monster.slayerOnly && !isOnTask) {
return `You can't kill ${monster.name}, because you're not on a slayer task.`;
}
Expand Down Expand Up @@ -960,7 +963,8 @@ export async function minionKillCommand(
died: hasDied,
pkEncounters: thePkCount,
hasWildySupplies,
isInWilderness
isInWilderness,
isUsingKonar
});
let response = `${minionName} is now killing ${quantity}x ${monster.name}, it'll take around ${formatDuration(
duration
Expand Down
6 changes: 3 additions & 3 deletions src/tasks/minions/monsterActivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export const monsterTask: MinionTask = {
died,
pkEncounters,
hasWildySupplies,
isInWilderness
isInWilderness,
isUsingKonar
} = data;

const monster = killableMonsters.find(mon => mon.id === monsterID)!;
Expand Down Expand Up @@ -256,8 +257,7 @@ export const monsterTask: MinionTask = {
loot.add(superiorTable?.kill(newSuperiorCount));
if (isInCatacombs) loot.add('Dark totem base', newSuperiorCount);
if (isInWilderness) loot.add("Larran's key", newSuperiorCount);
const usersTask = await getUsersCurrentSlayerInfo(user.id);
if (usersTask.currentTask?.slayer_master_id === 8) loot.add('Brimstone key', newSuperiorCount);
if (isUsingKonar) loot.add('Brimstone key', newSuperiorCount);
}

// Hill giant key wildy buff
Expand Down

0 comments on commit 7a446ca

Please sign in to comment.