Ejemplo n.º 1
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()
Ejemplo n.º 2
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()
Ejemplo n.º 3
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()
Ejemplo n.º 4
0
def yuhun():
    '''御魂战斗'''
    if mode == 0:
        # 单刷
        fight = SingleFight()
        fight.start()
    
    if mode == 2:
        # 司机
        fight = DriverFighter()
        fight.start()
    
    if mode == 3:
        # 乘客
        fight = FighterPassenger()        
        fight.start()