示例#1
0
文件: su_fang.py 项目: zzonnee/dl
class Su_Fang(Adv):
    a3 = ('s',0.35)
    conf = {}
    conf['slots.a'] = Twinfold_Bonds()+The_Fires_of_Hate()
    conf['acl'] = """
        `dragon.act("c3 s end")
        `s3, not self.s3_buff
        `s2, fsc
        `s4, fsc
        `s1
        `fs, x=4
        """
    coab = ['Blade','Dragonyule_Xainfried','Lin_You']
    share = ['Curran']

    def fs_proc_alt(self, e):
        self.afflics.poison('fs', 120, 0.582)

    def prerun(self):
        conf_fs_alt = {'fs.dmg': 0.174, 'fs.hit': 6}
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
        self.s2_buff = Selfbuff('s2', 0.30, 15)

    def s1_proc(self, e):
        with KillerModifier('skiller', 'hit', 0.50, ['poison']):
            self.dmg_make(e.name, 5.58)
            if self.s2_buff.get():
                self.dmg_make(e.name, 2.60)
                self.hits += 2

    def s2_proc(self, e):
        self.fs_alt.on(1)
        self.s2_buff = Selfbuff(e.name, 0.30, 15).on()
示例#2
0
文件: vice.py 项目: Happytogepi/dl
class Vice(Adv):
    a1 = ('bk',0.35)
    conf = {}
    conf['slot.a'] = Twinfold_Bonds()+The_Plaguebringer()
    conf['slot.d'] = Shinobi()
    conf['acl'] = """
        `s3, not self.s3_buff
        `s1
        `s2
        `fs, x=5
        """
    conf['afflict_res.poison'] = 0

    def fs_proc_alt(self, e):
        self.afflics.poison('fs', 120, 0.582)

    def prerun(self):
        conf_fs_alt = {'fs.dmg': 0.174, 'fs.hit': 6}
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)

    def s1_proc(self, e):
        with KillerModifier('s1_killer', 'hit', 0.5, ['poison']):
            self.dmg_make("s1", 15.84)

    def s2_proc(self, e):
        self.fs_alt.on(1)
        with KillerModifier('s2_killer', 'hit', 0.5, ['poison']):
            self.dmg_make("s2", 16.77)
示例#3
0
文件: lin_you.py 项目: naqintosh/dl
class Lin_You(Adv):
    a1 = [('cc',0.10,'hp70'), ('cc',0.20,'hit25'), ('cc',0.20,'hit50')]
    a3 = ('sp',0.08)
    conf = {}
    conf['slots.a'] = The_Wyrmclan_Duo()+Primal_Crisis()
    conf['acl'] = """
        `dragon.act("c3 s end")
        `s3, not self.s3_buff
        `s2, s1.check()
        `s1
        `fs, self.hits <= 44 and self.fs_alt.uses > 0 and x=4
        """
    coab = ['Blade','Dragonyule_Xainfried','Axe2']

    def prerun(self):
        conf_fs_alt = {'fs.dmg': 2.59, 'fs.hit': 6}
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt))
        self.s2_buff = Spdbuff('s2_spd',0.20, 15)

    def s1_proc(self, e):
        if self.s2_buff.get():
            self.dmg_make(f'{e.name}_powerup', 1.86*3)
            self.s2_buff.buff_end_timer.add(self.s1.ac.getstartup()+self.s1.ac.getrecovery())
            self.hits += 3
            self.afflics.sleep(e.name, 150)
        self.fs_alt.on(3)

    def s2_proc(self, e):
        self.s2_buff.on()
示例#4
0
文件: melody.py 项目: Zeiin/dl
class Melody(Adv):
    a1 = ('cc', 0.15, 'hp100')

    conf = {}
    conf['slots.a'] = A_Dogs_Day() + From_Whence_He_Comes()
    conf['slots.d'] = Ariel()
    conf['acl'] = """
        `s3, not self.s3_buff
        `s1
        `fs, x=5
    """
    coab = ['Bow', 'Tobias', 'Tiki']

    def prerun(self):
        conf_fs_alt = {
            'fs.dmg': 3.40,
            'fs.recovery': 72 / 60.0,  # needs confirm
        }
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt))

    def s1_proc(self, e):
        self.fs_alt.on(1)

    def s2_proc(self, e):
        self.afflics.poison(e.name, 120, 0.582)
