Skip to content

Commit

Permalink
Update Wyrm Agility pet rate (#6146)
Browse files Browse the repository at this point in the history
Co-authored-by: GC <[email protected]>
  • Loading branch information
nwjgit and gc authored Oct 27, 2024
1 parent 954141a commit 6148d18
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/skilling/skills/agility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const courses: Course[] = [
xp: agilLevel => (agilLevel >= 62 ? 650 : 520),
lapTime: 60,
cantFail: true,
petChance: 50_000, //TODO: Update with real rate when it's confirmed
petChance: agilLevel => (agilLevel >= 62 ? 25_406 : 28_503),
requiredQuests: [QuestID.ChildrenOfTheSun]
}
];
Expand Down
2 changes: 1 addition & 1 deletion src/lib/skilling/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export interface Course {
marksPer60?: number;
lapTime: number;
cantFail?: boolean;
petChance: number;
petChance: number | ((agilityLevel: number) => number);
aliases: string[];
qpRequired?: number;
requiredQuests?: QuestID[];
Expand Down
6 changes: 5 additions & 1 deletion src/tasks/minions/agilityActivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ export const agilityTask: MinionTask = {
}.\n${xpRes}${monkeyStr}`;

// Roll for pet
const { petDropRate } = skillingPetDropRate(user, SkillsEnum.Agility, course.petChance);
const { petDropRate } = skillingPetDropRate(
user,
SkillsEnum.Agility,
typeof course.petChance === 'number' ? course.petChance : course.petChance(currentLevel)
);
if (roll(petDropRate / quantity)) {
loot.add('Giant squirrel');
str += "\nYou have a funny feeling you're being followed...";
Expand Down

0 comments on commit 6148d18

Please sign in to comment.