diff options
author | syeyoung <cyong06@naver.com> | 2021-01-31 18:32:19 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-01-31 18:32:19 +0900 |
commit | edb59ef674fb5dd2db16e3149e6ad23209fe8a55 (patch) | |
tree | b8e0ee94a1987422e225138d24002fd917adbd32 /src/main/java/kr/syeyoung/dungeonsguide/features/impl | |
parent | 432f59f875eff0a30c3eb1f7a9914eab52688505 (diff) | |
download | Skyblock-Dungeons-Guide-edb59ef674fb5dd2db16e3149e6ad23209fe8a55.tar.gz Skyblock-Dungeons-Guide-edb59ef674fb5dd2db16e3149e6ad23209fe8a55.tar.bz2 Skyblock-Dungeons-Guide-edb59ef674fb5dd2db16e3149e6ad23209fe8a55.zip |
bomb defuse base, fix time score below 0
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/impl')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonScore.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonScore.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonScore.java index e121b660..6bf0b279 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonScore.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonScore.java @@ -157,7 +157,7 @@ public class FeatureDungeonScore extends GuiFeature { } else { timeModifier = Math.max(0, FeatureRegistry.DUNGEON_SBTIME.getTimeElapsed() / 1000 - 1200); } - time = (int) Math.floor(100 - 2.2 * timeModifier); + time = MathHelper.clamp_int((int) Math.floor(100 - 2.2 * timeModifier), 0, 100); } int bonus = 0; int tombs; |