示例#5
0
文件: albert.py 项目: pfleg/dl
class Albert(Adv):
    a1 = ('fs', 0.5)
    conf = {}
    conf['acl'] = """
        `dragon, fsc
        `s2, s1.charged>=s1.sp-330
        `fs, s=2 and not self.afflics.paralysis.get()
        `s1, fsc
        `s3, fsc
        `s4
        `fs, seq=2
        """
    coab = ['Blade', 'Dagger', 'Peony']
    share = ['Ranzal']
    conf['afflict_res.paralysis'] = 0

    def fs_proc_alt(self, e):
        self.afflics.paralysis('fs', 100, 0.803)

    def prerun(self):
        conf_fs_alt = {
            'fs.dmg': 1.02,
            'fs.sp': 330,
            'fs.recovery': 26 / 60.0,
        }
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
        self.s2.autocharge_init(self.s2autocharge).on()
        self.s2buff = Selfbuff("s2_shapshift", 1, 20, 'ss', 'ss')
        self.a3 = Selfbuff('a2_str_passive', 0.25, 20, 'att', 'passive')

        self.fs_alt_timer = Timer(self.fs_alt_end)
        self.s1_hits = 6 if self.condition('big hitbox') else 4

    @staticmethod
    def prerun_skillshare(adv, dst):
        adv.s2buff = Dummy()

    def fs_alt_end(self, t):
        self.fs_alt.off()

    def s2autocharge(self, t):
        if not self.s2buff.get():
            self.s2.charge(160000.0 / 40)
            log('sp', 's2autocharge')

    def s1_proc(self, e):
        if self.s2buff.get():
            name = f'o_{e.name}_boost'
            self.dmg_make(name, 12.38 - 0.825)
            for _ in range(2, self.s1_hits + 1):
                self.dmg_make(name, 0.83)
                self.add_hits(1)
            self.s2buff.buff_end_timer.timing += 2.6
            self.a3.buff_end_timer.timing += 2.6

    def s2_proc(self, e):
        self.s2buff.on()
        self.a3.on()
        self.fs_alt.on(-1)
        self.fs_alt_timer(20)
示例#6
0
class Radiant_Xuan_Zang(Adv):
    a1 = ('prep', 100)
    a3 = ('dbt', 0.20)

    conf = staff_fs_conf.copy()
    conf['slots.a'] = Candy_Couriers() + Spirit_of_the_Season()
    conf['acl'] = """
        `dragon, x=1
        `s2
        `s1
        `s4
        `s3, x=5
        `fs, self.fs_alt.uses>0 and cancel
    """
    coab = ['Sharena', 'Blade', 'Peony']
    share = ['Curran']
    conf['afflict_res.paralysis'] = 0

    def fs_proc_alt(self, e):
        self.afflics.paralysis.res_modifier = 0.20
        Timer(self.paralysis_rate_reset).on(20)

    def paralysis_rate_reset(self, t):
        self.afflics.paralysis.res_modifier = 0

    def prerun(self):
        conf_fs_alt = {'fs.dmg': 8.88}
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
        self.xihe_gauge = 0
        self.xihe = {'s1': False, 's2': False}
        if self.condition('buff all team'):
            self.xihe_gauge_gain = 50
            self.buff_class = Teambuff
        else:
            self.xihe_gauge_gain = 20
            self.buff_class = Selfbuff

    def s1_proc(self, e):
        if self.xihe[e.name]:
            self.xihe[e.name] = False
            with KillerModifier('s1_killer', 'hit', 0.5, ['paralysis']):
                self.dmg_make(e.name, 18.80)
            Debuff(e.name, 0.25, 10, 1, 'attack').on()
        else:
            self.dmg_make(e.name, 16.1)
            Debuff(e.name, 0.10, 10, 0.70, 'attack').on()
            self.afflics.paralysis(e.name, 120, 0.97)

    def s2_proc(self, e):
        if self.xihe[e.name]:
            self.xihe[e.name] = False
            self.buff_class(e.name, 0.20, 15).on()
            self.inspiration.add(5, team=True)
        else:
            self.xihe_gauge += self.xihe_gauge_gain
            log('debug', 'xihe', self.xihe_gauge)
            if self.xihe_gauge >= 100:
                self.xihe_gauge = 0
                self.fs_alt.on(1)
                self.xihe = {'s1': True, 's2': True}
