Skip to content

Commit

Permalink
Adjust mining portent charges (#6001)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwjgit authored Aug 20, 2024
1 parent 190dff2 commit 08c2702
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/bso/divination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ export const portents: SourcePortent[] = [
description: 'Consumes stone spirits to grant extra mining XP, instead of extra ore.',
divinationLevelToCreate: 90,
cost: new Bank().add('Incandescent energy', 1200),
chargesPerPortent: 1000,
chargesPerPortent: 60 * 10,
addChargeMessage: portent =>
`You used a Spiritual mining portent, your next ${portent.charges_remaining}x stone spirits will grant XP instead of ore.`
`You used a Spiritual mining portent, it will turn stone spirits into extra mining XP, instead of ore, in your next ${portent.charges_remaining} minutes of mining.`
},
{
id: PortentID.PacifistPortent,
Expand Down
3 changes: 2 additions & 1 deletion src/tasks/minions/miningActivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export const miningTask: MinionTask = {
async run(data: MiningActivityTaskOptions) {
const { oreID, userID, channelID, duration, powermine } = data;
const { quantity } = data;
const minutes = Math.round(duration / Time.Minute);
const user = await mUserFetch(userID);
const ore = Mining.Ores.find(ore => ore.id === oreID)!;

Expand All @@ -264,7 +265,7 @@ export const miningTask: MinionTask = {
? await chargePortentIfHasCharges({
user,
portentID: PortentID.MiningPortent,
charges: amountOfSpiritsToUse
charges: minutes
})
: null;
const {
Expand Down

0 comments on commit 08c2702

Please sign in to comment.