diff options
author | Luna <luna@alexia.lol> | 2024-08-17 09:30:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-17 09:30:23 +0200 |
commit | a4a6c98a60e9b994d953afa2c7481c2dd67d8de6 (patch) | |
tree | 347a3abce2cd3b6a6892c720c6fced9d9a47606a /src | |
parent | 46dcf1a9050deb7bab8e834e91ae39e818ac507d (diff) | |
download | skyhanni-a4a6c98a60e9b994d953afa2c7481c2dd67d8de6.tar.gz skyhanni-a4a6c98a60e9b994d953afa2c7481c2dd67d8de6.tar.bz2 skyhanni-a4a6c98a60e9b994d953afa2c7481c2dd67d8de6.zip |
Fix: Finnegan Perks (#2359)
Diffstat (limited to 'src')
4 files changed, 6 insertions, 16 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/Mayors.kt b/src/main/java/at/hannibal2/skyhanni/data/Mayors.kt index 975282a3a..53ebae1dd 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/Mayors.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/Mayors.kt @@ -45,10 +45,10 @@ enum class Mayor( FINNEGAN( "Finnegan", "§c", - Perk.FARMING_SIMULATOR, Perk.PELT_POCALYPSE, Perk.GOATED, Perk.BLOOMING_BUSINESS, + Perk.PEST_ERADICATOR, ), FOXY( "Foxy", @@ -189,10 +189,10 @@ enum class Perk(val perkName: String) { LONG_TERM_INVESTMENT("Long Term Investment"), // Finnegan - FARMING_SIMULATOR("Farming Simulator"), PELT_POCALYPSE("Pelt-pocalypse"), GOATED("GOATed"), BLOOMING_BUSINESS("Blooming Business"), + PEST_ERADICATOR("Pest Eradicator"), // Foxy SWEET_BENEVOLENCE("Sweet Benevolence"), @@ -224,9 +224,7 @@ enum class Perk(val perkName: String) { // Derpy TURBO_MINIONS("TURBO MINIONS!!!"), - AH_TAX("MOAR TAX!!!"), - - // I don't know what the perk is actually gonna be named + AH_TAX("MOAR TAX!!!"), // TODO: Change to actual perk name when known DOUBLE_MOBS_HP("DOUBLE MOBS HP!!!"), MOAR_SKILLZ("MOAR SKILLZ!!!"), ; diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt index b52b9f62b..c37eb41b7 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt @@ -120,13 +120,7 @@ object GardenCropMilestoneDisplay { val addedCounter = (counter - old).toInt() FarmingWeightDisplay.addCrop(crop, addedCounter) update() - // Farming Simulator: There is a 25% chance for Mathematical Hoes and the Cultivating Enchantment to count twice. - // 0.8 = 1 / 1.25 - crop.setCounter( - crop.getCounter() + if (GardenCropSpeed.finneganPerkActive()) { - (addedCounter.toDouble() * 0.8).toInt() - } else addedCounter - ) + crop.setCounter(crop.getCounter() + addedCounter) } cultivatingData[crop] = counter } catch (e: Throwable) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt index f4d954229..141c93ff1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt @@ -177,8 +177,6 @@ object GardenCropSpeed { secondsStopped = 0 } - fun finneganPerkActive() = Perk.FARMING_SIMULATOR.isActive - fun isEnabled() = GardenAPI.inGarden() fun CropType.getSpeed() = cropsPerSecond?.get(this) diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt index 65d4219f2..e2dac0f4c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator import at.hannibal2.skyhanni.config.features.misc.TrevorTheTrapperConfig.TrackerEntry import at.hannibal2.skyhanni.data.IslandType +import at.hannibal2.skyhanni.data.Perk import at.hannibal2.skyhanni.events.CheckRenderEntityEvent import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.LorenzChatEvent @@ -12,7 +13,6 @@ import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent import at.hannibal2.skyhanni.events.LorenzTickEvent import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent import at.hannibal2.skyhanni.events.SecondPassedEvent -import at.hannibal2.skyhanni.features.garden.farming.GardenCropSpeed import at.hannibal2.skyhanni.mixins.hooks.RenderLivingEntityHelper import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule import at.hannibal2.skyhanni.utils.ColorUtils.withAlpha @@ -144,7 +144,7 @@ object TrevorFeatures { } trapperPattern.matchMatcher(formattedMessage) { - timeUntilNextReady = if (GardenCropSpeed.finneganPerkActive()) 16 else 21 + timeUntilNextReady = if (Perk.PELT_POCALYPSE.isActive) 16 else 21 currentStatus = TrapperStatus.ACTIVE currentLabel = "§cActive Quest" trapperReady = false |