示例#7
0
文件: vice.py 项目: zzonnee/dl
class Vice(Adv):
    a1 = ('bk', 0.35)
    conf = {}
    conf['slots.a'] = Twinfold_Bonds() + The_Fires_of_Hate()
    conf['acl'] = """
        `dragon.act("c3 s end")
        `s3, not self.s3_buff
        `s4
        `s1
        `s2
        `fs, x=5
        """
    coab = ['Wand', 'Gala_Alex', 'Heinwald']
    conf['afflict_res.poison'] = 0
    share = ['Curran']

    def fs_proc_alt(self, e):
        self.afflics.poison('fs', 120, 0.582)

    def prerun(self):
        conf_fs_alt = {'fs.dmg': 0.174, 'fs.hit': 6}
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)

    def s1_proc(self, e):
        with KillerModifier('s1_killer', 'hit', 0.5, ['poison']):
            self.dmg_make(e.name, 15.84)

    def s2_proc(self, e):
        self.fs_alt.on(1)
        with KillerModifier('s2_killer', 'hit', 0.5, ['poison']):
            self.dmg_make(e.name, 16.77)
示例#8
0
 def prerun(self):
     conf_fs_alt = {
         'fs.dmg': 7.90,
         'fs.hit': 19,
         'fs.sp': 2400,
     }
     self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
示例#9
0
文件: hawk.py 项目: pfleg/dl
class Hawk(Adv):
    a1 = [('edge_stun', 50), ('edge_poison', 50)]
    a3 = [('k_stun', 0.4), ('k_poison', 0.3)]

    conf = {}
    conf['slots.a'] = Resounding_Rendition() + The_Fires_of_Hate()
    conf['acl'] = """
        # queue self.duration<=60 and prep and self.afflics.stun.resist
        # s2; s3; fs; s1, fsc; fs; s1, fsc; s1, cancel; s2, cancel
        # end
        `s3, not self.s3_buff
        `dragon.act('c3 s end'), s and self.duration >= 120
        `s2, self.fs_alt.uses=0 or (self.s2_mode=1)
        `fs, (s1.check() and self.fs_alt.uses>1) or (x=4 and self.s2_mode=0 and self.fs_alt.uses>0)
        `s1, fsc or s=1
        `s4, s or x=5
    """

    coab = ['Blade', 'Dragonyule_Xainfried', 'Sylas']
    share = ['Curran']
    conf['afflict_res.stun'] = 80
    conf['afflict_res.poison'] = 0

    def fs_proc_alt(self, e):
        self.afflics.stun('fs', 110)
        self.afflics.poison('fs', 120, 0.582)

    def prerun(self):
        conf_fs_alt = {
            'fs.dmg': 4.94,
            'fs.hit': 19,
            'fs.sp': 2400,
            'missile_iv.fs': 0.5
        }
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
        self.s2_mode = 0
        self.a_s2 = self.s2.ac
        self.a_s2a = S('s2', Conf({'startup': 0.10, 'recovery': 2.5}))

    def s1_proc(self, e):
        with KillerModifier('s1_stun_killer', 'hit', 3.3, ['stun']):
            self.dmg_make(e.name, 4.74)
        with KillerModifier('s1_poison_killer', 'hit', 2, ['poison']):
            self.dmg_make(e.name, 4.74)

    def s2_proc(self, e):
        if self.s2_mode == 0:
            self.fs_alt.on(2)
            self.s2.ac = self.a_s2a
        else:
            with KillerModifier('s2_killer', 'hit', 0.5, ['poison']):
                self.dmg_make(e.name, 9.48)
            self.conf.s2.startup = 0.25
            self.conf.s2.recovery = 0.9
            self.s2.ac = self.a_s2
            self.add_hits(3)
        self.s2_mode = (self.s2_mode + 1) % 2
示例#10
0
文件: hawk.py 项目: zzysan/dl
 def prerun(self):
     conf_fs_alt = {
         'fs.dmg': 4.94,
         'fs.hit': 19,
         'fs.sp': 2400,
     }
     self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
     self.s2_mode = 0
     self.a_s2 = self.s2.ac
     self.a_s2a = S('s2', Conf({'startup': 0.10, 'recovery': 2.5}))
