diff --git a/.gitmodules b/.gitmodules index b67cba9..b62574e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,3 +2,6 @@ path = gram_core url = https://github.com/PaiGramTeam/GramCore.git branch = v4 +[submodule "modules/playercards/metadata"] + path = modules/playercards/metadata + url = https://github.com/PaiGramTeam/FightPropRule.git diff --git a/modules/playercards/helpers.py b/modules/playercards/helpers.py index 2324ba7..885d252 100644 --- a/modules/playercards/helpers.py +++ b/modules/playercards/helpers.py @@ -6,7 +6,7 @@ from modules.playercards.fight_prop import FightPropScore, EquipmentsStats, name from modules.wiki.models.enums import RelicAffix _project_path = os.path.dirname(__file__) -_fight_prop_rule_file = os.path.join(_project_path, "metadata", "FightPropRule.json") +_fight_prop_rule_file = os.path.join(_project_path, "metadata", "FightPropRule_starrail.json") with open(_fight_prop_rule_file, "r", encoding="utf-8") as f: fight_prop_rule_data: dict = json.load(f) diff --git a/modules/playercards/metadata b/modules/playercards/metadata new file mode 160000 index 0000000..5743ac6 --- /dev/null +++ b/modules/playercards/metadata @@ -0,0 +1 @@ +Subproject commit 5743ac6ea8ab35ab3149e13c66d0465ab253f29a diff --git a/modules/playercards/metadata/FightPropRule.json b/modules/playercards/metadata/FightPropRule.json deleted file mode 100644 index 7453057..0000000 --- a/modules/playercards/metadata/FightPropRule.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "丹恒": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "风属性伤害提高百分比", - "速度" - ], - "彦卿": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "冰属性伤害提高百分比", - "速度" - ], - "希儿": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "量子属性伤害提高百分比", - "速度" - ], - "姬子": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "火属性伤害提高百分比", - "效果命中百分比" - ], - "阿兰": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "雷属性伤害提高百分比", - "速度" - ], - "黑塔": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "冰属性伤害提高百分比" - ], - "希露瓦": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "雷属性伤害提高百分比", - "效果命中百分比" - ], - "克拉拉": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "物理属性伤害提高百分比" - ], - "虎克": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "火属性伤害提高百分比", - "效果命中百分比", - "速度" - ], - "青雀": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "量子属性伤害提高百分比", - "速度" - ], - "素裳": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "物理属性伤害提高百分比", - "速度", - "击破特攻" - ], - "杰帕德": [ - "防御力百分比", - "防御力", - "能量恢复效率百分比", - "速度", - "效果命中百分比" - ], - "三月七": [ - "防御力百分比", - "防御力", - "能量恢复效率百分比", - "速度", - "效果命中百分比" - ], - "瓦尔特": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "虚数属性伤害提高百分比", - "速度", - "能量恢复效率百分比", - "效果命中百分比" - ], - "桑博": [ - "速度", - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "能量恢复效率百分比", - "效果命中百分比", - "风属性伤害提高百分比" - ], - "佩拉": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "冰属性伤害提高百分比", - "速度", - "能量恢复效率百分比", - "效果命中百分比" - ], - "停云": [ - "攻击力百分比", - "攻击力", - "防御力百分比", - "防御力", - "生命值百分比", - "生命值", - "速度", - "能量恢复效率百分比", - "雷属性伤害提高百分比" - ], - "艾丝妲": [ - "攻击力百分比", - "攻击力", - "防御力百分比", - "防御力", - "火属性伤害提高百分比", - "速度", - "能量恢复效率百分比", - "速度", - "击破特攻", - "效果命中百分比" - ], - "白露": [ - "生命值百分比", - "生命值", - "治疗量加成百分比", - "能量恢复效率百分比", - "速度" - ], - "娜塔莎": [ - "生命值百分比", - "生命值", - "治疗量加成百分比", - "能量恢复效率百分比", - "速度" - ], - "布洛妮娅": [ - "暴击伤害百分比", - "速度", - "能量恢复效率百分比", - "风属性伤害提高百分比" - ], - "景元": [ - "攻击力百分比", - "暴击率百分比", - "暴击伤害百分比", - "雷属性伤害提高百分比", - "速度" - ], - "罗刹": [ - "攻击力百分比", - "攻击力", - "效果抵抗百分比", - "治疗量加成百分比" - ], - "开拓者·毁灭": [ - "攻击力百分比", - "击破特攻", - "暴击率百分比", - "暴击伤害百分比", - "物理属性伤害提高百分比", - "速度" - ], - "开拓者·存护": [ - "防御力百分比", - "防御力", - "攻击力百分比", - "攻击力", - "暴击率百分比", - "暴击伤害百分比", - "火属性伤害提高百分比", - "击破特攻", - "速度", - "效果命中百分比", - "效果抵抗百分比" - ] -}