File tree Expand file tree Collapse file tree 2 files changed +21
-11
lines changed Expand file tree Collapse file tree 2 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 11---
2-
2+ # By Lizier
33 # [en_US] Time intervals configuration
44 #
55 time_intervals :
4545 # Default value: False
4646 #
4747 # [pt_BR]
48- # Limitação de Wave - Caso deseje limitar as Wave, mude a configuração para True
48+ # Limitação de Wave - Caso deseje limitar as Wave, mude a configuração para " True"
4949 # Valor padrão: False
50- limit_wave : True
50+ limit_wave : False
5151
5252 # [en_US]
5353 # Wave Limitation - Enter here the amount of Wave the Bot should play
5656 # [pt_BR]
5757 # Limitação de Wave - Informe aqui a quantidade de Wave que o Bot deve jogar
5858 # Valor padrão: 10
59- qtd_limit_wave : 6
59+ qtd_limit_wave : 10
6060
6161 # [en_US]
62- # Define here if at the end of the Wave Limit the bot should end the fight and reload the ships or just Surrender
63- # Default value: EndFight
62+ # Define here if at the end of the Wave Limit the bot should end the fight and reload the ships or just Surrender or two Actions.
63+ # This option will only work if limit_wave is set to "True"
64+ # Options: EndFight - Only Renew ships
65+ # Surrender - Only Surrender
66+ # EndFightAndSurrender - Renew ships and Surrender - Retur to first boss
6467 #
6568 # [pt_BR]
66- # Defina aqui se ao final do Wave Limit o bot deve encerrar a luta e recarregar as naves ou apenas Surrender
67- type_limit_wave : ' EndFight' # EndFight or Surrender
69+ # Defina aqui se ao final do Wave Limit o bot deve encerrar a luta e recarregar as naves ou apenas Surrender ou as duas ações.
70+ # Essa opção so vai funcionar se o limit_wave estiver marcado como "True"
71+ # Opções: EndFight - Apenas renova as Naves
72+ # Surrender - Apenas desiste da Luta
73+ # EndFightAndSurrender - Renova as Naves e Desiste da Luta - Volta para o 1 Boss
74+ type_limit_wave : ' EndFightAndSurrender' # EndFight or Surrender or EndFightAndSurrender
6875
6976 # ============================================================ #
7077 # [en_US] End - Edit this area according to your account configuration
Original file line number Diff line number Diff line change 1- # -*- coding: utf-8 -*-
1+ # -*- coding: utf-8 - Lizier - *-
22from ast import Return
33from cv2 import cv2
44
@@ -325,7 +325,10 @@ def refreshSpaceships(qtd):
325325 empty_scrolls_attempts = 0
326326 goToFight ()
327327 checkVictory ()
328- surrenderFight ()
328+
329+ #Check IF Type is EndFightAndSurrender for to return to first boss
330+ if (ct ['type_limit_wave' ] == "EndFightAndSurrender" ):
331+ surrenderFight ()
329332 else :
330333 reloadSpacheship ()
331334 refreshSpaceships (hero_clicks )
@@ -412,7 +415,7 @@ def checkLimitWave():
412415 if (count_victory >= qtdLimitWave ):
413416 count_victory = 0
414417 time .sleep (1 )
415- if (typeLimitWave == 'EndFight' ):
418+ if (typeLimitWave == 'EndFight' or typeLimitWave == 'EndFightAndSurrender' ):
416419 endFight ()
417420 else :
418421 surrenderFight ()
You can’t perform that action at this time.
0 commit comments