示例#11
0
 def prerun(self):
     conf_fs_alt = {'fs.dmg': 8.88}
     self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
     self.xihe_gauge = 0
     self.xihe = {'s1': False, 's2': False}
     if self.condition('buff all team'):
         self.xihe_gauge_gain = 50
         self.buff_class = Teambuff
     else:
         self.xihe_gauge_gain = 20
         self.buff_class = Selfbuff
示例#12
0
    def prerun(self):
        self.a1_buffed = self.condition('a1 buff for 10s')
        self.phase['s1'] = 0

        conf_fs_alt = {
            'fs.dmg':0,
            'fs.sp' :0,
            'fs.charge': 30/60.0,
            'fs.startup': 20/60.0,
            'fs.recovery': 60/60.0,
        }
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
示例#13
0
文件: albert.py 项目: zzysan/dl
    def prerun(self):
        conf_fs_alt = {
            'fs.dmg': 1.02,
            'fs.sp': 330,
            'fs.recovery': 26 / 60.0,
        }
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
        self.s2.autocharge_init(self.s2autocharge).on()
        self.s2buff = Selfbuff("s2_shapshift", 1, 20, 'ss', 'ss')
        self.a3 = Selfbuff('a2_str_passive', 0.25, 20, 'att', 'passive')

        self.fs_alt_timer = Timer(self.fs_alt_end)
示例#14
0
文件: nefaria.py 项目: qwewqa/dl
    def prerun(self):
        conf_fs_alt = {
            'fs.dmg': 8.09,
            'fs.hit': 19,
            'fs.sp': 2400,
        }
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)

        if self.condition('hp100'):
            self.fullhp = 1
        else:
            self.fullhp = 0
示例#15
0
    def prerun(self):
        self.a1_buffed = self.condition('always in a1')
        self.s1p = 0

        conf_fs_alt = {
            'fs.dmg': 0,
            'fs.sp': 0,
            'fs.charge': 30 / 60.0,
            'fs.startup': 20 / 60.0,
            'fs.recovery': 60 / 60.0,
        }
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
示例#16
0
文件: nefaria.py 项目: qwewqa/dl
class Nefaria(Adv):
    comment = 's2 fs(precharge) s1 s1'
    a1 = ('k_poison', 0.3)
    a3 = ('k_blind', 0.4)
    conf = {}
    conf['slot.d'] = Shinobi()
    conf['slot.a'] = Resounding_Rendition() + The_Fires_of_Hate()
    conf['acl'] = """
        `fs, self.fs_alt.uses > 0 and s1.check()
        `s2, s1.check()
        `s1
        `s3, x=4 or x=5
        """
    # conf['acl'] = """
    #     `fs, self.fs_alt.uses > 0 and x=4
    #     `s1, fsc or x=1 or not self.s3_buff
    #     `s2
    #     `s3, not self.s3_buff
    #     """

    conf['afflict_res.blind'] = 80
    conf['afflict_res.poison'] = 0

    def fs_proc_alt(self, e):
        self.afflics.blind('s2_fs', 110 + self.fullhp * 60)

    def prerun(self):
        conf_fs_alt = {
            'fs.dmg': 8.09,
            'fs.hit': 19,
            'fs.sp': 2400,
        }
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)

        if self.condition('hp100'):
            self.fullhp = 1
        else:
            self.fullhp = 0

    def s1_proc(self, e):
        with KillerModifier('s1killer', 'hit', 0.74, ['blind', 'poison']):
            self.dmg_make('s1', 1.06)
            self.hits += 1
            self.afflics.poison('s1', 70 + self.fullhp * 60, 0.582)
            self.dmg_make('s1', 7 * 1.06)
            self.hits += 7

    def s2_proc(self, e):
        self.fsacharge = 1
        self.fs_alt.on(1)
示例#17
0
文件: kuhai.py 项目: Happytogepi/dl
 def prerun(self):
     self.fshit = 2
     self.alttimer = Timer(self.altend)
     conf_fs_alt = {
         'fs.dmg': 0,
         'fs.sp': 330,
         'fs.charge': 2 / 60.0,  # needs confirm
         'fs.startup': 31 / 60.0,
         'fs.recovery': 33 / 60.0,
         'x2fs.startup': 16 / 60.0,
         'x2fs.recovery': 33 / 60.0,
         'x3fs.startup': 16 / 60.0,
         'x3fs.recovery': 33 / 60.0,
     }
     self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
