diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-25 04:22:54 +0200 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-25 04:22:54 +0200 |
| commit | 2ceaf10eb8cc7a78f0679a07c85c95edb1a03003 (patch) | |
| tree | 078760f77b75acaccaaa48c87b40b4fa47481eda /src/main/java/at/hannibal2/skyhanni/features/nether | |
| parent | a2ea62c88e4b7d25b27ccfde3d4d94d39c0a419f (diff) | |
| download | skyhanni-2ceaf10eb8cc7a78f0679a07c85c95edb1a03003.tar.gz skyhanni-2ceaf10eb8cc7a78f0679a07c85c95edb1a03003.tar.bz2 skyhanni-2ceaf10eb8cc7a78f0679a07c85c95edb1a03003.zip | |
repeatSeconds
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/nether')
4 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazes.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazes.kt index 14ed0e2ff..fb6095059 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazes.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazes.kt @@ -26,7 +26,7 @@ class AshfangBlazes { fun onTick(event: LorenzTickEvent) { if (!isEnabled()) return - if (event.isMod(20)) { + if (event.repeatSeconds(1)) { checkNearAshfang() } diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangHideParticles.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangHideParticles.kt index dc4ff43d7..82d5113c4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangHideParticles.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangHideParticles.kt @@ -19,7 +19,7 @@ class AshfangHideParticles { fun onTick(event: LorenzTickEvent) { if (!LorenzUtils.inSkyBlock) return - if (event.isMod(60)) { + if (event.repeatSeconds(3)) { nearAshfang = DamageIndicatorManager.getDistanceTo(BossType.NETHER_ASHFANG) < 40 } } diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/CrimsonIsleReputationHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/CrimsonIsleReputationHelper.kt index 579c6858b..491c310b7 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/CrimsonIsleReputationHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/CrimsonIsleReputationHelper.kt @@ -68,7 +68,7 @@ class CrimsonIsleReputationHelper(skyHanniMod: SkyHanniMod) { updateRender() } - if (event.isMod(60)) { + if (event.repeatSeconds(3)) { TabListData.getTabList() .filter { it.contains("Reputation:") } .forEach { diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt index 048210679..5c0b7bf83 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt @@ -51,11 +51,11 @@ class DailyQuestHelper(val reputationHelper: CrimsonIsleReputationHelper) { fun onTick(event: LorenzTickEvent) { if (!isEnabled()) return - if (event.isMod(20)) { + if (event.repeatSeconds(1)) { checkInventoryForTrophyFish() } - if (event.isMod(60)) { + if (event.repeatSeconds(3)) { checkInventoryForFetchItem() } } |
