def get_adv(name): conf = Conf(load_adv_json(name)) wt = conf.c.wt base = baseconfs[wt] baseconf = Conf(base) if bool(conf.c.spiral): baseconf.update(baseconf.lv2) del baseconf["lv2"] if wt == "gun" and len(conf.c.gun) == 1: # move gun[n] to base combo target = conf.c.gun[0] for xn, xconf in list(baseconf.find(r"^(x\d|fsf?)_gun\d$")): if int(xn[-1]) == target: baseconf[xn.split("_")[0]] = xconf del baseconf[xn] # ban fsf on gun2 if conf.c.gun[0] == 2: baseconf.cannot_fsf = True conf.update(baseconf, rebase=True) return conf
def get_adv(name): conf = Conf(load_adv_json(name)) wt = conf.c.wt base = baseconfs[wt] conf.update(Conf(base), rebase=True) if bool(conf.c.spiral): conf.update(conf.lv2) del conf['lv2'] return conf
def oninit(self, adv): super().oninit(adv) gauge_iv = min(int(adv.duration/12), 15) from core.dragonform import DragonForm self.adv = adv if 'dragonform' in adv.conf: name = type(adv).__name__ dconf = Conf(self.default_dragonform) dconf.update(adv.conf.dragonform) dconf.gauge_iv = gauge_iv self.adv.dragonform = DragonForm(name, dconf, adv, adv.ds_proc) else: name = type(self).__name__ dconf = Conf({**self.default_dragonform, **self.dragonform}) dconf.gauge_iv = gauge_iv self.adv.dragonform = DragonForm(name, dconf, adv, self.ds_proc)
def get_adv(name): conf = Conf(load_adv_json(name)) wt = conf.c.wt base = baseconfs[wt] conf.update(Conf(base), rebase=True) if bool(conf.c.spiral): conf.update(conf.lv2) del conf['lv2'] if wt == 'gun' and len(conf.c.gun) == 1: # move gun[n] to base combo target = conf.c.gun[0] for xn, xconf in list(conf.find(r'^(x\d|fs)_gun\d$')): if int(xn[-1]) == target: conf[xn.split('_')[0]] = xconf del conf[xn] return conf
conf.update( { "xtype" : "ranged" , "x1.dmg" : 0.98 , "x1.sp" : 130 , "x1.startup" : 18/60.0 , "x1.recovery" : 33/60.0 , "x2.dmg" : 0.53*2 , "x2.sp" : 200 , "x2.startup" : 0 , "x2.recovery" : 31/60.0 , "x3.dmg" : 0.36*3 , "x3.sp" : 240 , "x3.startup" : 0 , "x3.recovery" : 53/60.0 , "x4.dmg" : 0.78*2 , "x4.sp" : 430 , "x4.startup" : 0 , "x4.recovery" : 64/60.0 , "x5.dmg" : 0.3605*4+0.618 , "x5.sp" : 600 , "x5.startup" : 0 , #"x5.recovery" : 68/60.0 , "x5.recovery" : 29/60.0 , "fs._startup" : 0 , "fs._recovery" : 29/60.0 , "fs.dmg" : 0.9*2 , "fs.sp" : 400 , "fs.startup" : 42/60.0 , "fs.recovery" : 81/60.0 , "dodge.recovery" : 43/60.0 , "missile_iv" : { #"fs" : 0.7/2 , #"x1" : 0.7 , #"x2" : 0.7 , #"x3" : 0.7 , #"x4" : 0.7 , #"x5" : 0.7 , "fs" : 0 , "x1" : 0 , "x2" : 0 , "x3" : 0 , "x4" : 0 , "x5" : 0 , }, })
conf.update({ "xtype": "ranged", "x1.dmg": 0.30, "x1.sp": 80, "x1.startup": 18 / 60.0, "x1.recovery": 33 / 60.0, "x2.dmg": 0.30, "x2.sp": 80, "x2.startup": 18 / 60.0, "x2.recovery": 33 / 60.0, "x3.dmg": 0.30, "x3.sp": 80, "x3.startup": 18 / 60.0, "x3.recovery": 33 / 60.0, "x4.dmg": 0.30, "x4.sp": 80, "x4.startup": 18 / 60.0, "x4.recovery": 33 / 60.0, "x5.dmg": 0.30, "x5.sp": 80, "x5.startup": 18 / 60.0, "x5.recovery": 33 / 60.0, "fs._startup": 0, "fs._recovery": 29 / 60.0, "fs.dmg": 0.90, "fs.sp": 400, "fs.startup": 42 / 60.0, "fs.recovery": 81 / 60.0, "dodge.recovery": 43 / 60.0, "missile_iv": { #"fs" : 0.7/2 , #"x1" : 0.7 , #"x2" : 0.7 , #"x3" : 0.7 , #"x4" : 0.7 , #"x5" : 0.7 , "fs": 0, "x1": 0, "x2": 0, "x3": 0, "x4": 0, "x5": 0, }, })