示例#18
0
文件: vida.py 项目: Happytogepi/dl
class Vida(Adv):
    a1 = ('fs',0.30)
    conf = {}
    conf['acl'] = """
        `s3, not self.s3_buff
        `s1
        `fs, x=5
        """

    def prerun(self):
        conf_fs_alt = {'fs.dmg': 0.110, 'fs.hit': 6}
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt))

    def s2_proc(self, e):
        self.fs_alt.on(3)
示例#19
0
文件: hawk.py 项目: Happytogepi/dl
class Hawk(Adv):
    a1 = [('edge_stun', 50), ('edge_poison', 50)]
    a3 = [('k_stun', 0.4), ('k_poison', 0.3)]
    conf = {}
    conf['slot.a'] = Resounding_Rendition() + The_Fires_of_Hate()
    conf['acl'] = """
        `dragon.act("c3 s end")
        `fs, s=2
        `s2, s1.check()
        `s1, cancel
    """
    coab = ['Blade', 'Dragonyule_Xainfried', 'Sylas']
    conf['afflict_res.stun'] = 80
    conf['afflict_res.poison'] = 0

    def fs_proc_alt(self, e):
        self.afflics.stun('fs', 110)
        self.afflics.poison('fs', 120, 0.582)

    def prerun(self):
        conf_fs_alt = {
            'fs.dmg': 4.94,
            'fs.hit': 19,
            'fs.sp': 2400,
        }
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
        self.s2_mode = 0
        self.a_s2 = self.s2.ac
        self.a_s2a = S('s2', Conf({'startup': 0.10, 'recovery': 2.5}))

    def s1_proc(self, e):
        with KillerModifier('s1_stun_killer', 'hit', 3.3, ['stun']):
            self.dmg_make('s1', 4.74)
        with KillerModifier('s1_poison_killer', 'hit', 2, ['poison']):
            self.dmg_make('s1', 4.74)

    def s2_proc(self, e):
        if self.s2_mode == 0:
            self.fs_alt.on(2)
            self.s2.ac = self.a_s2a
        else:
            with KillerModifier('s2_killer', 'hit', 0.5, ['poison']):
                self.dmg_make('s2', 9.48)
            self.conf.s2.startup = 0.25
            self.conf.s2.recovery = 0.9
            self.s2.ac = self.a_s2
            self.hits += 3
        self.s2_mode = (self.s2_mode + 1) % 2
示例#20
0
文件: peony.py 项目: zzysan/dl
    def prerun(self):
        self.s1_shift = 0
        conf_fs_alt = {
            'fs.dmg': 0,
            'fs.sp': 0,
            'fs.charge': 30 / 60.0,
            'fs.startup': 20 / 60.0,
            'fs.recovery': 60 / 60.0,
        }
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
        self.fs_str = Teambuff('fs_str', 0.10, 10, 'att', 'buff')
        self.fs_spd = Spdbuff('fs_spd', 0.10, 10, wide='team')

        self.a1_is_cd = False
        self.a1_charge_defer = False
        self.a1_cd_timer = Timer(self.a1_cd)
示例#21
0
    def prerun(self):
        self.s1p = 0
        conf_fs_alt = {
            'fs.dmg': 0,
            'fs.sp': 0,
            'fs.charge': 30 / 60.0,
            'fs.startup': 20 / 60.0,
            'fs.recovery': 60 / 60.0,
        }
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)

        self.dragonform.dragon_gauge = 100
        self.dragonform.conf.act = 'c3 s c3 end'
        self.odbk = 991202 + 792960
        self.ehjp = 4488479
        self.dmgsum = 0
        adv.adv_test.team_dps = 0
        self.broken_punisher = Selfbuff(name='candy_couriers',
                                        value=0.25,
                                        duration=-1,
                                        mtype='att',
                                        morder='bk')
        self.a1_zones = []
        for _ in range(4):
            buff = Selfbuff('a1_str', 0.25, 10)
            buff.bufftime = buff.nobufftime
            self.a1_zones.append(buff)
