def on(self, name, rate, duration=None): p = super().on(name, rate, duration) if p: from core.advbase import Debuff Debuff('{}_bog'.format(name), -0.5 * p, self.duration, 1, 'att', 'bog').on() return p
def oninit(self, adv): super().oninit(adv) from core.advbase import Debuff, EffectBuff, Timer self.sp_convert = adv.sp_convert self.s1 = adv.s1 self.s2 = adv.s2 self.ds_buff = Debuff('ds',-0.20,15) self.sp_regen_buff = EffectBuff('ds_sp', 90, lambda: self.sp_regen_timer.on(), lambda: self.sp_regen_timer.off()) self.sp_regen_timer = Timer(self.sp_regen, 1.99, 1)
def dmg_proc(self, name, amount): if name[0] == 'x' and self.s2_buff.get(): Debuff('s2_ab', 0.05, 5, self.s2_chance()).on()
def oninit(self, adv): super().oninit(adv) from core.advbase import Debuff self.ds_buff = Debuff('ds', -0.05, 10)