Skip to content

Commit

Permalink
add ca tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Feb 27, 2024
1 parent c2a3b15 commit eca27da
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/lib/combat_achievements/easy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { warmGear } from '../data/filterables';
import { SkillsEnum } from '../skilling/types';
import { Requirements } from '../structures/Requirements';
import getOSItem from '../util/getOSItem';
import resolveItems from '../util/resolveItems';
import { isCertainMonsterTrip } from './caUtils';
import { type CombatAchievement } from './combatAchievements';

Expand Down Expand Up @@ -413,5 +414,30 @@ export const easyCombatAchievements: CombatAchievement[] = [
[Monsters.Wyrm.id]: 1
}
})
},
{
id: 34,
name: 'Sit Rat',
type: 'restriction',
monster: 'Scurrius',
desc: 'Finish off Scurrius with a ratbane weapon.',
rng: {
chancePerKill: 1,
hasChance: (data, user) =>
isCertainMonsterTrip(Monsters.Scurrius.id)(data) &&
[resolveItems(['Bone mace', 'Bone staff', 'Bone shortbow'])].some(i => user.hasEquipped(i))
}
},
{
id: 35,
name: 'Scurrius Novice',
type: 'kill_count',
monster: 'Scurrius',
desc: 'Kill Scurrius once.',
requirements: new Requirements().add({
kcRequirement: {
[Monsters.Scurrius.id]: 1
}
})
}
];
34 changes: 34 additions & 0 deletions src/lib/combat_achievements/medium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,5 +491,39 @@ export const mediumCombatAchievements: CombatAchievement[] = [
wintertodt: 10
}
})
},
{
id: 141,
name: 'Scurrius Champion',
type: 'kill_count',
monster: 'Scurrius',
desc: 'Kill Scurrius 10 times.',
requirements: new Requirements().add({
kcRequirement: {
[Monsters.Scurrius.id]: 10
}
})
},
{
id: 142,
name: 'Perfect Scurrius',
type: 'perfection',
monster: 'Scurrius',
desc: 'Kill Scurrius in a private instance without taking damage from the following attacks: Tail Swipe and Falling Bricks. Pray correctly against the following attacks: Flying Fur and Bolts of Electricity.',
rng: {
chancePerKill: 10,
hasChance: isCertainMonsterTrip(Monsters.Scurrius.id)
}
},
{
id: 143,
name: 'Efficient Pest Control',
type: 'mechanical',
monster: 'Scurrius',
desc: "Kill 6 Giant Rats within Scurrius' lair in 3 seconds.",
rng: {
chancePerKill: 10,
hasChance: isCertainMonsterTrip(Monsters.Scurrius.id)
}
}
];

0 comments on commit eca27da

Please sign in to comment.