示例#22
0
文件: bellina.py 项目: zzonnee/dl
    def prerun(self):
        self.dragondrive_buff = Selfbuff('dragondrive', 0.35, -1, 's', 'passive')
        self.dragonform.set_dragondrive(self.dragondrive_buff)
        Event('dragon_end').listener(self.dragondrive_on) # cursed
        Event('dragondrive_end').listener(self.dragondrive_off)

        self.dragondrive_x = X_alt(self, 'dragondrive', dragondrive_auto_conf, x_proc=self.l_dragondrive_x)
        self.fs_alt = Fs_alt(self, Conf(dragondrive_fs_conf), self.fs_proc_alt)
        
        self.a_s1 = self.s1.ac
        self.a_s1a = S('s1', Conf({'startup': 0.10, 'recovery': 1.10}))

        self.a_s2 = self.s2.ac
        self.a_s2a = S('s2', Conf({'startup': 0.10, 'recovery': 2.70}))

        self.fsf_a = Fs('fsf', self.conf.fsf)
示例#23
0
文件: ku_hai.py 项目: zzonnee/dl
class Ku_Hai(Adv):
    comment = 'c2+fs during s2'
    a1 = ('cd', 0.15)
    a3 = ('cd', 0.15, 'hp70')
    conf = {}
    # c1+fs_alt has higher dps and sp rate than c2+fs_alt with or without stellar show  (x)
    # c2+fs_alt fs can init quicker than c1+fs_alt
    conf['slots.a'] = The_Lurker_in_the_Woods() + The_Shining_Overlord()
    conf['slots.d'] = AC011_Garland()
    conf['acl'] = '''
        `dragon.act("c3 s c1 end")
        `s3, not self.s3_buff
        `s1, fsc
        `s2
        `s4
        `fs, seq=2 and self.fs_alt.get()
        `fs, seq=3
        '''
    coab = ['Blade', 'Dragonyule_Xainfried', 'Akasha']
    share = ['Curran']

    def prerun(self):
        self.fshit = 2
        self.alttimer = Timer(self.altend)
        conf_fs_alt = {
            'fs.dmg': 0.83 * 2,
            'fs.sp': 330,
            'fs.charge': 2 / 60.0,  # needs confirm
            'fs.startup': 31 / 60.0,
            'fs.recovery': 33 / 60.0,
            'fs.hit': 2,
            'x2fs.startup': 16 / 60.0,
            'x2fs.recovery': 33 / 60.0,
            'x3fs.startup': 16 / 60.0,
            'x3fs.recovery': 33 / 60.0,
        }
        if self.condition('big hitbox'):
            conf_fs_alt['fs.dmg'] += 0.83
            conf_fs_alt['fs.hit'] += 1
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt))

    def altend(self, t):
        self.fs_alt.off()

    def s2_proc(self, e):
        self.fs_alt.on(-1)
        self.alttimer.on(10)
示例#24
0
文件: vida.py 项目: zzysan/dl
class Vida(Adv):
    a1 = ('fs', 0.30)
    conf = {}
    conf['acl'] = """
        `dragon
        `s3, not self.s3_buff
        `s1
        `fs, x=5
        """
    coab = ['Ieyasu', 'Wand', 'Tiki']

    def prerun(self):
        conf_fs_alt = {'fs.dmg': 0.110, 'fs.hit': 6}
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt))

    def s2_proc(self, e):
        self.fs_alt.on(3)
示例#25
0
文件: nefaria.py 项目: slushiedee/dl
class Nefaria(Adv):
    comment = 's2 fs(precharge) s1 s1'

    a1 = [('edge_blind', 60, 'hp100'), ('edge_poison', 60, 'hp100')]
    a3 = [('k_blind', 0.4), ('k_poison', 0.3)]

    conf = {}
    conf['slots.a'] = Resounding_Rendition() + The_Fires_of_Hate()
    conf['acl'] = """
        `dragon.act("c3 s end")
        `s3, not self.s3_buff
        `fs, self.fs_alt.uses > 0 and x=4
        `s1, fsc or x=1 or not self.s3_buff
        `s4
        `s2
        """
    coab = ['Wand', 'Gala_Alex', 'Heinwald']
    share = ['Curran']

    conf['afflict_res.blind'] = 80
    conf['afflict_res.poison'] = 0

    def fs_proc_alt(self, e):
        self.afflics.blind('s2_fs', 110)

    def prerun(self):
        conf_fs_alt = {
            'fs.dmg': 7.90,
            'fs.hit': 19,
            'fs.sp': 2400,
            'missile_iv.fs': 0.5
        }
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)

    def s1_proc(self, e):
        with KillerModifier('s1killer', 'hit', 0.74, ['blind', 'poison']):
            self.dmg_make(e.name, 1.06)
            self.hits += 1
            self.afflics.poison(e.name, 70, 0.582)
            self.dmg_make(e.name, 7 * 1.06)
            self.hits += 7

    def s2_proc(self, e):
        self.fsacharge = 1
        self.fs_alt.on(1)
