""" Weapon Enchant """ def physical_attack_power_enchant(value): return {"physical_attack_power_base": value} def magical_attack_power_enchant(value): return {"magical_attack_power_base": value} """ Spread """ def agility_spread(value): return {"agility_base": value} def strength_spread(value): return {"strength_base": value} def spirit_spread(value): return {"spirit_base": value} def spunk_spread(value): return {"spunk_base": value} def physical_spread(value1, value2): return {"physical_attack_power_base": value1, "all_critical_strike_base": value2, "surplus": value2} def magical_spread(value1, value2): return {"magical_attack_power_base": value1, "all_critical_strike_base": value2, "surplus": value2} def guild_spread(value): return {"surplus": value, "strain_base": value} def boiled_fish_spread(value): return {"surplus": value, "strain_base": value} def guild_food(value): return {"strain_base": value} """ Major Food """ def agility_food(value): return {"agility_base": value} def strength_food(value): return {"strength_base": value} def spirit_food(value): return {"spirit_base": value} def spunk_food(value): return {"spunk_base": value} """ Minor Food """ def physical_attack_power_food(value): return {"physical_attack_power_base": value} def magical_attack_power_food(value): return {"magical_attack_power_base": value} def surplus_food(value): return {"surplus": value} def haste_food(value): return {"haste_base": value} def all_overcome_food(value): return {"physical_overcome_base": value, "magical_overcome_base": value} def all_critical_strike_food(value): return {"all_critical_strike_base": value} """ Major Potion """ def agility_potion(value): return {"agility_base": value} def strength_potion(value): return {"strength_base": value} def spirit_potion(value): return {"spirit_base": value} def spunk_potion(value): return {"spunk_base": value} """ Minor Potion """ def physical_attack_power_potion(value): return {"physical_attack_power_base": value} def magical_attack_power_potion(value): return {"magical_attack_power_base": value} def surplus_potion(value): return {"surplus": value} def haste_potion(value): return {"haste_base": value} def all_overcome_potion(value): return {"physical_overcome_base": value, "magical_overcome_base": value} def all_critical_strike_potion(value): return {"all_critical_strike_base": value} """ Wine """ def agility_wine(value): return {"agility_base": value} def strength_wine(value): return {"strength_base": value} def spirit_wine(value): return {"spirit_base": value} def spunk_wine(value): return {"spunk_base": value} def haste_wine(value): return {"haste_base": value} """ Snack """ def physical_attack_power_snack(value): return {"physical_attack_power_base": value} def magical_attack_power_snack(value): return {"magical_attack_power_base": value} def strain_snack(value): return {"strain_base": value} def critical_snack(value): return {"all_critical_strike_base": value} def overcome_snack(value): return {"physical_overcome_base": value, "magical_overcome_base": value} class CONSUMABLES_NUMBER: major_food_max: int = 347 major_food_min: int = 173 physical_food_max: int = 696 physical_food_min: int = 348 magical_food_max: int = 831 magical_food_min: int = 415 minor_food_max: int = 1545 minor_food_min: int = 773 major_potion_max: int = 446 major_potion_min: int = 223 physical_potion_max: int = 895 physical_potion_min: int = 448 magical_potion_max: int = 1068 magical_potion_min: int = 534 minor_potion_max: int = 1987 minor_potion_min: int = 993 physical_enchant_max: int = 597 physical_enchant_min: int = 298 magical_enchant_max: int = 712 magical_enchant_min: int = 356 minor_snack_max: int = 1934 minor_snack_min: int = 858 physical_snack: int = 866 magical_snack: int = 1038 major_wine: int = 256 haste_wine: int = 1144 guild_spread: int = 234 guild_food: int = 517 major_spread: int = 396 physical_spread: int = 398 magical_spread: int = 475 minor_spread: int = 883 boiled_fish_max: int = 400 boiled_fish_min: int = 100 CONSUMABLES = { f"杂锦鱼球粥({CONSUMABLES_NUMBER.major_food_max}身法)": agility_food(CONSUMABLES_NUMBER.major_food_max), f"杂碎汤({CONSUMABLES_NUMBER.major_food_min}身法)": agility_food(CONSUMABLES_NUMBER.major_food_min), f"三鲜粥({CONSUMABLES_NUMBER.major_food_max}力道)": strength_food(CONSUMABLES_NUMBER.major_food_max), f"三鲜汤({CONSUMABLES_NUMBER.major_food_min}力道)": strength_food(CONSUMABLES_NUMBER.major_food_min), f"咸骨粥({CONSUMABLES_NUMBER.major_food_max}根骨)": spirit_food(CONSUMABLES_NUMBER.major_food_max), f"老火骨汤({CONSUMABLES_NUMBER.major_food_min}根骨)": spirit_food(CONSUMABLES_NUMBER.major_food_min), f"鱼片砂锅粥({CONSUMABLES_NUMBER.major_food_max}元气)": spunk_food(CONSUMABLES_NUMBER.major_food_max), f"鱼头豆腐汤({CONSUMABLES_NUMBER.major_food_min}元气)": spunk_food(CONSUMABLES_NUMBER.major_food_min), f"太后饼({CONSUMABLES_NUMBER.physical_food_max}外攻)": physical_attack_power_food(CONSUMABLES_NUMBER.physical_food_max), f"煎饼果子({CONSUMABLES_NUMBER.physical_food_min}外攻)": physical_attack_power_food(CONSUMABLES_NUMBER.physical_food_min), f"灌汤包({CONSUMABLES_NUMBER.magical_food_max}内攻)": magical_attack_power_food(CONSUMABLES_NUMBER.magical_food_max), f"鲜肉包子({CONSUMABLES_NUMBER.magical_food_min}内攻)": magical_attack_power_food(CONSUMABLES_NUMBER.magical_food_min), f"白肉血肠({CONSUMABLES_NUMBER.minor_food_max}破招)": surplus_food(CONSUMABLES_NUMBER.minor_food_max), f"红烧扣肉({CONSUMABLES_NUMBER.minor_food_max}加速)": haste_food(CONSUMABLES_NUMBER.minor_food_max), f"红烧排骨({CONSUMABLES_NUMBER.minor_food_max}破防)": all_overcome_food(CONSUMABLES_NUMBER.minor_food_max), f"酸菜鱼({CONSUMABLES_NUMBER.minor_food_max}会心)": all_critical_strike_food(CONSUMABLES_NUMBER.minor_food_max), f"毛血旺({CONSUMABLES_NUMBER.minor_food_min}破招)": surplus_food(CONSUMABLES_NUMBER.minor_food_min), f"栗子烧肉({CONSUMABLES_NUMBER.minor_food_min}加速)": haste_food(CONSUMABLES_NUMBER.minor_food_min), f"水煮肉片({CONSUMABLES_NUMBER.minor_food_min}破防)": all_overcome_food(CONSUMABLES_NUMBER.minor_food_min), f"鱼香肉丝({CONSUMABLES_NUMBER.minor_food_min}会心)": all_critical_strike_food(CONSUMABLES_NUMBER.minor_food_min), f"上品轻身丹({CONSUMABLES_NUMBER.major_potion_max}身法)": agility_potion(CONSUMABLES_NUMBER.major_potion_max), f"中品轻身丹({CONSUMABLES_NUMBER.major_potion_min}身法)": agility_potion(CONSUMABLES_NUMBER.major_potion_min), f"上品大力丸({CONSUMABLES_NUMBER.major_potion_max}力道)": strength_potion(CONSUMABLES_NUMBER.major_potion_max), f"中品大力丸({CONSUMABLES_NUMBER.major_potion_min}力道)": strength_potion(CONSUMABLES_NUMBER.major_potion_min), f"上品静心丸({CONSUMABLES_NUMBER.major_potion_max}根骨)": spirit_potion(CONSUMABLES_NUMBER.major_potion_max), f"中品静心丸({CONSUMABLES_NUMBER.major_potion_min}根骨)": spirit_potion(CONSUMABLES_NUMBER.major_potion_min), f"上品聚魂丹({CONSUMABLES_NUMBER.major_potion_max}元气)": spunk_potion(CONSUMABLES_NUMBER.major_potion_max), f"中品聚魂丹({CONSUMABLES_NUMBER.major_potion_min}元气)": spunk_potion(CONSUMABLES_NUMBER.major_potion_min), f"上品亢龙散({CONSUMABLES_NUMBER.physical_potion_max}外攻)": physical_attack_power_potion(CONSUMABLES_NUMBER.physical_potion_max), f"中品亢龙散({CONSUMABLES_NUMBER.physical_potion_min}外攻)": physical_attack_power_potion(CONSUMABLES_NUMBER.physical_potion_min), f"上品展凤散({CONSUMABLES_NUMBER.magical_potion_max}内攻)": magical_attack_power_potion(CONSUMABLES_NUMBER.magical_potion_max), f"中品展凤散({CONSUMABLES_NUMBER.magical_potion_min}内攻)": magical_attack_power_potion(CONSUMABLES_NUMBER.magical_potion_min), f"上品凝神散({CONSUMABLES_NUMBER.minor_potion_max}破招)": surplus_potion(CONSUMABLES_NUMBER.minor_potion_max), f"上品活气散({CONSUMABLES_NUMBER.minor_potion_max}加速)": haste_potion(CONSUMABLES_NUMBER.minor_potion_max), f"上品破秽散({CONSUMABLES_NUMBER.minor_potion_max}破防)": all_overcome_potion(CONSUMABLES_NUMBER.minor_potion_max), f"上品玉璃散({CONSUMABLES_NUMBER.minor_potion_max}会心)": all_critical_strike_potion(CONSUMABLES_NUMBER.minor_potion_max), f"中品凝神散({CONSUMABLES_NUMBER.minor_potion_min}破招)": surplus_potion(CONSUMABLES_NUMBER.minor_potion_min), f"中品活气散({CONSUMABLES_NUMBER.minor_potion_min}加速)": haste_potion(CONSUMABLES_NUMBER.minor_potion_min), f"中品破秽散({CONSUMABLES_NUMBER.minor_potion_min}破防)": all_overcome_potion(CONSUMABLES_NUMBER.minor_potion_min), f"中品玉璃散({CONSUMABLES_NUMBER.minor_potion_min}会心)": all_critical_strike_potion(CONSUMABLES_NUMBER.minor_potion_min), f"瀑沙熔锭({CONSUMABLES_NUMBER.physical_enchant_max}外攻)": physical_attack_power_enchant(CONSUMABLES_NUMBER.physical_enchant_max), f"瀑沙磨石({CONSUMABLES_NUMBER.physical_enchant_min}外攻)": physical_attack_power_enchant(CONSUMABLES_NUMBER.physical_enchant_min), f"坠宵熔锭({CONSUMABLES_NUMBER.magical_enchant_max}内攻)": magical_attack_power_enchant(CONSUMABLES_NUMBER.magical_enchant_max), f"坠宵磨石({CONSUMABLES_NUMBER.magical_enchant_min}内攻)": magical_attack_power_enchant(CONSUMABLES_NUMBER.magical_enchant_min), f"创意料理({CONSUMABLES_NUMBER.physical_snack})外攻": physical_attack_power_snack(CONSUMABLES_NUMBER.physical_snack), f"创意料理({CONSUMABLES_NUMBER.magical_snack})内攻": magical_attack_power_snack(CONSUMABLES_NUMBER.magical_snack), f"创意料理({CONSUMABLES_NUMBER.minor_snack_max})无双": strain_snack(CONSUMABLES_NUMBER.minor_snack_max), f"创意料理({CONSUMABLES_NUMBER.minor_snack_max})会心": critical_snack(CONSUMABLES_NUMBER.minor_snack_max), f"创意料理({CONSUMABLES_NUMBER.minor_snack_max})破防": overcome_snack(CONSUMABLES_NUMBER.minor_snack_max), f"关外白酒·旬又三({CONSUMABLES_NUMBER.major_wine}身法)": agility_wine(CONSUMABLES_NUMBER.major_wine), f"汾酒·旬又三({CONSUMABLES_NUMBER.major_wine}力道)": strength_wine(CONSUMABLES_NUMBER.major_wine), f"高粱酒·旬又三({CONSUMABLES_NUMBER.major_wine}根骨)": spirit_wine(CONSUMABLES_NUMBER.major_wine), f"状元红·旬又三({CONSUMABLES_NUMBER.major_wine}元气)": spunk_wine(CONSUMABLES_NUMBER.major_wine), f"女儿红·旬又三({CONSUMABLES_NUMBER.haste_wine}加速)": haste_wine(CONSUMABLES_NUMBER.haste_wine), "guild_spread": guild_spread(CONSUMABLES_NUMBER.guild_spread), "guild_food": guild_food(CONSUMABLES_NUMBER.guild_food), f"水晶芙蓉宴({CONSUMABLES_NUMBER.major_spread}身法)": agility_spread(CONSUMABLES_NUMBER.major_spread), f"水晶芙蓉宴({CONSUMABLES_NUMBER.major_spread}力道)": strength_spread(CONSUMABLES_NUMBER.major_spread), f"水晶芙蓉宴({CONSUMABLES_NUMBER.major_spread}根骨)": spirit_spread(CONSUMABLES_NUMBER.major_spread), f"水晶芙蓉宴({CONSUMABLES_NUMBER.major_spread}元气)": spunk_spread(CONSUMABLES_NUMBER.major_spread), f"玉笛谁家听落梅({CONSUMABLES_NUMBER.physical_spread}外攻{CONSUMABLES_NUMBER.minor_spread}会心/破招)": physical_spread(CONSUMABLES_NUMBER.physical_spread, CONSUMABLES_NUMBER.minor_spread), f"二十四桥明月夜({CONSUMABLES_NUMBER.magical_spread}内攻{CONSUMABLES_NUMBER.minor_spread}会心/破招)": magical_spread(CONSUMABLES_NUMBER.magical_spread, CONSUMABLES_NUMBER.minor_spread), f"炼狱水煮鱼({CONSUMABLES_NUMBER.boiled_fish_min}破招/无双)": boiled_fish_spread(CONSUMABLES_NUMBER.boiled_fish_min), f"百炼水煮鱼({CONSUMABLES_NUMBER.boiled_fish_max}破招/无双)": boiled_fish_spread(CONSUMABLES_NUMBER.boiled_fish_max) } BOILED_FISH = [ f"炼狱水煮鱼({CONSUMABLES_NUMBER.boiled_fish_min}破招/无双)", f"百炼水煮鱼({CONSUMABLES_NUMBER.boiled_fish_max}破招/无双)" ] FOODS = { "身法": [ f"杂锦鱼球粥({CONSUMABLES_NUMBER.major_food_max}身法)", f"杂碎汤({CONSUMABLES_NUMBER.major_food_min}身法)", ], "力道": [ f"三鲜粥({CONSUMABLES_NUMBER.major_food_max}力道)", f"三鲜汤({CONSUMABLES_NUMBER.major_food_min}力道)" ], "根骨": [ f"咸骨粥({CONSUMABLES_NUMBER.major_food_max}根骨)", f"老火骨汤({CONSUMABLES_NUMBER.major_food_min}根骨)" ], "元气": [ f"鱼片砂锅粥({CONSUMABLES_NUMBER.major_food_max}元气)", f"鱼头豆腐汤({CONSUMABLES_NUMBER.major_food_min}元气)" ], "": [ f"白肉血肠({CONSUMABLES_NUMBER.minor_food_max}破招)", f"红烧扣肉({CONSUMABLES_NUMBER.minor_food_max}加速)", f"红烧排骨({CONSUMABLES_NUMBER.minor_food_max}破防)", f"酸菜鱼({CONSUMABLES_NUMBER.minor_food_max}会心)", f"毛血旺({CONSUMABLES_NUMBER.minor_food_min}破招)", f"栗子烧肉({CONSUMABLES_NUMBER.minor_food_min}加速)", f"水煮肉片({CONSUMABLES_NUMBER.minor_food_min}破防)", f"鱼香肉丝({CONSUMABLES_NUMBER.minor_food_min}会心)" ], "外功": [ f"太后饼({CONSUMABLES_NUMBER.physical_food_max}外攻)", f"煎饼果子({CONSUMABLES_NUMBER.physical_food_min}外攻)" ], "内功": [ f"灌汤包({CONSUMABLES_NUMBER.magical_food_max}内攻)", f"鲜肉包子({CONSUMABLES_NUMBER.magical_food_min}内攻)" ] } POTIONS = { "身法": [ f"上品轻身丹({CONSUMABLES_NUMBER.major_potion_max}身法)", f"中品轻身丹({CONSUMABLES_NUMBER.major_potion_min}身法)", ], "力道": [ f"上品大力丸({CONSUMABLES_NUMBER.major_potion_max}力道)", f"中品大力丸({CONSUMABLES_NUMBER.major_potion_min}力道)" ], "根骨": [ f"上品静心丸({CONSUMABLES_NUMBER.major_potion_max}根骨)", f"中品静心丸({CONSUMABLES_NUMBER.major_potion_min}根骨)" ], "元气": [ f"上品聚魂丹({CONSUMABLES_NUMBER.major_potion_max}元气)", f"中品聚魂丹({CONSUMABLES_NUMBER.major_potion_min}元气)" ], "": [ f"上品凝神散({CONSUMABLES_NUMBER.minor_potion_max}破招)", f"上品活气散({CONSUMABLES_NUMBER.minor_potion_max}加速)", f"上品破秽散({CONSUMABLES_NUMBER.minor_potion_max}破防)", f"上品玉璃散({CONSUMABLES_NUMBER.minor_potion_max}会心)", f"中品凝神散({CONSUMABLES_NUMBER.minor_potion_min}破招)", f"中品活气散({CONSUMABLES_NUMBER.minor_potion_min}加速)", f"中品破秽散({CONSUMABLES_NUMBER.minor_potion_min}破防)", f"中品玉璃散({CONSUMABLES_NUMBER.minor_potion_min}会心)" ], "外功": [ f"上品亢龙散({CONSUMABLES_NUMBER.physical_potion_max}外攻)", f"中品亢龙散({CONSUMABLES_NUMBER.physical_potion_min}外攻)" ], "内功": [ f"上品展凤散({CONSUMABLES_NUMBER.magical_potion_max}内攻)", f"中品展凤散({CONSUMABLES_NUMBER.magical_potion_min}内攻)" ] } WEAPON_ENCHANTS = { "外功": [ f"瀑沙熔锭({CONSUMABLES_NUMBER.physical_enchant_max}外攻)", f"瀑沙磨石({CONSUMABLES_NUMBER.physical_enchant_min}外攻)" ], "内功": [ f"坠宵熔锭({CONSUMABLES_NUMBER.magical_enchant_max}内攻)", f"坠宵磨石({CONSUMABLES_NUMBER.magical_enchant_min}内攻)" ] } SNACKS = { "": [ f"创意料理({CONSUMABLES_NUMBER.minor_snack_max})无双", f"创意料理({CONSUMABLES_NUMBER.minor_snack_max})会心", f"创意料理({CONSUMABLES_NUMBER.minor_snack_max})破防", ], "外功": [ f"创意料理({CONSUMABLES_NUMBER.physical_snack})外攻" ], "内功": [ f"创意料理({CONSUMABLES_NUMBER.magical_snack})内攻" ] } WINES = { "": [f"女儿红·旬又三({CONSUMABLES_NUMBER.haste_wine}加速)"], "身法": [f"关外白酒·旬又三({CONSUMABLES_NUMBER.major_wine}身法)"], "力道": [f"汾酒·旬又三({CONSUMABLES_NUMBER.major_wine}力道)"], "根骨": [f"高粱酒·旬又三({CONSUMABLES_NUMBER.major_wine}根骨)"], "元气": [f"状元红·旬又三({CONSUMABLES_NUMBER.major_wine}元气)"] } GUILD_FOOD = f"{CONSUMABLES_NUMBER.guild_food}无双" GUILD_SPREAD = f"{CONSUMABLES_NUMBER.guild_spread}破招/无双" SPREADS = { "身法": [ f"水晶芙蓉宴({CONSUMABLES_NUMBER.major_spread}身法)" ], "力道": [ f"水晶芙蓉宴({CONSUMABLES_NUMBER.major_spread}力道)" ], "根骨": [ f"水晶芙蓉宴({CONSUMABLES_NUMBER.major_spread}根骨)" ], "元气": [ f"水晶芙蓉宴({CONSUMABLES_NUMBER.major_spread}元气)" ], "外功": [ f"玉笛谁家听落梅({CONSUMABLES_NUMBER.physical_spread}外攻{CONSUMABLES_NUMBER.minor_spread}会心/破招)" ], "内功": [ f"二十四桥明月夜({CONSUMABLES_NUMBER.magical_spread}内攻{CONSUMABLES_NUMBER.minor_spread}会心/破招)" ] }