-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* now flag allow passing empty param * warning when persuade screen appears * auto bribe (persuade) kaleido * temp dev feature * change format notice when new update available * fix bug detect screen steam Co-authored-by: 9-9-9-9 <9-9-9-9>
- Loading branch information
Showing
23 changed files
with
317 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package bh.bot.common.types; | ||
|
||
public enum Familiar { | ||
Kaleido | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package bh.bot.common.types.flags; | ||
|
||
import bh.bot.app.AbstractApplication; | ||
import bh.bot.app.AfkApp; | ||
import bh.bot.app.ReRunApp; | ||
import bh.bot.app.farming.AbstractDoFarmingApp; | ||
import bh.bot.common.exceptions.InvalidFlagException; | ||
import bh.bot.common.exceptions.NotSupportedException; | ||
import bh.bot.common.types.Familiar; | ||
|
||
public class FlagBribe extends FlagPattern<Familiar> { | ||
|
||
@Override | ||
protected Familiar internalParseParam(String paramPart) throws InvalidFlagException { | ||
String[] spl = paramPart.toLowerCase().split("[\\,\\;]"); | ||
for (String s : spl) { | ||
switch (s) { | ||
case "kaleido": | ||
return Familiar.Kaleido; | ||
default: | ||
throw new NotSupportedException(String.format("Unknown value '%s' of flag %s", s, getCode())); | ||
} | ||
} | ||
throw new InvalidFlagException(String.format("Passing invalid value for flag %s", getCode())); | ||
} | ||
|
||
@Override | ||
public boolean isAllowParam() { | ||
return true; | ||
} | ||
|
||
@Override | ||
protected boolean isAllowMultiple() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean isGlobalFlag() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "bribe"; | ||
} | ||
|
||
@Override | ||
public String getDescription() { | ||
return "Auto bribe with gems"; | ||
} | ||
|
||
@Override | ||
protected boolean internalCheckIsSupportedByApp(AbstractApplication instance) { | ||
return instance instanceof AfkApp | ||
|| instance instanceof ReRunApp | ||
|| instance instanceof AbstractDoFarmingApp; | ||
} | ||
|
||
} |
Oops, something went wrong.