♻ Move FightPropRule to submodule

This commit is contained in:
xtaodada 2023-08-21 21:36:43 +08:00
parent 8952760987
commit 7d46cfdbec
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
4 changed files with 5 additions and 198 deletions

3
.gitmodules vendored
View File

@ -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

View File

@ -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)

@ -0,0 +1 @@
Subproject commit 5743ac6ea8ab35ab3149e13c66d0465ab253f29a

View File

@ -1,197 +0,0 @@
{
"丹恒": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"风属性伤害提高百分比",
"速度"
],
"彦卿": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"冰属性伤害提高百分比",
"速度"
],
"希儿": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"量子属性伤害提高百分比",
"速度"
],
"姬子": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"火属性伤害提高百分比",
"效果命中百分比"
],
"阿兰": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"雷属性伤害提高百分比",
"速度"
],
"黑塔": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"冰属性伤害提高百分比"
],
"希露瓦": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"雷属性伤害提高百分比",
"效果命中百分比"
],
"克拉拉": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"物理属性伤害提高百分比"
],
"虎克": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"火属性伤害提高百分比",
"效果命中百分比",
"速度"
],
"青雀": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"量子属性伤害提高百分比",
"速度"
],
"素裳": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"物理属性伤害提高百分比",
"速度",
"击破特攻"
],
"杰帕德": [
"防御力百分比",
"防御力",
"能量恢复效率百分比",
"速度",
"效果命中百分比"
],
"三月七": [
"防御力百分比",
"防御力",
"能量恢复效率百分比",
"速度",
"效果命中百分比"
],
"瓦尔特": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"虚数属性伤害提高百分比",
"速度",
"能量恢复效率百分比",
"效果命中百分比"
],
"桑博": [
"速度",
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"能量恢复效率百分比",
"效果命中百分比",
"风属性伤害提高百分比"
],
"佩拉": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"冰属性伤害提高百分比",
"速度",
"能量恢复效率百分比",
"效果命中百分比"
],
"停云": [
"攻击力百分比",
"攻击力",
"防御力百分比",
"防御力",
"生命值百分比",
"生命值",
"速度",
"能量恢复效率百分比",
"雷属性伤害提高百分比"
],
"艾丝妲": [
"攻击力百分比",
"攻击力",
"防御力百分比",
"防御力",
"火属性伤害提高百分比",
"速度",
"能量恢复效率百分比",
"速度",
"击破特攻",
"效果命中百分比"
],
"白露": [
"生命值百分比",
"生命值",
"治疗量加成百分比",
"能量恢复效率百分比",
"速度"
],
"娜塔莎": [
"生命值百分比",
"生命值",
"治疗量加成百分比",
"能量恢复效率百分比",
"速度"
],
"布洛妮娅": [
"暴击伤害百分比",
"速度",
"能量恢复效率百分比",
"风属性伤害提高百分比"
],
"景元": [
"攻击力百分比",
"暴击率百分比",
"暴击伤害百分比",
"雷属性伤害提高百分比",
"速度"
],
"罗刹": [
"攻击力百分比",
"攻击力",
"效果抵抗百分比",
"治疗量加成百分比"
],
"开拓者·毁灭": [
"攻击力百分比",
"击破特攻",
"暴击率百分比",
"暴击伤害百分比",
"物理属性伤害提高百分比",
"速度"
],
"开拓者·存护": [
"防御力百分比",
"防御力",
"攻击力百分比",
"攻击力",
"暴击率百分比",
"暴击伤害百分比",
"火属性伤害提高百分比",
"击破特攻",
"速度",
"效果命中百分比",
"效果抵抗百分比"
]
}