From 821bad71615daac12f61d81ef1378ff4b7e67106 Mon Sep 17 00:00:00 2001 From: Dark <96085008+DarkWorldsArtist@users.noreply.github.com> Date: Tue, 29 Oct 2024 19:54:56 -0400 Subject: [PATCH] quick ordering fix --- src/tasks/minions/PrayerActivity/offeringActivity.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tasks/minions/PrayerActivity/offeringActivity.ts b/src/tasks/minions/PrayerActivity/offeringActivity.ts index a4268a9466..f925dd1783 100644 --- a/src/tasks/minions/PrayerActivity/offeringActivity.ts +++ b/src/tasks/minions/PrayerActivity/offeringActivity.ts @@ -30,10 +30,7 @@ export const offeringTask: MinionTask = { // Determine if the offered item is a bone or a prepared fish const bone = Prayer.Bones.find(bone => bone.inputId === boneID); const fish = Prayer.PreparedFish.find(fish => fish.inputId === boneID); // Assuming you can identify fish with boneID - const XPMod = 3.5; - let bonesLost = 0; - let newQuantity = quantity; // Initialize newQuantity if (bone) { // Logic for bones @@ -41,6 +38,7 @@ export const offeringTask: MinionTask = { const maxPK = quantity >= 27 ? 27 : quantity; const trips = Math.ceil(quantity / 27); let deathCounter = 0; + let bonesLost = 0; // Roll a 10% chance to get pked per trip for (let i = 0; i < trips; i++) { @@ -64,7 +62,7 @@ export const offeringTask: MinionTask = { } } - newQuantity = quantity - bonesLost + bonesSaved + zealBonesSaved; + const newQuantity = quantity - bonesLost + bonesSaved + zealBonesSaved; const xpReceived = newQuantity * bone.xp * XPMod;