Skip to content

Commit

Permalink
ProfileChanger: Added refresh option
Browse files Browse the repository at this point in the history
  • Loading branch information
dm94 committed Aug 17, 2023
1 parent f2ec956 commit e7083f8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/deeme/behaviours/ProfileChanger.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ private void changeAction() {
}
} else {
resetCounters();
if (config.reloadBot) {
Main.API.handleRefresh();
}
main.setConfig(config.BOT_PROFILE);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public class ProfileChangerConfig {
@Option("profile_changer.close_bot")
public boolean closeBot = false;

@Option("profile_changer.reload_bot")
public boolean reloadBot = false;

@Option("profile_changer.only_one_condition")
public boolean orConditional = false;

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/deeme/lang/strings_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ profile_changer.deaths_condition=Deaths condition
profile_changer.deaths_condition.max_deaths=Max deaths
profile_changer.close_bot=Close bot
profile_changer.close_bot.desc=Will close the bot instead of changing profile
profile_changer.reload_bot=Reload Bot
profile_changer.reload_bot.desc=It will Reload the bot when changing profile.
palladium_hangar.go_portal_change=Travel to portal before switch
palladium_hangar.go_portal_change.desc=Go to the portal to change the hangar
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/com/deeme/modules/astral/AstralGate.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public class AstralGate implements Module, InstructionProvider, Configurable<Ast
protected long nextCPUCheck = 0;
protected long nextWaveCheck = 0;

protected int waitTime = 10000;
protected int waitTime = 20000;

protected boolean repairShield = false;
protected boolean waveHasBeenAwaited = false;
Expand Down Expand Up @@ -231,6 +231,9 @@ private void waveLogic() {
}

private void preparingWaveLogic() {
if (astralPlus.allowedToEquip()) {
nextWaveCheck = 0;
}
if (nextWaveCheck > System.currentTimeMillis()) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "DmPlugin",
"author": "Dm94Dani",
"version": "2.0.3 beta 1",
"version": "2.0.3 beta 2",
"minVersion": "1.127",
"supportedVersion": "1.127",
"basePackage": "com.deeme",
Expand Down

0 comments on commit e7083f8

Please sign in to comment.