diff options
author | syeyoung <cyougn06@naver.com> | 2021-12-19 15:38:25 +0900 |
---|---|---|
committer | syeyoung <cyougn06@naver.com> | 2021-12-19 15:38:25 +0900 |
commit | ef92a621e5a5033677fe7c372bbdbebdf7d58396 (patch) | |
tree | 5e047c78804736c1645ec4204acd9e67c7123a83 /src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss | |
parent | f3238060717b001d6721915e696f30875c2ad0c2 (diff) | |
download | Skyblock-Dungeons-Guide-ef92a621e5a5033677fe7c372bbdbebdf7d58396.tar.gz Skyblock-Dungeons-Guide-ef92a621e5a5033677fe7c372bbdbebdf7d58396.tar.bz2 Skyblock-Dungeons-Guide-ef92a621e5a5033677fe7c372bbdbebdf7d58396.zip |
- Ceil total secrets
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureWarningOnPortal.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureWarningOnPortal.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureWarningOnPortal.java index 2c852fdd..1ee76e91 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureWarningOnPortal.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureWarningOnPortal.java @@ -122,7 +122,7 @@ public class FeatureWarningOnPortal extends SimpleFeature implements StyledTextP texts.add(new StyledText("Total Secrets","field_name")); texts.add(new StyledText(": ","field_separator")); texts.add(new StyledText(scoreCalculation.getSecrets() +"/" + scoreCalculation.getEffectiveTotalSecrets()+" of "+scoreCalculation.getTotalSecrets(),"field_value")); - texts.add(new StyledText(" ("+(int)(scoreCalculation.getSecrets() / (float)scoreCalculation.getEffectiveTotalSecrets() * 100.0f)+"% "+(int)(scoreCalculation.getSecrets() / (float)scoreCalculation.getEffectiveTotalSecrets() * 40.0f)+" Explorer)\n","field_etc")); + texts.add(new StyledText(" ("+(int)(scoreCalculation.getSecrets() / (float)scoreCalculation.getEffectiveTotalSecrets() * 100.0f)+"% "+(int)Math.ceil(scoreCalculation.getSecrets() / (float)scoreCalculation.getEffectiveTotalSecrets() * 40.0f)+" Explorer)\n","field_etc")); texts.add(new StyledText("Crypts","field_name")); |