Skip to content

Commit

Permalink
Add ring of wealth i
Browse files Browse the repository at this point in the history
  • Loading branch information
TastyPumPum committed Oct 13, 2023
1 parent 0bdd66d commit 6a0a8cd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/lib/MUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,14 @@ GROUP BY data->>'clueID';`);
return this.caPoints() >= CombatAchievements[tier].rewardThreshold;
}

buildCATertiaryItemChanges() {
buildTertiaryItemChanges(ringOfWealthI: boolean) {
const changes = new Map();
if (ringOfWealthI) {
changes.set('Clue scroll (easy)', 50);
changes.set('Clue scroll (medium)', 50);
changes.set('Clue scroll (hard)', 50);
changes.set('Clue scroll (elite)', 50);
}
if (this.hasCompletedCATier('easy')) {
changes.set('Clue scroll (easy)', 5);
}
Expand Down
9 changes: 9 additions & 0 deletions src/lib/data/createables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2189,6 +2189,15 @@ const Createables: Createable[] = [
[itemID("Tarn's diary")]: 1
}
},
{
name: 'Ring of wealth (i)',
inputItems: new Bank({
'Ring of wealth': 1,
'Ring of wealth scroll': 1
}),
GPCost: 50_000,
outputItems: { [itemID('Ring of wealth (i)')]: 1 }
},
{
name: 'Strange hallowed tome',
inputItems: new Bank({
Expand Down
3 changes: 2 additions & 1 deletion src/tasks/minions/monsterActivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,15 @@ export const monsterTask: MinionTask = {

const superiorTable = isOnTaskResult.hasSuperiorsUnlocked && monster.superior ? monster.superior : undefined;
const isInCatacombs = !usingCannon ? monster.existsInCatacombs ?? undefined : undefined;
const ringOfWealthI = (user.gear.wildy.hasEquipped('Ring of wealth (i)') && monster.canBePked) as boolean;

const killOptions: MonsterKillOptions = {
onSlayerTask: isOnTaskResult.isOnTask,
slayerMaster: isOnTaskResult.isOnTask ? isOnTaskResult.slayerMaster.osjsEnum : undefined,
hasSuperiors: superiorTable,
inCatacombs: isInCatacombs,
lootTableOptions: {
tertiaryItemPercentageChanges: user.buildCATertiaryItemChanges()
tertiaryItemPercentageChanges: user.buildTertiaryItemChanges(ringOfWealthI)
}
};

Expand Down

0 comments on commit 6a0a8cd

Please sign in to comment.