aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-02 09:21:53 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-02 09:21:53 +0200
commit656e5fc05156e2d95ce61ff4d12e37e78a3888d7 (patch)
tree3866545200e2526a82f9f80ec893a151b47b3b3c /src/main/java
parentd725572d7a3a41d0c7a588f16f6c9b6bf6aa9ad8 (diff)
downloadskyhanni-656e5fc05156e2d95ce61ff4d12e37e78a3888d7.tar.gz
skyhanni-656e5fc05156e2d95ce61ff4d12e37e78a3888d7.tar.bz2
skyhanni-656e5fc05156e2d95ce61ff4d12e37e78a3888d7.zip
Garden Money Per Hour: Fixed wrong NPC price when merge seeds is enabled
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt
index c00e2c6e0..31eea71e2 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt
@@ -329,7 +329,8 @@ object CropMoneyDisplay {
if (debug) {
debugList.addAsSingletonList(" added seedsPerHour: $seedsPerHour")
}
- npcPrice += internalName.getNpcPrice() * seedsPerHour
+ val factor = NEUItems.getMultiplier(internalName).second
+ npcPrice += internalName.getNpcPrice() * seedsPerHour / factor
sellOffer += it.buyPrice * seedsPerHour
instantSell += it.sellPrice * seedsPerHour
}