Example #1
0
    def start_onmyoji(self):
        section = self.ui.tabWidget.currentIndex()
        # 读取配置
        self.get_conf(section)
        if section == 0:
            # 御魂
            if self.ui.mitama_single.isChecked():
                # 单刷
                self.fight = SingleFight()

            elif self.ui.mitama_driver.isChecked():
                # 司机
                self.fight = DriverFighter(self.ui.autoMark.isChecked())

            elif self.ui.mitama_passenger.isChecked():
                # 乘客
                self.fight = FighterPassenger()

            elif self.ui.mitama_dual.isChecked():
                # 双开
                self.fight = DualFighter(self.ui.autoMark.isChecked())

            elif self.ui.mitama_three.isChecked():
                self.fight = ThreePerson(self.ui.autoMark.isChecked())

        elif section == 1:
            self.fight = ExploreFight()

        task = threading.Thread(target=self.fight.start)
        task.start()
Example #2
0
    def start_onmyoji(self):
        section = self.ui.tabWidget.currentIndex()

        # 读取主要副本
        self.get_conf(section)

        if section == 0:
            # 御魂
            if self.ui.mitama_single.isChecked():
                # 单刷
                self.fight = SingleFight()

            elif self.ui.mitama_driver.isChecked():
                # 司机
                self.fight = DriverFighter()

            if self.ui.mitama_passenger.isChecked():
                # 乘客
                self.fight = FighterPassenger()

            if self.ui.mitama_dual.isChecked():
                # 双开
                self.fight = DualFighter()

        elif section == 1:
            # 御灵
            self.fight = GoryouFight()

        elif section == 2:
            # 探索
            self.fight = ExploreFight()

        task = threading.Thread(target=self.fight.start)
        task.start()
Example #3
0
def yuhun():
    '''御魂战斗'''
    if mode == 0:
        # 单刷
        fight = SingleFight()
        fight.start()
    
    if mode == 2:
        # 司机
        fight = DriverFighter()
        fight.start()
    
    if mode == 3:
        # 乘客
        fight = FighterPassenger()        
        fight.start()    
Example #4
0
    def start_onmyoji(self):
        # 读取配置
        self.get_conf()

        section = self.ui.tabWidget.currentIndex()
        if section == 0:
            # 御魂
            if mode == 0:
                # 单刷
                fight = SingleFight()
    
            if mode == 2:
                # 司机
                fight = DriverFighter()
    
            if mode == 3:
                # 乘客
                fight = FighterPassenger()
        
        elif section == 1:
            # 探索
            fight = ExploreFight()

        self.task = threading.Thread(target = fight.start)
        self.task.start()
Example #5
0
def init():
    conf = configparser.ConfigParser()
    # 读取配置文件
    conf.read('conf.ini', encoding="utf-8")

    # 设置缩放
    # Query DPI Awareness (Windows 10 and 8)
    awareness = ctypes.c_int()
    errorCode = ctypes.windll.shcore.GetProcessDpiAwareness(
        0, ctypes.byref(awareness))

    # Set DPI Awareness  (Windows 10 and 8)
    client = conf.getint('DEFAULT', 'client')
    if client == 0:
        errorCode = ctypes.windll.shcore.SetProcessDpiAwareness(0)
    else:
        errorCode = ctypes.windll.shcore.SetProcessDpiAwareness(1)

    # 读取主要副本
    section = conf.getint('DEFAULT', 'run_section')

    if section == 0:
        # 御魂
        mode = conf.getint('DEFAULT', 'run_mode')
        if mode == 0:
            # 单刷
            fight = SingleFight()

        elif mode == 1:
            # 司机
            fight = DriverFighter()

        elif mode == 2:
            # 乘客
            fight = FighterPassenger()

        elif mode == 3:
            # 双开
            fight = DualFighter()

    elif section == 1:
        # 御灵
        fight = GoryouFight()

    elif section == 2:
        # 探索
        fight = ExploreFight()

    fight.start()
Example #6
0
 def start(self):
     if self.run and self.tansuo > 0:
         self.switch_to_scene(4)
         tansuo = ExploreFight(max_tasks=self.tansuo, activate=False)
         tansuo.start()
     if self.run and self.yuhun > 0:
         self.switch_to_scene(7)
         yuhun = SingleFight(max_tasks=self.yuhun, activate=False)
         yuhun.start()
     if self.run and self.juexing > 0:
         self.switch_to_scene(6)
         juexing = SingleFight(max_tasks=self.juexing, activate=False)
         juexing.start()
     if self.run and self.tupo > 0:
         self.switch_to_scene(5)
         tupo = Breakthrough(max_tasks=self.tupo, activate=False)
         tupo.start()
Example #7
0
    def start_onmyoji(self):
        section = self.ui.tabWidget.currentIndex()

        # 读取配置
        self.get_conf(section)

        if section == 0:
            # 御魂
            if self.ui.mitama_single.isChecked():
                # 单刷
                self.fight = SingleFight()

            elif self.ui.mitama_driver.isChecked():
                # 司机
                self.fight = DriverFighter()

            elif self.ui.mitama_passenger.isChecked():
                # 乘客
                self.fight = FighterPassenger()

            elif self.ui.mitama_dual.isChecked():
                # 双开
                self.fight = DualFighter()

        elif section == 1:
            # 探索
            self.fight = ExploreFight()

        elif section == 2:
            # 百鬼夜行
            self.fight = Ghost()

        elif section == 3:
            # 结界突破
            if self.ui.individual.isChecked():
                # 个人突破
                self.fight = Breakthrough()

            elif self.ui.shack.isChecked():
                # 个人突破
                self.fight = ShackBreakthrough()

        elif section == 4:
            self.fight = Task()

        task = threading.Thread(target=self.fight.start)
        task.start()
Example #8
0
def init():
    conf = configparser.ConfigParser()
    # 读取配置文件
    conf.read('conf.ini', encoding="utf-8")

    # 读取主要副本
    section = conf.getint('DEFAULT', 'run_section')

    if section == 0:
        # 御魂
        mode = conf.getint('DEFAULT', 'run_mode')
        if mode == 0:
            # 单刷
            fight = SingleFight()

        elif mode == 1:
            # 司机
            fight = DriverFighter()

        elif mode == 2:
            # 乘客
            fight = FighterPassenger()

        elif mode == 3:
            # 双开
            fight = DualFighter()

    elif section == 1:
        # 御灵
        fight = GoryouFight()

    elif section == 2:
        # 探索
        fight = ExploreFight()

    fight.start()