import adv_test import adv def module(): return Malora class Malora(adv.Adv): a1 = ('bk',0.2) def init(this): if this.condition('spawn c1+fs'): this.conf['acl'] = """ `s1,fsc `s2,fsc `s3,fsc `fs,seq=1 """ if __name__ == '__main__': conf = {} conf['acl'] = """ `s1, seq=5 or fsc `s2, seq=5 or fsc `s3, seq=5 or fsc """ adv_test.test(module(), conf, verbose=0)
def foo(): adv_test.test(module(), conf, verbose=0, mass=1)
import adv_test from adv import * import mikoto import albert from slot.d import * def module(): return Benchmark class Benchmark(albert.Albert): name = 'albert' pass if __name__ == '__main__': conf = {} conf['acl'] = """ `s2 `s1, this.s2.charged > 900 `s3 `fs, seq=2 and not this.s2buff.get() """ import cProfile p = cProfile.Profile() p.enable() adv_test.test(module(), conf, verbose=0, mass=1) p.print_stats()
def c_init(this): this.o_init() Selfbuff('sleep', 0.2, 14, 'att', 'killer').on() def pre(this): if this.condition('sleep'): this.init, this.o_init = this.c_init, this.init def s1_proc(this, e): if random.random() < 0.8: Bleed("s1_bleed", 1.32).on() def s2_proc(this, e): this.s2fscharge = 3 def fs_proc(this, e): if this.s2fscharge > 0: this.s2fscharge -= 1 this.dmg_make("o_s2fs", 0.38) if __name__ == '__main__': conf = {} conf['acl'] = """ `s1 `s2 `fs,seq=5 """ adv_test.test(module(), conf, mass=1)
import adv_test import adv def module(): return Althemia class Althemia(adv.Adv): conf = {} conf["mod_a1"] = ("s", 'passive', 0.3, 'hp100') if __name__ == '__main__': conf = {} conf['acl'] = """ `s1, seq=5 and cancel `s2, seq=5 and cancel `s3 `s2, s=1 """ adv_test.test(module(), conf)
if this.crisis > 0: this.dmg_make('o_s1_crisis', this.crisis*10.84) def s2_proc(this, e): if this.crisis == -1: this.crisis = 1*0.8*0.8 else: Selfbuff('s2str',0.15,10).on() if __name__ == '__main__': #conf = {} #conf['acl'] = """ # `s1, this.energy() < 5 # `s3, seq=5 and this.energy() = 5 # """ conf = {} conf['acl'] = """ `s1 `s2 `s3, seq=5 """ adv_test.test(module(), conf, verbose=-2, mass=0)
def s2_proc(this, e): Selfbuff('s2str', 0.15, 10).on() if __name__ == '__main__': #conf = {} #conf['acl'] = """ # `s1, this.energy() < 5 # `s3, seq=5 and this.energy() = 5 # """ conf = {} conf['acl'] = """ `s2 `s1 `s3, seq=5 `fs, seq=5 and s1.sp-212<=s1.charged and s1.charged<=s1.sp """ # conf['acl'] = """ # `s2, pin='prep' # `s2, seq=5 # `s1 # `s3, fsc # `s3, seq=5 and s1.charged < s1.sp-200 # `fs, seq=5 and s1.sp-212<=s1.charged and s1.charged<=s1.sp # `fs, seq=5 and s1.sp > 3000 and s3.charged>=s3.sp # """ adv_test.test(module(), conf, verbose=-2, mass=1, duration=120)
Timer(this.a1_cooldown).on(15) log('cd', 'a1', 'start') Selfbuff('a1', 0.15, 10, 'def').on() #Teambuff('db_test',0.10,15).on() Event('defchain')() else: log('cd', 'a1', 'trigger failed') def charge(this, name, sp): if this.s1.check(): return Adv.charge(this, name, sp) r = Adv.charge(this, name, sp) if this.s1.check(): this.a1_act() return r if __name__ == '__main__': conf = {} conf['slot.d'] = Sakuya() conf['slot.a'] = RR() + bane() #conf['slot.a'] = RR()+CE() conf['acl'] = """ `s1 `s2, s=1 `s3 """ adv_test.test(module(), conf, verbose=0, duration=120, mass=1) #logcat(['cd'])