Skip to content

Commit

Permalink
update notice about screen scale ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
9-9-9-9 committed Jan 15, 2022
1 parent 711cd15 commit 64d1d99
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -14,6 +14,8 @@ ___
___
Supports **English user interface** of [Bit Heroes on Steam](https://github.com/9-9-9-9/Bit-Heroes-bot/wiki/Does-this-bot-supports-Steam-version-of-Bit-Heroes%3F) and [Bit Heroes on web](https://www.kongregate.com/games/Juppiomenz/bit-heroes) + [mini-client](https://github.com/9-9-9-9/Bit-Heroes-bot/wiki/Function-%22client%22-(mini-client-on-Chrome))

**Beware** make sure your screen scale ratio is 100% [(Learn more)](https://www.windowscentral.com/how-set-custom-display-scaling-setting-windows-10)

### Contains the following functions:
1. [Auto fishing](https://github.com/9-9-9-9/Bit-Heroes-bot/wiki/Function-%22fishing%22)
2. [**ReRun** Dungeons and Raid](https://github.com/9-9-9-9/Bit-Heroes-bot/wiki/Function-%22rerun%22)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>bh.bot</groupId>
<artifactId>99bot</artifactId>
<version>2.8.2</version>
<version>2.8.3</version>

<dependencies>
<dependency>
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/bh/bot/Main.java
Expand Up @@ -511,8 +511,9 @@ public static void exit(int exitCode) {
System.exit(exitCode);
}

public static void warningEnergyRefill() {
Rad.pWarn(20,"Upon level-up, your current energy will be reset to your max energy value, no matter how much energy you currently have (10/500 => 500/500, 2.000/500 => 500/500). It's a good buff but there's a trap inside. So rich-kids, don't over drink your energy at one, excess energy will fly away for nothing and support team won't give you a hand on this bug. GL");
public static void warningSupport() {
Rad.pWarn(20,"Only support English interface");
Rad.pWarn(50,"Only support screen scale 100% (original) otherwise bot will working wrongly");
}

public static final int EXIT_CODE_SCREEN_RESOLUTION_ISSUE = 3;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/bh/bot/app/AfkApp.java
Expand Up @@ -224,7 +224,7 @@ private void doLoop(//
final Supplier<Boolean> isWorldBossBlocked = () -> !isNotBlocked(blockWorldBossUntil);
final Supplier<Boolean> isRaidBlocked = () -> !isNotBlocked(blockRaidUntil);

Main.warningEnergyRefill();
Main.warningSupport();

if (doRaid)
info(ColorizeUtil.formatInfo, "Raid: %s of %s", userConfig.getRaidModeDesc(), userConfig.getRaidLevelDesc());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/bh/bot/app/ReRunApp.java
Expand Up @@ -58,7 +58,7 @@ protected void internalRun(String[] args) {

private void doLoopClickImage(int loopCount, AtomicBoolean masterSwitch) {
info(ColorizeUtil.formatInfo, "\n\nStarting ReRun");
Main.warningEnergyRefill();
Main.warningSupport();
try {
final int mainLoopInterval = Configuration.Interval.Loop.getMainLoopInterval(getDefaultMainLoopInterval());

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/bh/bot/app/farming/AbstractDoFarmingApp.java
Expand Up @@ -111,7 +111,7 @@ protected void loop(int loopCount, AtomicBoolean masterSwitch) {
final int selectFightPvp = naBtnFight != null && this instanceof PvpApp ? userConfig.pvpTarget : 0;
final int offsetTargetPvp = selectFightPvp < 1 ? 0 : (selectFightPvp - 1) * Configuration.screenResolutionProfile.getOffsetDiffBetweenFightButtons();

Main.warningEnergyRefill();
Main.warningSupport();

long lastLoop = System.currentTimeMillis();

Expand Down

0 comments on commit 64d1d99

Please sign in to comment.