From 08c27021bfa6951bfa5957f1d2043f946ab7cd6e Mon Sep 17 00:00:00 2001 From: nwjgit <69014816+nwjgit@users.noreply.github.com> Date: Tue, 20 Aug 2024 12:45:35 -0500 Subject: [PATCH] Adjust mining portent charges (#6001) --- src/lib/bso/divination.ts | 4 ++-- src/tasks/minions/miningActivity.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/bso/divination.ts b/src/lib/bso/divination.ts index 1e0d3b4622..2535457efe 100644 --- a/src/lib/bso/divination.ts +++ b/src/lib/bso/divination.ts @@ -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, diff --git a/src/tasks/minions/miningActivity.ts b/src/tasks/minions/miningActivity.ts index 2f93938b93..4b5c42d16e 100644 --- a/src/tasks/minions/miningActivity.ts +++ b/src/tasks/minions/miningActivity.ts @@ -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)!; @@ -264,7 +265,7 @@ export const miningTask: MinionTask = { ? await chargePortentIfHasCharges({ user, portentID: PortentID.MiningPortent, - charges: amountOfSpiritsToUse + charges: minutes }) : null; const {