|
@@ -257,13 +257,14 @@ class task_fight_jina(dongri_task):
|
|
|
|
|
|
class task_fightMonster(dongri_task):
|
|
class task_fightMonster(dongri_task):
|
|
def __init__(self, add_strengh, fight_bigMonster, isSimple):
|
|
def __init__(self, add_strengh, fight_bigMonster, isSimple):
|
|
- super().__init__(f"战斗怪物")
|
|
|
|
self.add_strengh = add_strengh
|
|
self.add_strengh = add_strengh
|
|
self.isSimple = isSimple
|
|
self.isSimple = isSimple
|
|
if fight_bigMonster == True:
|
|
if fight_bigMonster == True:
|
|
|
|
+ super().__init__(f"战斗大怪物")
|
|
self.monster = monster_img.bigMonster
|
|
self.monster = monster_img.bigMonster
|
|
self.attack = monster_img.muti_team
|
|
self.attack = monster_img.muti_team
|
|
else:
|
|
else:
|
|
|
|
+ super().__init__(f"战斗小怪物")
|
|
self.monster = monster_img.wolf
|
|
self.monster = monster_img.wolf
|
|
self.attack = monster_img.attack
|
|
self.attack = monster_img.attack
|
|
|
|
|
|
@@ -313,7 +314,10 @@ class task_fightMonster(dongri_task):
|
|
class task_collect(dongri_task):
|
|
class task_collect(dongri_task):
|
|
def __init__(self, type = 0, isSimple = False):
|
|
def __init__(self, type = 0, isSimple = False):
|
|
self.isSimple = isSimple
|
|
self.isSimple = isSimple
|
|
- if type == 0:
|
|
|
|
|
|
+ if isinstance(type, (list, tuple)):
|
|
|
|
+ typeArr = type
|
|
|
|
+ type = typeArr[random.randint(0, len(typeArr) - 1)]
|
|
|
|
+ elif type == 0:
|
|
typeArr = [4,4,3,3,3,2,2,2,1,1]
|
|
typeArr = [4,4,3,3,3,2,2,2,1,1]
|
|
type = typeArr[random.randint(0, len(typeArr) - 1)]
|
|
type = typeArr[random.randint(0, len(typeArr) - 1)]
|
|
elif type == 5:
|
|
elif type == 5:
|
|
@@ -419,6 +423,7 @@ class task_checkStoreRoom(dongri_task):
|
|
|
|
|
|
myTimeSleep_big()
|
|
myTimeSleep_big()
|
|
yys_dragAuto(check_img.move_down)
|
|
yys_dragAuto(check_img.move_down)
|
|
|
|
+ myTimeSleep_big()
|
|
if waitClickImg_noWait_withBool((train_img.train_success, check_img.needgo), 2, 1) == False:
|
|
if waitClickImg_noWait_withBool((train_img.train_success, check_img.needgo), 2, 1) == False:
|
|
return False
|
|
return False
|
|
myTimeSleep_big()
|
|
myTimeSleep_big()
|
|
@@ -668,7 +673,7 @@ if __name__ == '__main__':
|
|
#task_fightMonster(False, True).run()
|
|
#task_fightMonster(False, True).run()
|
|
#task_checkHelp().run()
|
|
#task_checkHelp().run()
|
|
#task_checkStoreRoom().run()
|
|
#task_checkStoreRoom().run()
|
|
- #task_collect().run()
|
|
|
|
|
|
+ task_collect([4,3,2,1]).run()
|
|
#task_train().run()
|
|
#task_train().run()
|
|
#task_information().run()
|
|
#task_information().run()
|
|
#check_buildOrResearch().run()
|
|
#check_buildOrResearch().run()
|
|
@@ -679,4 +684,4 @@ if __name__ == '__main__':
|
|
#task_collect(4).run()
|
|
#task_collect(4).run()
|
|
#task_returnAllLine().run()
|
|
#task_returnAllLine().run()
|
|
#task_paticipateInTeam().run()
|
|
#task_paticipateInTeam().run()
|
|
- task_fight_jina(True).run()
|
|
|
|
|
|
+ #task_fight_jina(True).run()
|