示例#26
0
class Vida(Adv):
    a1 = ('fs', 0.30)
    conf = {}
    conf['acl'] = """
        `dragon, x=5
        `s3, not self.s3_buff
        `s4
        `s1
        `fs, x=5
        """
    coab = ['Ieyasu', 'Wand', 'Axe2']
    share = ['Curran']

    def prerun(self):
        conf_fs_alt = {'fs.dmg': 2.04, 'fs.hit': 6}
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt))

    def s2_proc(self, e):
        self.fs_alt.on(3)
示例#27
0
文件: ku_hai.py 项目: zzonnee/dl
 def prerun(self):
     self.fshit = 2
     self.alttimer = Timer(self.altend)
     conf_fs_alt = {
         'fs.dmg': 0.83 * 2,
         'fs.sp': 330,
         'fs.charge': 2 / 60.0,  # needs confirm
         'fs.startup': 31 / 60.0,
         'fs.recovery': 33 / 60.0,
         'fs.hit': 2,
         'x2fs.startup': 16 / 60.0,
         'x2fs.recovery': 33 / 60.0,
         'x3fs.startup': 16 / 60.0,
         'x3fs.recovery': 33 / 60.0,
     }
     if self.condition('big hitbox'):
         conf_fs_alt['fs.dmg'] += 0.83
         conf_fs_alt['fs.hit'] += 1
     self.fs_alt = Fs_alt(self, Conf(conf_fs_alt))
示例#28
0
文件: xander.py 项目: zzonnee/dl
 def prerun(self):
     # identical to granzal FS in frames
     conf_fs_alt = {
         'fs.dmg': 0.0,
         'fs.sp': 330,
         'fs.hit': 3,
         'fs.charge': 2 / 60.0,  # needs confirm
         'fs.startup': 66 / 60.0,
         'x1fs.startup': 75 / 60.0,
         'x2fs.startup': 60 / 60.0,
         'x3fs.startup': 60 / 60.0,
         'fs.recovery': 13 / 60.0,
         'x1fs.recovery': 13 / 60.0,
         'x2fs.recovery': 13 / 60.0,
         'x3fs.recovery': 13 / 60.0,
     }
     self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)
     self.born_ruler = Selfbuff('born_ruler', 0.05, -1, 'att', 'buff')
     self.born_ruler_1 = Selfbuff('born_ruler_1', 1, -1, 'xunder', 'buff')
     self.born_ruler_2 = Selfbuff('born_ruler_2', 1, -1, 'xunder', 'buff')
示例#29
0
class Fritz(Adv):
    conf = {}
    conf['acl'] = """
        `dragon
        `s1, x=5 and cancel or fsc
        `s2
        `s3
        `fs, x=5
        """
    coab = ['Blade', 'Halloween_Elisanne', 'Peony']

    def fs_proc_alt(self, e):
        self.afflics.stun('fs', 100)

    def prerun(self):
        conf_fs_alt = {'fs.dmg': 4.03, 'fs.hit': 11}
        self.fs_alt = Fs_alt(self, Conf(conf_fs_alt), self.fs_proc_alt)

    def s2_proc(self, e):
        self.fs_alt.on(3)
示例#30
0
文件: zena.py 项目: zzonnee/dl
 def prerun(self):
     conf_fs_alt = {
         'fs.dmg': 0,
         'fs.sp': 0,
         'fs.charge': 30 / 60.0,
         'fs.startup': 20 / 60.0,
         'fs.recovery': 60 / 60.0,
     }
     self.fs_alt = Fs_alt(self, Conf(conf_fs_alt))
     self.s2_extra_hit_rate = 8  # number of hits per second
     self.s2_timers = []
     Event('dragon').listener(self.s2_clear)