diff --git a/starrail_damage_cal/damage/Avatar.py b/starrail_damage_cal/damage/Avatar.py index d56479e..bf91e9a 100644 --- a/starrail_damage_cal/damage/Avatar.py +++ b/starrail_damage_cal/damage/Avatar.py @@ -77,6 +77,8 @@ class AvatarInstance: self.merge_attribute_bonus(set_skill.relicSetAttribute) def cal_avatar_eidolon_add(self): + if self.avatardamage is None: + return self.merge_attribute_bonus(self.avatardamage.eidolon_attribute) self.merge_attribute_bonus(self.avatardamage.extra_ability_attribute) diff --git a/starrail_damage_cal/damage/Base/RelicBase.py b/starrail_damage_cal/damage/Base/RelicBase.py index 07e9f17..fe80ff1 100644 --- a/starrail_damage_cal/damage/Base/RelicBase.py +++ b/starrail_damage_cal/damage/Base/RelicBase.py @@ -2,8 +2,7 @@ from abc import abstractmethod from typing import Dict from ...logger import logger -from ...map.model.RelicSetSkill import RelicSetStatusAdd -from ...map.SR_MAP_PATH import RelicSetSkill +from ...map.SR_MAP_PATH import RelicSetSkill, RelicSetStatusAdd from ...model import Relic @@ -80,12 +79,12 @@ class BaseRelicSetSkill: relic_set_attribute: Dict[str, float] = {} if self.pieces2: - status_add = RelicSetSkill.RelicSet[str(self.setId)]["2"] + status_add = RelicSetSkill[str(self.setId)].get("2", None) if status_add: add_relic_set_attribute(status_add) if self.pieces4: - status_add = RelicSetSkill.RelicSet[str(self.setId)]["4"] + status_add = RelicSetSkill[str(self.setId)].get("4", None) if status_add: add_relic_set_attribute(status_add) diff --git a/starrail_damage_cal/damage/Base/WeaponBase.py b/starrail_damage_cal/damage/Base/WeaponBase.py index d12c44b..3b300f5 100644 --- a/starrail_damage_cal/damage/Base/WeaponBase.py +++ b/starrail_damage_cal/damage/Base/WeaponBase.py @@ -43,8 +43,8 @@ class BaseWeapon: ability_property = EquipmentID2AbilityProperty[str(self.weapon_id)] equip_ability_property = ability_property[str(self.weapon_rank)] for equip_ability in equip_ability_property: - property_type = equip_ability["PropertyType"] - value = equip_ability["Value"]["Value"] + property_type = equip_ability.PropertyType + value = equip_ability.Value.Value if property_type in self.weapon_attribute: self.weapon_attribute[property_type] += value else: diff --git a/starrail_damage_cal/damage/Role.py b/starrail_damage_cal/damage/Role.py index 015c12b..d7ffc00 100644 --- a/starrail_damage_cal/damage/Role.py +++ b/starrail_damage_cal/damage/Role.py @@ -255,6 +255,7 @@ def apply_attribute_bonus( def calculate_damage_reduction(level: int): + _ = level enemy_damage_reduction = 0.1 return 1 - enemy_damage_reduction @@ -265,6 +266,7 @@ def calculate_resistance_area( add_skill_type: str, element: str, ): + _ = skill_type enemy_status_resistance = 0.0 for attr in merged_attr: if "ResistancePenetration" in attr: diff --git a/starrail_damage_cal/excel/light_cone_ranks.json b/starrail_damage_cal/excel/light_cone_ranks.json deleted file mode 100644 index adbdccb..0000000 --- a/starrail_damage_cal/excel/light_cone_ranks.json +++ /dev/null @@ -1,5962 +0,0 @@ -{ - "20000": { - "id": "20000", - "skill": "危机", - "desc": "战斗开始时,使装备者的暴击率提高#1[i]%,持续#2[i]回合。", - "params": [ - [ - 0.12, - 3 - ], - [ - 0.15, - 3 - ], - [ - 0.18, - 3 - ], - [ - 0.21, - 3 - ], - [ - 0.24, - 3 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20001": { - "id": "20001", - "skill": "繁盛", - "desc": "装备者施放战技和终结技时,治疗量提高#1[i]%。", - "params": [ - [ - 0.12 - ], - [ - 0.15 - ], - [ - 0.18 - ], - [ - 0.21 - ], - [ - 0.24 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20002": { - "id": "20002", - "skill": "破灭", - "desc": "使装备者普攻和战技造成的伤害提高#1[i]%。", - "params": [ - [ - 0.2 - ], - [ - 0.25 - ], - [ - 0.3 - ], - [ - 0.35 - ], - [ - 0.4 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20003": { - "id": "20003", - "skill": "静滞", - "desc": "使装备者的防御力提高#1[i]%。当装备者当前生命值百分比小于#2[i]%时,其防御力额外提高#3[i]%。", - "params": [ - [ - 0.16, - 0.5, - 0.16 - ], - [ - 0.2, - 0.5, - 0.2 - ], - [ - 0.24, - 0.5, - 0.24 - ], - [ - 0.28, - 0.5, - 0.28 - ], - [ - 0.32, - 0.5, - 0.32 - ] - ], - "properties": [ - [ - { - "type": "DefenceAddedRatio", - "value": 0.16 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.2 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.28 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.32 - } - ] - ] - }, - "20004": { - "id": "20004", - "skill": "沉沦", - "desc": "战斗开始时,使装备者的效果命中提高#1[i]%,持续#2[i]回合。", - "params": [ - [ - 0.2, - 3 - ], - [ - 0.25, - 3 - ], - [ - 0.3, - 3 - ], - [ - 0.35, - 3 - ], - [ - 0.4, - 3 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20005": { - "id": "20005", - "skill": "协力", - "desc": "进入战斗后,使我方全体的攻击力提高#1[i]%。同类技能无法重复生效。", - "params": [ - [ - 0.08 - ], - [ - 0.09 - ], - [ - 0.1 - ], - [ - 0.11 - ], - [ - 0.12 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20006": { - "id": "20006", - "skill": "博识", - "desc": "使装备者终结技造成的伤害提高#1[i]%。", - "params": [ - [ - 0.28 - ], - [ - 0.35 - ], - [ - 0.42 - ], - [ - 0.49 - ], - [ - 0.56 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20007": { - "id": "20007", - "skill": "鸣角", - "desc": "使装备者消灭敌方目标后,攻击力提高#1[i]%,持续#2[i]回合。", - "params": [ - [ - 0.24, - 3 - ], - [ - 0.3, - 3 - ], - [ - 0.36, - 3 - ], - [ - 0.42, - 3 - ], - [ - 0.48, - 3 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20008": { - "id": "20008", - "skill": "甘美", - "desc": "战斗开始时,立即为我方全体恢复#1[i]点能量。", - "params": [ - [ - 6 - ], - [ - 7.5 - ], - [ - 9 - ], - [ - 10.5 - ], - [ - 12 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20009": { - "id": "20009", - "skill": "诛讨", - "desc": "使装备者对当前生命值百分比大于#1[i]%的敌方目标造成的伤害提高#2[i]%。", - "params": [ - [ - 0.5, - 0.2 - ], - [ - 0.5, - 0.25 - ], - [ - 0.5, - 0.3 - ], - [ - 0.5, - 0.35 - ], - [ - 0.5, - 0.4 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20010": { - "id": "20010", - "skill": "兴复", - "desc": "使装备者施放终结技时,回复等同于自身生命上限#1[i]%的生命值。", - "params": [ - [ - 0.18 - ], - [ - 0.21 - ], - [ - 0.24 - ], - [ - 0.27 - ], - [ - 0.3 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20011": { - "id": "20011", - "skill": "追逼", - "desc": "使装备者对减速状态下的敌方目标造成的伤害提高#1[i]%。", - "params": [ - [ - 0.24 - ], - [ - 0.3 - ], - [ - 0.36 - ], - [ - 0.42 - ], - [ - 0.48 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20012": { - "id": "20012", - "skill": "速决", - "desc": "使装备者施放攻击或受到攻击后,额外恢复#1[i]点能量,该效果单个回合内不可重复触发。", - "params": [ - [ - 4 - ], - [ - 5 - ], - [ - 6 - ], - [ - 7 - ], - [ - 8 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20013": { - "id": "20013", - "skill": "顿悟", - "desc": "使装备者施放战技后额外恢复#1[i]点能量,该效果单个回合内不可重复触发。", - "params": [ - [ - 8 - ], - [ - 9 - ], - [ - 10 - ], - [ - 11 - ], - [ - 12 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20014": { - "id": "20014", - "skill": "联盟", - "desc": "使装备者在消灭敌方目标后,速度提高#1[i]%,持续#2[i]回合。", - "params": [ - [ - 0.1, - 2 - ], - [ - 0.12, - 2 - ], - [ - 0.14, - 2 - ], - [ - 0.16, - 2 - ], - [ - 0.18, - 2 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20015": { - "id": "20015", - "skill": "丰饶民", - "desc": "当装备者施放普攻后,使下一次行动提前#1[i]%。", - "params": [ - [ - 0.12 - ], - [ - 0.14 - ], - [ - 0.16 - ], - [ - 0.18 - ], - [ - 0.2 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20016": { - "id": "20016", - "skill": "军团", - "desc": "装备者当前生命值百分比小于#1[i]%时,暴击率提高#2[i]%。", - "params": [ - [ - 0.8, - 0.12 - ], - [ - 0.8, - 0.15 - ], - [ - 0.8, - 0.18 - ], - [ - 0.8, - 0.21 - ], - [ - 0.8, - 0.24 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20017": { - "id": "20017", - "skill": "公司", - "desc": "当装备者击破敌方目标的弱点时,回复等同于自身生命上限#1[i]%的生命值。", - "params": [ - [ - 0.12 - ], - [ - 0.14 - ], - [ - 0.16 - ], - [ - 0.18 - ], - [ - 0.2 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20018": { - "id": "20018", - "skill": "机关", - "desc": "施放战技后,使装备者的下一次普攻对敌方目标造成等同于自身#1[i]%攻击力的附加伤害。", - "params": [ - [ - 0.6 - ], - [ - 0.75 - ], - [ - 0.9 - ], - [ - 1.05 - ], - [ - 1.2 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20019": { - "id": "20019", - "skill": "家族", - "desc": "进入战斗时,我方全体速度提高#1[i]点,持续#2[i]回合。", - "params": [ - [ - 12, - 1 - ], - [ - 14, - 1 - ], - [ - 16, - 1 - ], - [ - 18, - 1 - ], - [ - 20, - 1 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "20020": { - "id": "20020", - "skill": "天才", - "desc": "当装备者施放终结技时,攻击力提高#1[i]%,持续#2[i]回合。", - "params": [ - [ - 0.24, - 2 - ], - [ - 0.3, - 2 - ], - [ - 0.36, - 2 - ], - [ - 0.42, - 2 - ], - [ - 0.48, - 2 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21000": { - "id": "21000", - "skill": "互相治愈", - "desc": "使装备者的能量恢复效率提高#1[i]%,并在施放终结技时治疗量提高#2[i]%。", - "params": [ - [ - 0.08, - 0.12 - ], - [ - 0.1, - 0.15 - ], - [ - 0.12, - 0.18 - ], - [ - 0.14, - 0.21 - ], - [ - 0.16, - 0.24 - ] - ], - "properties": [ - [ - { - "type": "SPRatioBase", - "value": 0.08 - } - ], - [ - { - "type": "SPRatioBase", - "value": 0.1 - } - ], - [ - { - "type": "SPRatioBase", - "value": 0.12 - } - ], - [ - { - "type": "SPRatioBase", - "value": 0.14 - } - ], - [ - { - "type": "SPRatioBase", - "value": 0.16 - } - ] - ] - }, - "21001": { - "id": "21001", - "skill": "劳碌者", - "desc": "敌方目标每承受1个负面效果,装备者对其造成的伤害提高#1[i]%,最多叠加#2[i]层。该效果对持续伤害也会生效。", - "params": [ - [ - 0.12, - 3 - ], - [ - 0.15, - 3 - ], - [ - 0.18, - 3 - ], - [ - 0.21, - 3 - ], - [ - 0.24, - 3 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21002": { - "id": "21002", - "skill": "此刻定格", - "desc": "使装备者的防御力提高#1[i]%。进入战斗后,使我方全体的全属性抗性提高#2[i]%。同类技能无法重复生效。", - "params": [ - [ - 0.16, - 0.08 - ], - [ - 0.18, - 0.09 - ], - [ - 0.2, - 0.1 - ], - [ - 0.22, - 0.11 - ], - [ - 0.24, - 0.12 - ] - ], - "properties": [ - [ - { - "type": "DefenceAddedRatio", - "value": 0.16 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.18 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.2 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.22 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.24 - } - ] - ] - }, - "21003": { - "id": "21003", - "skill": "记录", - "desc": "使装备者的攻击力提高#1[i]%。当场上的敌方目标数量小于等于2时,装备者的暴击率提高#2[i]%。", - "params": [ - [ - 0.16, - 0.12 - ], - [ - 0.2, - 0.15 - ], - [ - 0.24, - 0.18 - ], - [ - 0.28, - 0.21 - ], - [ - 0.32, - 0.24 - ] - ], - "properties": [ - [ - { - "type": "AttackAddedRatio", - "value": 0.16 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.2 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.28 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.32 - } - ] - ] - }, - "21004": { - "id": "21004", - "skill": "老相片", - "desc": "使装备者的击破特攻提高#1[i]%。装备者施放攻击后,额外恢复#2[i]点能量,该效果单个回合内不可重复触发。", - "params": [ - [ - 0.28, - 4 - ], - [ - 0.35, - 5 - ], - [ - 0.42, - 6 - ], - [ - 0.49, - 7 - ], - [ - 0.56, - 8 - ] - ], - "properties": [ - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.28 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.35 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.42 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.49 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.56 - } - ] - ] - }, - "21005": { - "id": "21005", - "skill": "奇妙冒险", - "desc": "装备者施放普攻、战技或终结技攻击敌方目标后,分别获取一层【淘气值】。每层使装备者的攻击力提高#1[i]%。", - "params": [ - [ - 0.12 - ], - [ - 0.15 - ], - [ - 0.18 - ], - [ - 0.21 - ], - [ - 0.24 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21006": { - "id": "21006", - "skill": "画像少女", - "desc": "使装备者追加攻击造成的伤害提高#1[i]%。若该敌方目标当前生命值百分比小于等于#2[i]%,则追加攻击造成的伤害额外提高#3[i]%。", - "params": [ - [ - 0.24, - 0.5, - 0.24 - ], - [ - 0.3, - 0.5, - 0.3 - ], - [ - 0.36, - 0.5, - 0.36 - ], - [ - 0.42, - 0.5, - 0.42 - ], - [ - 0.48, - 0.5, - 0.48 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21007": { - "id": "21007", - "skill": "救治与维修", - "desc": "使装备者的治疗量提高#1[i]%,并在施放战技时为我方全体恢复#2[f1]点能量。", - "params": [ - [ - 0.1, - 2 - ], - [ - 0.125, - 2.5 - ], - [ - 0.15, - 3 - ], - [ - 0.175, - 3.5 - ], - [ - 0.2, - 4 - ] - ], - "properties": [ - [ - { - "type": "HealRatioBase", - "value": 0.1 - } - ], - [ - { - "type": "HealRatioBase", - "value": 0.125 - } - ], - [ - { - "type": "HealRatioBase", - "value": 0.15 - } - ], - [ - { - "type": "HealRatioBase", - "value": 0.175 - } - ], - [ - { - "type": "HealRatioBase", - "value": 0.2 - } - ] - ] - }, - "21008": { - "id": "21008", - "skill": "自信", - "desc": "使装备者的效果命中提高#1[i]%,同时造成的持续伤害提高#2[i]%。", - "params": [ - [ - 0.2, - 0.24 - ], - [ - 0.25, - 0.3 - ], - [ - 0.3, - 0.36 - ], - [ - 0.35, - 0.42 - ], - [ - 0.4, - 0.48 - ] - ], - "properties": [ - [ - { - "type": "StatusProbabilityBase", - "value": 0.2 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.25 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.3 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.35 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.4 - } - ] - ] - }, - "21009": { - "id": "21009", - "skill": "时光如梭", - "desc": "使装备者受到攻击的概率提高,同时受到的伤害降低#2[i]%。", - "params": [ - [ - 2, - 0.16 - ], - [ - 2, - 0.18 - ], - [ - 2, - 0.2 - ], - [ - 2, - 0.22 - ], - [ - 2, - 0.24 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21010": { - "id": "21010", - "skill": "各自的答案", - "desc": "当装备者多次击中同一敌方目标时,每次造成的伤害提高#1[i]%,该效果最多叠加#2[i]层。若攻击目标发生变化,立即解除当前的增益效果。", - "params": [ - [ - 0.08, - 5 - ], - [ - 0.1, - 5 - ], - [ - 0.12, - 5 - ], - [ - 0.14, - 5 - ], - [ - 0.16, - 5 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21011": { - "id": "21011", - "skill": "启程", - "desc": "进入战斗后,当我方目标造成与装备者相同属性的伤害时,造成的伤害提高#1[i]%。", - "params": [ - [ - 0.12 - ], - [ - 0.15 - ], - [ - 0.18 - ], - [ - 0.21 - ], - [ - 0.24 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21012": { - "id": "21012", - "skill": "竭力而为", - "desc": "使装备者造成的伤害提高#1[i]%,同时对当前生命值百分比大于等于装备者自身当前生命值百分比的敌方目标造成的伤害额外提高#2[i]%。", - "params": [ - [ - 0.2, - 0.2 - ], - [ - 0.25, - 0.25 - ], - [ - 0.3, - 0.3 - ], - [ - 0.35, - 0.35 - ], - [ - 0.4, - 0.4 - ] - ], - "properties": [ - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.2 - } - ], - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.25 - } - ], - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.3 - } - ], - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.35 - } - ], - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.4 - } - ] - ] - }, - "21013": { - "id": "21013", - "skill": "声音的力量", - "desc": "使装备者进入战斗时立即恢复#2[i]点能量,同时使其终结技造成的伤害提高#1[i]%。", - "params": [ - [ - 0.32, - 20 - ], - [ - 0.4, - 23 - ], - [ - 0.48, - 26 - ], - [ - 0.56, - 29 - ], - [ - 0.64, - 32 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21014": { - "id": "21014", - "skill": "折射的视线", - "desc": "使装备者的效果抵抗提高#1[i]%,并使装备者的治疗量提高,提高数值等同于效果抵抗的#2[i]%,最多使治疗量提高#3[i]%。", - "params": [ - [ - 0.16, - 0.33, - 0.15 - ], - [ - 0.2, - 0.36, - 0.18 - ], - [ - 0.24, - 0.39, - 0.21 - ], - [ - 0.28, - 0.42, - 0.24 - ], - [ - 0.32, - 0.45, - 0.27 - ] - ], - "properties": [ - [ - { - "type": "StatusResistanceBase", - "value": 0.16 - } - ], - [ - { - "type": "StatusResistanceBase", - "value": 0.2 - } - ], - [ - { - "type": "StatusResistanceBase", - "value": 0.24 - } - ], - [ - { - "type": "StatusResistanceBase", - "value": 0.28 - } - ], - [ - { - "type": "StatusResistanceBase", - "value": 0.32 - } - ] - ] - }, - "21015": { - "id": "21015", - "skill": "回眸", - "desc": "当装备者击中敌方目标时,如果该目标不处于【攻陷】状态,则有#1[i]%的基础概率使其陷入【攻陷】状态。【攻陷】状态下的敌方目标防御力降低#2[i]%,持续#3[i]回合。", - "params": [ - [ - 0.6, - 0.12, - 1 - ], - [ - 0.7, - 0.13, - 1 - ], - [ - 0.8, - 0.14, - 1 - ], - [ - 0.9, - 0.15, - 1 - ], - [ - 1, - 0.16, - 1 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21016": { - "id": "21016", - "skill": "新一轮洗牌", - "desc": "使装备者的防御力提高#1[i]%。当装备者受到攻击后,有#2[i]%的基础概率使敌方目标陷入灼烧状态,每回合造成等同于装备者#3[i]%防御力的持续伤害,持续#4[i]回合。", - "params": [ - [ - 0.16, - 1, - 0.4, - 2 - ], - [ - 0.2, - 1.05, - 0.5, - 2 - ], - [ - 0.24, - 1.1, - 0.6, - 2 - ], - [ - 0.28, - 1.15, - 0.7, - 2 - ], - [ - 0.32, - 1.2, - 0.8, - 2 - ] - ], - "properties": [ - [ - { - "type": "DefenceAddedRatio", - "value": 0.16 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.2 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.28 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.32 - } - ] - ] - }, - "21017": { - "id": "21017", - "skill": "不赞不许走!", - "desc": "使装备者普攻和战技造成的伤害提高#1[i]%,当装备者的当前能量值等于其能量上限时,该效果额外提高#2[i]%。", - "params": [ - [ - 0.24, - 0.24 - ], - [ - 0.3, - 0.3 - ], - [ - 0.36, - 0.36 - ], - [ - 0.42, - 0.42 - ], - [ - 0.48, - 0.48 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21018": { - "id": "21018", - "skill": "停不下来啦!", - "desc": "当装备者施放终结技后,我方全体行动提前#1[i]%。", - "params": [ - [ - 0.16 - ], - [ - 0.18 - ], - [ - 0.2 - ], - [ - 0.22 - ], - [ - 0.24 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21019": { - "id": "21019", - "skill": "暖阳麦浪", - "desc": "使装备者攻击力提高#1[i]%,当装备者消灭敌方目标后,暴击率提高#2[i]%,持续#3[i]回合。", - "params": [ - [ - 0.16, - 0.12, - 3 - ], - [ - 0.2, - 0.15, - 3 - ], - [ - 0.24, - 0.18, - 3 - ], - [ - 0.28, - 0.21, - 3 - ], - [ - 0.32, - 0.24, - 3 - ] - ], - "properties": [ - [ - { - "type": "AttackAddedRatio", - "value": 0.16 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.2 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.28 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.32 - } - ] - ] - }, - "21020": { - "id": "21020", - "skill": "各得其所", - "desc": "使装备者攻击力提高#1[i]%,当装备者消灭敌方目标后,暴击伤害提高#2[i]%,持续#3[i]回合。", - "params": [ - [ - 0.16, - 0.24, - 3 - ], - [ - 0.2, - 0.3, - 3 - ], - [ - 0.24, - 0.36, - 3 - ], - [ - 0.28, - 0.42, - 3 - ], - [ - 0.32, - 0.48, - 3 - ] - ], - "properties": [ - [ - { - "type": "AttackAddedRatio", - "value": 0.16 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.2 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.28 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.32 - } - ] - ] - }, - "21021": { - "id": "21021", - "skill": "酣适", - "desc": "当装备者的回合开始时,随机为1个当前能量百分比小于#1[i]%的我方其他目标恢复#2[i]点能量。", - "params": [ - [ - 0.5, - 8 - ], - [ - 0.5, - 10 - ], - [ - 0.5, - 12 - ], - [ - 0.5, - 14 - ], - [ - 0.5, - 16 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21022": { - "id": "21022", - "skill": "休止符", - "desc": "使装备者的击破特攻提高#1[i]%,对处于触电或风化状态的敌方目标造成的伤害提高#2[i]%,该效果对持续伤害也会生效。", - "params": [ - [ - 0.16, - 0.16 - ], - [ - 0.2, - 0.2 - ], - [ - 0.24, - 0.24 - ], - [ - 0.28, - 0.28 - ], - [ - 0.32, - 0.32 - ] - ], - "properties": [ - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.16 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.2 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.24 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.28 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.32 - } - ] - ] - }, - "21023": { - "id": "21023", - "skill": "泪中人", - "desc": "战斗开始时,使我方全体受到的伤害降低#2[i]%,持续#3[i]回合。同时立即为我方全体回复等同于各自已损失生命值#1[i]%的生命值。", - "params": [ - [ - 0.3, - 0.08, - 5 - ], - [ - 0.35, - 0.1, - 5 - ], - [ - 0.4, - 0.12, - 5 - ], - [ - 0.45, - 0.14, - 5 - ], - [ - 0.5, - 0.16, - 5 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21024": { - "id": "21024", - "skill": "驱散余寒", - "desc": "进入战斗后,使装备者速度提高#1[i]%,造成的伤害提高#2[i]%。当装备者受到伤害后该效果失效,下个回合结束时该效果恢复。", - "params": [ - [ - 0.08, - 0.12 - ], - [ - 0.09, - 0.15 - ], - [ - 0.1, - 0.18 - ], - [ - 0.11, - 0.21 - ], - [ - 0.12, - 0.24 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21025": { - "id": "21025", - "skill": "旧日纸鸢", - "desc": "当装备者施放战技后,使下一个行动的我方其他目标造成的伤害提高#1[i]%,持续#2[i]回合。", - "params": [ - [ - 0.16, - 1 - ], - [ - 0.2, - 1 - ], - [ - 0.24, - 1 - ], - [ - 0.28, - 1 - ], - [ - 0.32, - 1 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21026": { - "id": "21026", - "skill": "快溜", - "desc": "使装备者的攻击力提高#1[i]%,对处于灼烧或裂伤状态的敌方目标造成的伤害提高#2[i]%,该效果对持续伤害也会生效。", - "params": [ - [ - 0.1, - 0.16 - ], - [ - 0.125, - 0.2 - ], - [ - 0.15, - 0.24 - ], - [ - 0.175, - 0.28 - ], - [ - 0.2, - 0.32 - ] - ], - "properties": [ - [ - { - "type": "AttackAddedRatio", - "value": 0.1 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.125 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.15 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.175 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.2 - } - ] - ] - }, - "21027": { - "id": "21027", - "skill": "各就其位", - "desc": "使装备者造成伤害提高#1[i]%。每消灭1个敌方目标,装备者的攻击力提高#2[i]%,该效果最多叠加#3[i]层。", - "params": [ - [ - 0.12, - 0.04, - 3 - ], - [ - 0.15, - 0.05, - 3 - ], - [ - 0.18, - 0.06, - 3 - ], - [ - 0.21, - 0.07, - 3 - ], - [ - 0.24, - 0.08, - 3 - ] - ], - "properties": [ - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.12 - } - ], - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.15 - } - ], - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.18 - } - ], - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.21 - } - ], - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.24 - } - ] - ] - }, - "21028": { - "id": "21028", - "skill": "小小灯火", - "desc": "使装备者的生命上限提高#1[i]%。施放普攻或战技后,为我方全体回复等同于各自生命上限#2[f1]%的生命值。", - "params": [ - [ - 0.16, - 0.02 - ], - [ - 0.2, - 0.025 - ], - [ - 0.24, - 0.03 - ], - [ - 0.28, - 0.035 - ], - [ - 0.32, - 0.04 - ] - ], - "properties": [ - [ - { - "type": "HPAddedRatio", - "value": 0.16 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.2 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.28 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.32 - } - ] - ] - }, - "21029": { - "id": "21029", - "skill": "交手如交谈", - "desc": "装备者施放普攻或战技后,对随机1个受到攻击的敌方目标造成等同于自身#1[i]%攻击力的附加伤害。", - "params": [ - [ - 0.48 - ], - [ - 0.6 - ], - [ - 0.72 - ], - [ - 0.84 - ], - [ - 0.96 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21030": { - "id": "21030", - "skill": "新篇章", - "desc": "使装备者防御力提高#1[i]%。使装备者施放终结技时造成的伤害值提高,提高数值等同于装备者防御力的#2[i]%,该效果每次施放终结技时对每个敌方目标仅生效1次。", - "params": [ - [ - 0.16, - 0.6 - ], - [ - 0.2, - 0.75 - ], - [ - 0.24, - 0.9 - ], - [ - 0.28, - 1.05 - ], - [ - 0.32, - 1.2 - ] - ], - "properties": [ - [ - { - "type": "DefenceAddedRatio", - "value": 0.16 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.2 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.28 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.32 - } - ] - ] - }, - "21031": { - "id": "21031", - "skill": "汹涌", - "desc": "使装备者暴击率提高#1[i]%。暴击后有#2[i]%的固定概率解除被攻击敌方目标所持有的1个增益效果,该效果每次攻击只可触发1次。", - "params": [ - [ - 0.12, - 0.16 - ], - [ - 0.15, - 0.2 - ], - [ - 0.18, - 0.24 - ], - [ - 0.21, - 0.28 - ], - [ - 0.24, - 0.32 - ] - ], - "properties": [ - [ - { - "type": "CriticalChanceBase", - "value": 0.12 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.15 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.18 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.21 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.24 - } - ] - ] - }, - "21032": { - "id": "21032", - "skill": "秘密", - "desc": "在战斗开始时以及当装备者回合开始时,随机生效1个效果。该效果生效时,替换上次的效果且本次不会与上次重复。效果包含:使我方全体攻击力提高#1[i]%;使我方全体暴击伤害提高#2[i]%;使我方全体能量恢复效率提高#3[i]%。同类效果无法叠加,在装备者陷入无法战斗状态时解除。", - "params": [ - [ - 0.1, - 0.12, - 0.06 - ], - [ - 0.125, - 0.15, - 0.075 - ], - [ - 0.15, - 0.18, - 0.09 - ], - [ - 0.175, - 0.21, - 0.105 - ], - [ - 0.2, - 0.24, - 0.12 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21033": { - "id": "21033", - "skill": "绝境", - "desc": "使装备者的攻击力提高#1[i]%。当装备者消灭敌方目标时,回复等同于自身#2[i]%攻击力的生命值。", - "params": [ - [ - 0.24, - 0.12 - ], - [ - 0.3, - 0.15 - ], - [ - 0.36, - 0.18 - ], - [ - 0.42, - 0.21 - ], - [ - 0.48, - 0.24 - ] - ], - "properties": [ - [ - { - "type": "AttackAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.3 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.36 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.42 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.48 - } - ] - ] - }, - "21034": { - "id": "21034", - "skill": "风雨将至", - "desc": "进入战斗后,根据装备者的能量上限,提高装备者造成的伤害:每点能量提高#1[f2]%,最多计入#2[i]点。", - "params": [ - [ - 0.002, - 160 - ], - [ - 0.0025, - 160 - ], - [ - 0.003, - 160 - ], - [ - 0.0035, - 160 - ], - [ - 0.004, - 160 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21035": { - "id": "21035", - "skill": "假设", - "desc": "使装备者的击破特攻提高#1[i]%。施放普攻后,装备者回复等同于#2[f1]%生命上限+#3[i]点的生命值。", - "params": [ - [ - 0.24, - 0.02, - 800 - ], - [ - 0.3, - 0.025, - 800 - ], - [ - 0.36, - 0.03, - 800 - ], - [ - 0.42, - 0.035, - 800 - ], - [ - 0.48, - 0.04, - 800 - ] - ], - "properties": [ - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.24 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.3 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.36 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.42 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.48 - } - ] - ] - }, - "21036": { - "id": "21036", - "skill": "团结", - "desc": "装备者施放普攻、战技、终结技中某一类型的技能后,为我方全体附加【童心】,【童心】可以使我方目标对应类型的技能所造成的伤害提高#1[i]%。【童心】仅对装备者最新使用的技能类型生效,且不可叠加。", - "params": [ - [ - 0.12 - ], - [ - 0.14 - ], - [ - 0.16 - ], - [ - 0.18 - ], - [ - 0.2 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21037": { - "id": "21037", - "skill": "下注", - "desc": "使装备者的攻击力提高#1[i]%。当装备者对敌方目标造成暴击后获得一层【好运】,最多叠加#3[i]层。每层【好运】使装备者的暴击伤害提高#2[i]%,【好运】在装备者的回合结束时移除。", - "params": [ - [ - 0.12, - 0.08, - 4 - ], - [ - 0.14, - 0.09, - 4 - ], - [ - 0.16, - 0.1, - 4 - ], - [ - 0.18, - 0.11, - 4 - ], - [ - 0.2, - 0.12, - 4 - ] - ], - "properties": [ - [ - { - "type": "AttackAddedRatio", - "value": 0.12 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.14 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.16 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.18 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.2 - } - ] - ] - }, - "21038": { - "id": "21038", - "skill": "爆燃", - "desc": "当装备者在单次受到攻击中累计损失的生命值超过最大生命值的#1[i]%,或单次消耗自身生命值超过最大生命值的#1[i]%,则立即回复等同于装备者生命上限#3[i]%的生命值,同时使装备者造成的伤害提高#2[i]%,持续#4[i]回合。该效果每#5[i]回合只能触发1次。", - "params": [ - [ - 0.25, - 0.25, - 0.15, - 2, - 3 - ], - [ - 0.25, - 0.3125, - 0.15, - 2, - 3 - ], - [ - 0.25, - 0.375, - 0.15, - 2, - 3 - ], - [ - 0.25, - 0.4375, - 0.15, - 2, - 3 - ], - [ - 0.25, - 0.5, - 0.15, - 2, - 3 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21039": { - "id": "21039", - "skill": "洞见", - "desc": "使装备者的效果抵抗提高#1[i]%。装备者每有#2[i]点防御力,使装备者造成的伤害提高#3[f1]%,最多使造成的伤害提高#4[i]%。", - "params": [ - [ - 0.12, - 100, - 0.008, - 0.32 - ], - [ - 0.14, - 100, - 0.009, - 0.36 - ], - [ - 0.16, - 100, - 0.01, - 0.4 - ], - [ - 0.18, - 100, - 0.011, - 0.44 - ], - [ - 0.2, - 100, - 0.012, - 0.48 - ] - ], - "properties": [ - [ - { - "type": "StatusResistanceBase", - "value": 0.12 - } - ], - [ - { - "type": "StatusResistanceBase", - "value": 0.14 - } - ], - [ - { - "type": "StatusResistanceBase", - "value": 0.16 - } - ], - [ - { - "type": "StatusResistanceBase", - "value": 0.18 - } - ], - [ - { - "type": "StatusResistanceBase", - "value": 0.2 - } - ] - ] - }, - "21040": { - "id": "21040", - "skill": "攻略", - "desc": "使装备者的攻击力提高#1[i]%。装备者施放攻击后,若有不少于2个被攻击的敌方目标具有对应属性弱点,装备者的暴击伤害提高#2[i]%,持续#3[i]回合。", - "params": [ - [ - 0.16, - 0.2, - 2 - ], - [ - 0.18, - 0.25, - 2 - ], - [ - 0.2, - 0.3, - 2 - ], - [ - 0.22, - 0.35, - 2 - ], - [ - 0.24, - 0.4, - 2 - ] - ], - "properties": [ - [ - { - "type": "AttackAddedRatio", - "value": 0.16 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.18 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.2 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.22 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.24 - } - ] - ] - }, - "21041": { - "id": "21041", - "skill": "自娱自乐", - "desc": "装备者对敌方目标施加负面状态后,获得一层【戏法】,每层【戏法】使装备者造成的伤害提高#1[i]%,最多叠加#2[i]层,持续#3[i]回合。当装备者的效果命中大于等于#4[i]%时,攻击力提高#5[i]%。", - "params": [ - [ - 0.06, - 3, - 1, - 0.8, - 0.2 - ], - [ - 0.07, - 3, - 1, - 0.8, - 0.24 - ], - [ - 0.08, - 3, - 1, - 0.8, - 0.28 - ], - [ - 0.09, - 3, - 1, - 0.8, - 0.32 - ], - [ - 0.1, - 3, - 1, - 0.8, - 0.36 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "21042": { - "id": "21042", - "skill": "传承", - "desc": "使装备者的击破特攻提高#1[i]%。当装备者施放终结技时,暴击率提高#2[i]%,持续#3[i]回合。", - "params": [ - [ - 0.28, - 0.15, - 2 - ], - [ - 0.35, - 0.1875, - 2 - ], - [ - 0.42, - 0.225, - 2 - ], - [ - 0.49, - 0.2625, - 2 - ], - [ - 0.56, - 0.3, - 2 - ] - ], - "properties": [ - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.28 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.35 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.42 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.49 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.56 - } - ] - ] - }, - "21043": { - "id": "21043", - "skill": "鼓舞", - "desc": "使装备者的防御力提高#1[i]%。场上每有一名持有护盾的角色,装备者造成的伤害提高#2[i]%。", - "params": [ - [ - 0.16, - 0.04 - ], - [ - 0.2, - 0.05 - ], - [ - 0.24, - 0.06 - ], - [ - 0.28, - 0.07 - ], - [ - 0.32, - 0.08 - ] - ], - "properties": [ - [ - { - "type": "DefenceAddedRatio", - "value": 0.16 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.2 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.28 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.32 - } - ] - ] - }, - "21044": { - "id": "21044", - "skill": "试探", - "desc": "使装备者的暴击率提高#1[i]%。装备者对处于防御降低或减速状态下的敌人造成的暴击伤害提高#2[i]%。", - "params": [ - [ - 0.08, - 0.24 - ], - [ - 0.1, - 0.3 - ], - [ - 0.12, - 0.36 - ], - [ - 0.14, - 0.42 - ], - [ - 0.16, - 0.48 - ] - ], - "properties": [ - [ - { - "type": "CriticalChanceBase", - "value": 0.08 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.1 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.12 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.14 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.16 - } - ] - ] - }, - "21045": { - "id": "21045", - "skill": "沉寂", - "desc": "使装备者的击破特攻提高#1[i]%。装备者施放终结技后,速度提高#2[i]%,持续#3[i]回合。", - "params": [ - [ - 0.28, - 0.08, - 2 - ], - [ - 0.35, - 0.1, - 2 - ], - [ - 0.42, - 0.12, - 2 - ], - [ - 0.49, - 0.14, - 2 - ], - [ - 0.56, - 0.16, - 2 - ] - ], - "properties": [ - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.28 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.35 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.42 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.49 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.56 - } - ] - ] - }, - "21046": { - "id": "21046", - "skill": "莫失莫忘", - "desc": "使装备者的攻击力提高#1[i]%。进入战斗时,若有两名及以上我方角色拥有任意相同命途,使这些角色的暴击伤害提高#2[i]%。同类技能无法重复生效。", - "params": [ - [ - 0.16, - 0.16 - ], - [ - 0.2, - 0.2 - ], - [ - 0.24, - 0.24 - ], - [ - 0.28, - 0.28 - ], - [ - 0.32, - 0.32 - ] - ], - "properties": [ - [ - { - "type": "AttackAddedRatio", - "value": 0.16 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.2 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.28 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.32 - } - ] - ] - }, - "21047": { - "id": "21047", - "skill": "隐匿", - "desc": "使装备者的击破特攻提高#1[i]%。进入战斗时或造成击破伤害后,速度提高#2[i]%,持续#3[i]回合,该效果每回合只可触发1次。", - "params": [ - [ - 0.28, - 0.08, - 2 - ], - [ - 0.35, - 0.09, - 2 - ], - [ - 0.42, - 0.1, - 2 - ], - [ - 0.49, - 0.11, - 2 - ], - [ - 0.56, - 0.12, - 2 - ] - ], - "properties": [ - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.28 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.35 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.42 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.49 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.56 - } - ] - ] - }, - "22000": { - "id": "22000", - "skill": "眼疾手快", - "desc": "使装备者的效果命中提高#1[i]%。当装备者攻击防御力被降低的敌方目标后,恢复#2[i]点能量。", - "params": [ - [ - 0.2, - 4 - ], - [ - 0.25, - 5 - ], - [ - 0.3, - 6 - ], - [ - 0.35, - 7 - ], - [ - 0.4, - 8 - ] - ], - "properties": [ - [ - { - "type": "StatusProbabilityBase", - "value": 0.2 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.25 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.3 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.35 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.4 - } - ] - ] - }, - "22001": { - "id": "22001", - "skill": "不怕不怕啦", - "desc": "使装备者的生命上限提高#1[i]%。当装备者施放战技时,治疗量提高#2[i]%,持续#3[i]回合。", - "params": [ - [ - 0.08, - 0.16, - 2 - ], - [ - 0.09, - 0.19, - 2 - ], - [ - 0.1, - 0.22, - 2 - ], - [ - 0.11, - 0.25, - 2 - ], - [ - 0.12, - 0.28, - 2 - ] - ], - "properties": [ - [ - { - "type": "HPAddedRatio", - "value": 0.08 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.09 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.1 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.11 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.12 - } - ] - ] - }, - "22002": { - "id": "22002", - "skill": "联结", - "desc": "使装备者的攻击力提高#1[i]%。装备者施放终结技后,造成的伤害提高#2[i]%,持续#3[i]回合。", - "params": [ - [ - 0.16, - 0.18, - 1 - ], - [ - 0.2, - 0.21, - 1 - ], - [ - 0.24, - 0.24, - 1 - ], - [ - 0.28, - 0.27, - 1 - ], - [ - 0.32, - 0.3, - 1 - ] - ], - "properties": [ - [ - { - "type": "AttackAddedRatio", - "value": 0.16 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.2 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.28 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.32 - } - ] - ] - }, - "23000": { - "id": "23000", - "skill": "流星群", - "desc": "场上每有1个敌方目标,使装备者的攻击力提高#2[f1]%,该效果最多叠加5层。当有敌方目标的弱点被击破时,装备者造成的伤害提高#1[i]%,持续1回合。", - "params": [ - [ - 0.3, - 0.09 - ], - [ - 0.35, - 0.105 - ], - [ - 0.4, - 0.12 - ], - [ - 0.45, - 0.135 - ], - [ - 0.5, - 0.15 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "23001": { - "id": "23001", - "skill": "花与蝶", - "desc": "使装备者的暴击率提高#1[i]%。当装备者在战斗中速度大于100时,每超过#2[i]点,普攻和战技造成的伤害提高#3[i]%,同时终结技的暴击伤害提高#4[i]%,该效果可叠加#5[i]层。", - "params": [ - [ - 0.18, - 10, - 0.06, - 0.12, - 6 - ], - [ - 0.21, - 10, - 0.07, - 0.14, - 6 - ], - [ - 0.24, - 10, - 0.08, - 0.16, - 6 - ], - [ - 0.27, - 10, - 0.09, - 0.18, - 6 - ], - [ - 0.3, - 10, - 0.1, - 0.2, - 6 - ] - ], - "properties": [ - [ - { - "type": "CriticalChanceBase", - "value": 0.18 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.21 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.24 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.27 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.3 - } - ] - ] - }, - "23002": { - "id": "23002", - "skill": "家人", - "desc": "使装备者的攻击力提高#1[i]%。当装备者消灭敌方目标或受到攻击后,立即回复等同于装备者攻击力#2[i]%的生命值,同时造成的伤害提高#3[i]%,持续到自身下个回合结束。该效果不可叠加,每回合只可触发1次。", - "params": [ - [ - 0.24, - 0.08, - 0.24 - ], - [ - 0.28, - 0.09, - 0.28 - ], - [ - 0.32, - 0.1, - 0.32 - ], - [ - 0.36, - 0.11, - 0.36 - ], - [ - 0.4, - 0.12, - 0.4 - ] - ], - "properties": [ - [ - { - "type": "AttackAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.28 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.32 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.36 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.4 - } - ] - ] - }, - "23003": { - "id": "23003", - "skill": "继承人", - "desc": "使装备者的能量恢复效率提高#1[i]%,并在对我方目标施放终结技时恢复1个战技点。该效果每施放2次终结技可触发1次。当装备者施放战技后,使下一个行动的我方其他目标造成的伤害提高#2[i]%,持续#3[i]回合。", - "params": [ - [ - 0.1, - 0.3, - 1 - ], - [ - 0.12, - 0.35, - 1 - ], - [ - 0.14, - 0.4, - 1 - ], - [ - 0.16, - 0.45, - 1 - ], - [ - 0.18, - 0.5, - 1 - ] - ], - "properties": [ - [ - { - "type": "SPRatioBase", - "value": 0.1 - } - ], - [ - { - "type": "SPRatioBase", - "value": 0.12 - } - ], - [ - { - "type": "SPRatioBase", - "value": 0.14 - } - ], - [ - { - "type": "SPRatioBase", - "value": 0.16 - } - ], - [ - { - "type": "SPRatioBase", - "value": 0.18 - } - ] - ] - }, - "23004": { - "id": "23004", - "skill": "传承者", - "desc": "使装备者对陷入负面效果的敌方目标造成的伤害提高#1[i]%。当装备者施放战技时,装备者此次攻击的效果命中提高#2[i]%,攻击力提高#3[i]%。", - "params": [ - [ - 0.24, - 0.18, - 0.24 - ], - [ - 0.28, - 0.21, - 0.28 - ], - [ - 0.32, - 0.24, - 0.32 - ], - [ - 0.36, - 0.27, - 0.36 - ], - [ - 0.4, - 0.3, - 0.4 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "23005": { - "id": "23005", - "skill": "决断", - "desc": "使装备者的防御力提高#2[i]%,效果命中提高#4[i]%,同时使自身受到攻击的概率提高。当装备者受到攻击后,防御力额外提高#3[i]%,持续到自身回合结束。", - "params": [ - [ - 2, - 0.24, - 0.24, - 0.24 - ], - [ - 2, - 0.28, - 0.28, - 0.28 - ], - [ - 2, - 0.32, - 0.32, - 0.32 - ], - [ - 2, - 0.36, - 0.36, - 0.36 - ], - [ - 2, - 0.4, - 0.4, - 0.4 - ] - ], - "properties": [ - [ - { - "type": "DefenceAddedRatio", - "value": 0.24 - }, - { - "type": "StatusProbabilityBase", - "value": 0.24 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.28 - }, - { - "type": "StatusProbabilityBase", - "value": 0.28 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.32 - }, - { - "type": "StatusProbabilityBase", - "value": 0.32 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.36 - }, - { - "type": "StatusProbabilityBase", - "value": 0.36 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.4 - }, - { - "type": "StatusProbabilityBase", - "value": 0.4 - } - ] - ] - }, - "23006": { - "id": "23006", - "skill": "蜘蛛的网", - "desc": "使装备者造成的伤害提高#2[i]%。装备者每次施放攻击后,速度提高#3[f1]%,最多叠加#4[i]层。\n当装备者击中敌方目标时,如果该目标不处于【游丝】状态,则有100%的基础概率使其陷入【游丝】状态。当敌方目标处于【游丝】状态时,也会被视为陷入了触电状态。【游丝】状态下,敌方目标每回合开始时受到等同于装备者#1[i]%攻击力的雷属性持续伤害,持续#5[i]回合。", - "params": [ - [ - 0.6, - 0.24, - 0.048, - 3, - 1 - ], - [ - 0.7, - 0.28, - 0.056, - 3, - 1 - ], - [ - 0.8, - 0.32, - 0.064, - 3, - 1 - ], - [ - 0.9, - 0.36, - 0.072, - 3, - 1 - ], - [ - 1, - 0.4, - 0.08, - 3, - 1 - ] - ], - "properties": [ - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.28 - } - ], - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.32 - } - ], - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.36 - } - ], - [ - { - "type": "AllDamageTypeAddedRatio", - "value": 0.4 - } - ] - ] - }, - "23007": { - "id": "23007", - "skill": "幻影现实", - "desc": "使装备者的效果命中提高#1[i]%。当装备者对同时处于大于等于#4[i]个负面效果的敌方目标造成伤害时,暴击率提高#5[i]%。装备者施放普攻、战技、终结技后,有#2[i]%的基础概率对随机1个未持有【以太编码】的受击目标施加【以太编码】。持有【以太编码】的目标受到的伤害提高#3[i]%,持续1回合。", - "params": [ - [ - 0.24, - 1, - 0.12, - 3, - 0.12 - ], - [ - 0.28, - 1, - 0.14, - 3, - 0.14 - ], - [ - 0.32, - 1, - 0.16, - 3, - 0.16 - ], - [ - 0.36, - 1, - 0.18, - 3, - 0.18 - ], - [ - 0.4, - 1, - 0.2, - 3, - 0.2 - ] - ], - "properties": [ - [ - { - "type": "StatusProbabilityBase", - "value": 0.24 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.28 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.32 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.36 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.4 - } - ] - ] - }, - "23008": { - "id": "23008", - "skill": "荆棘", - "desc": "使装备者的攻击力提高#1[i]%。当装备者施放攻击后,每击中1名不同的敌方目标,恢复#3[f1]点能量,每次攻击最多通过该方式恢复#4[i]次能量。当装备者施放终结技后,使我方全体速度提高#2[i]点,持续1回合。", - "params": [ - [ - 0.24, - 12, - 3, - 3 - ], - [ - 0.28, - 14, - 3.5, - 3 - ], - [ - 0.32, - 16, - 4, - 3 - ], - [ - 0.36, - 18, - 4.5, - 3 - ], - [ - 0.4, - 20, - 5, - 3 - ] - ], - "properties": [ - [ - { - "type": "AttackAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.28 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.32 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.36 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.4 - } - ] - ] - }, - "23009": { - "id": "23009", - "skill": "不得", - "desc": "使装备者的暴击率提高#1[i]%,生命上限提高#2[i]%。当装备者受到攻击或装备者消耗自身生命值后,造成的伤害提高#3[i]%,该效果在装备者施放攻击后解除。", - "params": [ - [ - 0.18, - 0.18, - 0.24 - ], - [ - 0.21, - 0.21, - 0.28 - ], - [ - 0.24, - 0.24, - 0.32 - ], - [ - 0.27, - 0.27, - 0.36 - ], - [ - 0.3, - 0.3, - 0.4 - ] - ], - "properties": [ - [ - { - "type": "CriticalChanceBase", - "value": 0.18 - }, - { - "type": "HPAddedRatio", - "value": 0.18 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.21 - }, - { - "type": "HPAddedRatio", - "value": 0.21 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.24 - }, - { - "type": "HPAddedRatio", - "value": 0.24 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.27 - }, - { - "type": "HPAddedRatio", - "value": 0.27 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.3 - }, - { - "type": "HPAddedRatio", - "value": 0.3 - } - ] - ] - }, - "23010": { - "id": "23010", - "skill": "长夜", - "desc": "使装备者暴击伤害提高#1[i]%。使装备者战技和终结技造成的伤害提高#2[i]%。当装备者施放战技或终结技后,获得【梦身】效果。触发追加攻击时,消耗【梦身】,使追加攻击造成的伤害提高#3[i]%。", - "params": [ - [ - 0.36, - 0.18, - 0.48 - ], - [ - 0.42, - 0.21, - 0.56 - ], - [ - 0.48, - 0.24, - 0.64 - ], - [ - 0.54, - 0.27, - 0.72 - ], - [ - 0.6, - 0.3, - 0.8 - ] - ], - "properties": [ - [ - { - "type": "CriticalDamageBase", - "value": 0.36 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.42 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.48 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.54 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.6 - } - ] - ] - }, - "23011": { - "id": "23011", - "skill": "视界", - "desc": "使装备者的生命上限提高#1[i]%,能量恢复效率提高#4[i]%。当装备者的生命值降低时,使我方全体造成的伤害提高#2[f1]%,持续#5[i]回合。\n每个波次开始时,为我方全体回复等同于各自已损失生命值#3[i]%的生命值。", - "params": [ - [ - 0.24, - 0.09, - 0.8, - 0.12, - 2 - ], - [ - 0.28, - 0.105, - 0.85, - 0.14, - 2 - ], - [ - 0.32, - 0.12, - 0.9, - 0.16, - 2 - ], - [ - 0.36, - 0.135, - 0.95, - 0.18, - 2 - ], - [ - 0.4, - 0.15, - 1, - 0.2, - 2 - ] - ], - "properties": [ - [ - { - "type": "HPAddedRatio", - "value": 0.24 - }, - { - "type": "SPRatioBase", - "value": 0.12 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.28 - }, - { - "type": "SPRatioBase", - "value": 0.14 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.32 - }, - { - "type": "SPRatioBase", - "value": 0.16 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.36 - }, - { - "type": "SPRatioBase", - "value": 0.18 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.4 - }, - { - "type": "SPRatioBase", - "value": 0.2 - } - ] - ] - }, - "23012": { - "id": "23012", - "skill": "美梦", - "desc": "使装备者的暴击伤害提高#1[i]%。当装备者的普攻或战技伤害未造成暴击时,使自身暴击率提高#2[i]%,持续#3[i]回合。该效果每#4[i]回合可以触发1次。", - "params": [ - [ - 0.3, - 0.36, - 1, - 3 - ], - [ - 0.35, - 0.42, - 1, - 3 - ], - [ - 0.4, - 0.48, - 1, - 3 - ], - [ - 0.45, - 0.54, - 1, - 3 - ], - [ - 0.5, - 0.6, - 1, - 3 - ] - ], - "properties": [ - [ - { - "type": "CriticalDamageBase", - "value": 0.3 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.35 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.4 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.45 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.5 - } - ] - ] - }, - "23013": { - "id": "23013", - "skill": "日有四时", - "desc": "使装备者生命上限提高#1[i]%,治疗量提高#2[i]%。当装备者对我方目标提供治疗时,记录治疗量。当任意我方目标施放攻击后,根据记录治疗量的#3[i]%,对随机1个受到攻击的敌方目标造成基于装备者属性的附加伤害。该伤害不受加成影响,每回合最多结算1次。", - "params": [ - [ - 0.18, - 0.12, - 0.36 - ], - [ - 0.21, - 0.14, - 0.42 - ], - [ - 0.24, - 0.16, - 0.48 - ], - [ - 0.27, - 0.18, - 0.54 - ], - [ - 0.3, - 0.2, - 0.6 - ] - ], - "properties": [ - [ - { - "type": "HPAddedRatio", - "value": 0.18 - }, - { - "type": "HealRatioBase", - "value": 0.12 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.21 - }, - { - "type": "HealRatioBase", - "value": 0.14 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.24 - }, - { - "type": "HealRatioBase", - "value": 0.16 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.27 - }, - { - "type": "HealRatioBase", - "value": 0.18 - } - ], - [ - { - "type": "HPAddedRatio", - "value": 0.3 - }, - { - "type": "HealRatioBase", - "value": 0.2 - } - ] - ] - }, - "23014": { - "id": "23014", - "skill": "执此宵玉", - "desc": "使装备者的暴击伤害提高#1[i]%。当队友受到攻击或消耗生命值后,装备者获得1层【月蚀】,最多叠加#2[i]层。每层【月蚀】使装备者下一次攻击造成的伤害提高#3[f1]%。叠满#2[i]层时,额外使该次攻击无视目标#4[i]%的防御力。该效果在装备者施放攻击后解除。", - "params": [ - [ - 0.2, - 3, - 0.14, - 0.12 - ], - [ - 0.23, - 3, - 0.165, - 0.14 - ], - [ - 0.26, - 3, - 0.19, - 0.16 - ], - [ - 0.29, - 3, - 0.215, - 0.18 - ], - [ - 0.32, - 3, - 0.24, - 0.2 - ] - ], - "properties": [ - [ - { - "type": "CriticalDamageBase", - "value": 0.2 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.23 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.26 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.29 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.32 - } - ] - ] - }, - "23015": { - "id": "23015", - "skill": "抵死", - "desc": "使装备者的暴击率提高#1[i]%。当装备者施放普攻时,获得1层【龙吟】,持续#2[i]回合。每层【龙吟】使装备者的攻击力提高#4[i]%,能量恢复效率提高#5[f1]%。【龙吟】最多叠加#3[i]层。", - "params": [ - [ - 0.18, - 2, - 2, - 0.18, - 0.06 - ], - [ - 0.21, - 2, - 2, - 0.21, - 0.07 - ], - [ - 0.24, - 2, - 2, - 0.24, - 0.08 - ], - [ - 0.27, - 2, - 2, - 0.27, - 0.09 - ], - [ - 0.3, - 2, - 2, - 0.3, - 0.1 - ] - ], - "properties": [ - [ - { - "type": "CriticalChanceBase", - "value": 0.18 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.21 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.24 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.27 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.3 - } - ] - ] - }, - "23016": { - "id": "23016", - "skill": "一个一个来", - "desc": "使装备者暴击率提高#1[i]%,追加攻击造成的伤害提高#2[i]%。装备者施放追加攻击后,使目标陷入【温驯】状态,该效果最多叠加#4[i]层。我方目标击中【温驯】状态下的敌方目标时,每层【温驯】使造成的暴击伤害提高#3[i]%。", - "params": [ - [ - 0.18, - 0.3, - 0.12, - 2 - ], - [ - 0.21, - 0.35, - 0.14, - 2 - ], - [ - 0.24, - 0.4, - 0.16, - 2 - ], - [ - 0.27, - 0.45, - 0.18, - 2 - ], - [ - 0.3, - 0.5, - 0.2, - 2 - ] - ], - "properties": [ - [ - { - "type": "CriticalChanceBase", - "value": 0.18 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.21 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.24 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.27 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.3 - } - ] - ] - }, - "23017": { - "id": "23017", - "skill": "深度深呼吸", - "desc": "使装备者的能量恢复效率提高#1[i]%。我方目标施放终结技时,装备者为当前生命值百分比最低的我方目标回复等同于其#2[i]%生命上限的生命值。当装备者为我方目标提供治疗时,使该目标的攻击力提高#3[f1]%,该效果最多叠加#4[i]层,持续#5[i]回合。", - "params": [ - [ - 0.12, - 0.1, - 0.024, - 5, - 2 - ], - [ - 0.14, - 0.11, - 0.028, - 5, - 2 - ], - [ - 0.16, - 0.12, - 0.032, - 5, - 2 - ], - [ - 0.18, - 0.13, - 0.036, - 5, - 2 - ], - [ - 0.2, - 0.14, - 0.04, - 5, - 2 - ] - ], - "properties": [ - [ - { - "type": "SPRatioBase", - "value": 0.12 - } - ], - [ - { - "type": "SPRatioBase", - "value": 0.14 - } - ], - [ - { - "type": "SPRatioBase", - "value": 0.16 - } - ], - [ - { - "type": "SPRatioBase", - "value": 0.18 - } - ], - [ - { - "type": "SPRatioBase", - "value": 0.2 - } - ] - ] - }, - "23018": { - "id": "23018", - "skill": "骑士巡礼", - "desc": "使装备者的暴击伤害提高#1[i]%。当装备者施放终结技时,根据装备者的能量上限,提高装备者终结技造成的伤害:每点能量提高#2[f2]%,最多计入#3[i]点。", - "params": [ - [ - 0.36, - 0.0036, - 180 - ], - [ - 0.42, - 0.0042, - 180 - ], - [ - 0.48, - 0.0048, - 180 - ], - [ - 0.54, - 0.0054, - 180 - ], - [ - 0.6, - 0.006, - 180 - ] - ], - "properties": [ - [ - { - "type": "CriticalDamageBase", - "value": 0.36 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.42 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.48 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.54 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.6 - } - ] - ] - }, - "23019": { - "id": "23019", - "skill": "彻骨梅香", - "desc": "使装备者击破特攻提高#1[i]%。装备者施放终结技后,使我方全体造成的伤害提高#2[i]%,持续#3[i]回合,并且若装备者击破特攻大于等于#4[i]%,则恢复1个战技点。\n每个波次开始时,我方全体立即恢复#5[f1]点能量,同类技能无法重复生效。", - "params": [ - [ - 0.6, - 0.24, - 3, - 1.5, - 10 - ], - [ - 0.7, - 0.28, - 3, - 1.5, - 12.5 - ], - [ - 0.8, - 0.32, - 3, - 1.5, - 15 - ], - [ - 0.9, - 0.36, - 3, - 1.5, - 17.5 - ], - [ - 1, - 0.4, - 3, - 1.5, - 20 - ] - ], - "properties": [ - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.6 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.7 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.8 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.9 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 1 - } - ] - ] - }, - "23020": { - "id": "23020", - "skill": "思想训练", - "desc": "使装备者的暴击伤害提高#1[i]%。敌方目标每承受1个负面效果,装备者对其造成的暴击伤害额外提高#2[i]%,最多叠加#3[i]层。施放终结技攻击敌方目标时,使装备者获得【论辩】效果,造成的伤害提高#4[i]%,追加攻击无视目标#5[i]%的防御力,该效果持续#6[i]回合。", - "params": [ - [ - 0.2, - 0.08, - 3, - 0.36, - 0.24, - 2 - ], - [ - 0.23, - 0.09, - 3, - 0.42, - 0.28, - 2 - ], - [ - 0.26, - 0.1, - 3, - 0.48, - 0.32, - 2 - ], - [ - 0.29, - 0.11, - 3, - 0.54, - 0.36, - 2 - ], - [ - 0.32, - 0.12, - 3, - 0.6, - 0.4, - 2 - ] - ], - "properties": [ - [ - { - "type": "CriticalDamageBase", - "value": 0.2 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.23 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.26 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.29 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.32 - } - ] - ] - }, - "23021": { - "id": "23021", - "skill": "善变", - "desc": "使装备者的暴击伤害提高#1[i]%。战斗开始时,使装备者获得【假面】,持续#6[i]回合。当装备者持有【假面】时,装备者的队友暴击率提高#5[i]%,暴击伤害提高#2[i]%。装备者每恢复1个战技点,获得1层【彩焰】,恢复时溢出的战技点也会被计算在内。当【彩焰】达到#4[i]层后,移除所有【彩焰】并获得【假面】,持续#3[i]回合。", - "params": [ - [ - 0.32, - 0.28, - 4, - 4, - 0.1, - 3 - ], - [ - 0.39, - 0.35, - 4, - 4, - 0.11, - 3 - ], - [ - 0.46, - 0.42, - 4, - 4, - 0.12, - 3 - ], - [ - 0.53, - 0.49, - 4, - 4, - 0.13, - 3 - ], - [ - 0.6, - 0.56, - 4, - 4, - 0.14, - 3 - ] - ], - "properties": [ - [ - { - "type": "CriticalDamageBase", - "value": 0.32 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.39 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.46 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.53 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.6 - } - ] - ] - }, - "23022": { - "id": "23022", - "skill": "结晶", - "desc": "使装备者的效果命中提高#1[i]%。装备者对陷入风化、灼烧、触电、裂伤状态的敌方目标造成伤害时,分别获得1层【先知】,最多叠加#4[i]层。单场战斗中,每种持续伤害状态类型仅可叠加1次【先知】效果。每层【先知】使装备者的攻击力提高#2[i]%,造成的持续伤害无视目标#3[f1]%的防御力。", - "params": [ - [ - 0.4, - 0.05, - 0.072, - 4 - ], - [ - 0.45, - 0.06, - 0.079, - 4 - ], - [ - 0.5, - 0.07, - 0.086, - 4 - ], - [ - 0.55, - 0.08, - 0.093, - 4 - ], - [ - 0.6, - 0.09, - 0.1, - 4 - ] - ], - "properties": [ - [ - { - "type": "StatusProbabilityBase", - "value": 0.4 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.45 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.5 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.55 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.6 - } - ] - ] - }, - "23023": { - "id": "23023", - "skill": "全下", - "desc": "使装备者的防御力提高#1[i]%,当装备者为我方目标提供护盾时,使装备者的暴击伤害提高#2[i]%,持续#3[i]回合。当装备者发动追加攻击击中敌方目标时,有#4[i]%的基础概率使受到攻击的敌方目标受到的伤害提高#5[f1]%,持续#6[i]回合。", - "params": [ - [ - 0.4, - 0.4, - 2, - 1, - 0.1, - 2 - ], - [ - 0.46, - 0.46, - 2, - 1.15, - 0.115, - 2 - ], - [ - 0.52, - 0.52, - 2, - 1.3, - 0.13, - 2 - ], - [ - 0.58, - 0.58, - 2, - 1.45, - 0.145, - 2 - ], - [ - 0.64, - 0.64, - 2, - 1.6, - 0.16, - 2 - ] - ], - "properties": [ - [ - { - "type": "DefenceAddedRatio", - "value": 0.4 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.46 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.52 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.58 - } - ], - [ - { - "type": "DefenceAddedRatio", - "value": 0.64 - } - ] - ] - }, - "23024": { - "id": "23024", - "skill": "司渡", - "desc": "使装备者的暴击伤害提高#1[i]%。当装备者击中敌方目标时,使敌方陷入【泡影】状态,持续1回合。装备者每次攻击时,对每个目标只可触发1次。装备者对陷入【泡影】状态的目标造成的伤害提高#2[i]%,终结技造成的伤害额外提高#3[i]%。", - "params": [ - [ - 0.36, - 0.24, - 0.24 - ], - [ - 0.42, - 0.28, - 0.28 - ], - [ - 0.48, - 0.32, - 0.32 - ], - [ - 0.54, - 0.36, - 0.36 - ], - [ - 0.6, - 0.4, - 0.4 - ] - ], - "properties": [ - [ - { - "type": "CriticalDamageBase", - "value": 0.36 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.42 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.48 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.54 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.6 - } - ] - ] - }, - "23025": { - "id": "23025", - "skill": "蜕变", - "desc": "使装备者的击破特攻提高#1[i]%。当装备者对敌方目标造成击破伤害时,使敌方陷入【溃败】状态,持续#4[i]回合。【溃败】状态下目标受到装备者造成的击破伤害提高#2[f1]%,速度降低#3[i]%,同类效果无法叠加。", - "params": [ - [ - 0.6, - 0.24, - 0.2, - 2 - ], - [ - 0.7, - 0.28, - 0.2, - 2 - ], - [ - 0.8, - 0.32, - 0.2, - 2 - ], - [ - 0.9, - 0.36, - 0.2, - 2 - ], - [ - 1, - 0.4, - 0.2, - 2 - ] - ], - "properties": [ - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.6 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.7 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.8 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.9 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 1 - } - ] - ] - }, - "23026": { - "id": "23026", - "skill": "抚慰", - "desc": "我方角色每次攻击时,使装备者获得1层【歌咏】,每层【歌咏】使装备者的能量恢复效率提高#1[f1]%,最多叠加#2[i]层。装备者施放终结技时,移除【歌咏】并获得【华彩】,【华彩】使装备者的攻击力提高#4[i]%,使我方全体造成的伤害提高#3[i]%,持续#5[i]回合。", - "params": [ - [ - 0.03, - 5, - 0.24, - 0.48, - 1 - ], - [ - 0.035, - 5, - 0.28, - 0.6, - 1 - ], - [ - 0.04, - 5, - 0.32, - 0.72, - 1 - ], - [ - 0.045, - 5, - 0.36, - 0.84, - 1 - ], - [ - 0.05, - 5, - 0.4, - 0.96, - 1 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "23027": { - "id": "23027", - "skill": "苦航", - "desc": "使装备者的击破特攻提高#1[i]%,造成的击破伤害无视目标#3[i]%的防御力。当装备者在战斗中击破特攻大于等于#2[i]%时,速度提高#4[i]%。", - "params": [ - [ - 0.6, - 1.5, - 0.2, - 0.12 - ], - [ - 0.7, - 1.5, - 0.23, - 0.14 - ], - [ - 0.8, - 1.5, - 0.26, - 0.16 - ], - [ - 0.9, - 1.5, - 0.29, - 0.18 - ], - [ - 1, - 1.5, - 0.32, - 0.2 - ] - ], - "properties": [ - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.6 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.7 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.8 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.9 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 1 - } - ] - ] - }, - "23028": { - "id": "23028", - "skill": "承诺", - "desc": "使装备者的暴击率提高#1[i]%。当装备者在战斗中暴击伤害大于#2[i]%时,每超过#3[i]%,追加攻击造成的伤害提高#4[i]%,该效果可叠加#5[i]层。战斗开始时和装备者施放普攻后,使终结技或追加攻击造成的伤害无视目标#6[i]%的防御,持续#7[i]回合。", - "params": [ - [ - 0.16, - 1.2, - 0.2, - 0.12, - 4, - 0.2, - 2 - ], - [ - 0.19, - 1.2, - 0.2, - 0.14, - 4, - 0.24, - 2 - ], - [ - 0.22, - 1.2, - 0.2, - 0.16, - 4, - 0.28, - 2 - ], - [ - 0.25, - 1.2, - 0.2, - 0.18, - 4, - 0.32, - 2 - ], - [ - 0.28, - 1.2, - 0.2, - 0.2, - 4, - 0.36, - 2 - ] - ], - "properties": [ - [ - { - "type": "CriticalChanceBase", - "value": 0.16 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.19 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.22 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.25 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.28 - } - ] - ] - }, - "23029": { - "id": "23029", - "skill": "世事无痕", - "desc": "使装备者的效果命中提高#1[i]%,装备者施放普攻、战技、终结技攻击敌方目标后,有#2[i]%的基础概率使其陷入【卸甲】状态。【卸甲】状态下,敌方目标受到的伤害提高#3[i]%,持续#4[i]回合。若目标处于装备者施加的持续伤害状态,则有#5[i]%的基础概率将装备者施加的【卸甲】状态升级成【穷寇】状态,使敌方目标受到的伤害额外提高#6[i]%,持续#4[i]回合,期间装备者无法对其施加【卸甲】。", - "params": [ - [ - 0.6, - 0.6, - 0.1, - 2, - 0.6, - 0.14 - ], - [ - 0.7, - 0.6, - 0.12, - 2, - 0.6, - 0.16 - ], - [ - 0.8, - 0.6, - 0.14, - 2, - 0.6, - 0.18 - ], - [ - 0.9, - 0.6, - 0.16, - 2, - 0.6, - 0.2 - ], - [ - 1, - 0.6, - 0.18, - 2, - 0.6, - 0.22 - ] - ], - "properties": [ - [ - { - "type": "StatusProbabilityBase", - "value": 0.6 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.7 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.8 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 0.9 - } - ], - [ - { - "type": "StatusProbabilityBase", - "value": 1 - } - ] - ] - }, - "23030": { - "id": "23030", - "skill": "沉酣", - "desc": "使装备者受到攻击的概率大幅提高,暴击伤害提高#1[i]%。当装备者施放终结技后,获得1层【火舞】,持续2回合,最多叠加#2[i]层。每层【火舞】使装备者追加攻击造成的伤害提高#3[i]%。", - "params": [ - [ - 0.36, - 2, - 0.36, - 5 - ], - [ - 0.42, - 2, - 0.42, - 5 - ], - [ - 0.48, - 2, - 0.48, - 5 - ], - [ - 0.54, - 2, - 0.54, - 5 - ], - [ - 0.6, - 2, - 0.6, - 5 - ] - ], - "properties": [ - [ - { - "type": "CriticalDamageBase", - "value": 0.36 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.42 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.48 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.54 - } - ], - [ - { - "type": "CriticalDamageBase", - "value": 0.6 - } - ] - ] - }, - "23031": { - "id": "23031", - "skill": "震慑", - "desc": "使装备者的暴击率提高#1[f1]%。装备者施放追加攻击时,获得1层【流光】,最多叠加#3[i]层。每层【流光】使装备者造成的终结技伤害无视目标#2[i]%的防御力。装备者回合结束时,移除1层【流光】。", - "params": [ - [ - 0.15, - 0.27, - 2 - ], - [ - 0.175, - 0.3, - 2 - ], - [ - 0.2, - 0.33, - 2 - ], - [ - 0.225, - 0.36, - 2 - ], - [ - 0.25, - 0.39, - 2 - ] - ], - "properties": [ - [ - { - "type": "CriticalChanceBase", - "value": 0.15 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.175 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.2 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.225 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.25 - } - ] - ] - }, - "23032": { - "id": "23032", - "skill": "安心", - "desc": "使装备者击破特攻提高#1[i]%。装备者施放终结技攻击敌方目标后,使其陷入【忘忧】状态,持续#5[i]回合,【忘忧】状态下的敌方目标受到的伤害提高#2[i]%,若装备者当前击破特攻大于等于#3[i]%,受到的伤害提高效果额外提高#4[i]%。", - "params": [ - [ - 0.6, - 0.1, - 1.5, - 0.08, - 2 - ], - [ - 0.7, - 0.12, - 1.5, - 0.1, - 2 - ], - [ - 0.8, - 0.14, - 1.5, - 0.12, - 2 - ], - [ - 0.9, - 0.16, - 1.5, - 0.14, - 2 - ], - [ - 1, - 0.18, - 1.5, - 0.16, - 2 - ] - ], - "properties": [ - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.6 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.7 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.8 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.9 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 1 - } - ] - ] - }, - "24000": { - "id": "24000", - "skill": "扑火", - "desc": "当装备者施放攻击时,使装备者本场战斗中的攻击力提高#1[i]%,该效果最多叠加#2[i]层。当装备者击破敌方目标弱点后,造成的伤害提高#3[i]%,持续#4[i]回合。", - "params": [ - [ - 0.08, - 4, - 0.12, - 2 - ], - [ - 0.1, - 4, - 0.15, - 2 - ], - [ - 0.12, - 4, - 0.18, - 2 - ], - [ - 0.14, - 4, - 0.21, - 2 - ], - [ - 0.16, - 4, - 0.24, - 2 - ] - ], - "properties": [ - [], - [], - [], - [], - [] - ] - }, - "24001": { - "id": "24001", - "skill": "猎逐", - "desc": "使装备者的暴击率提高#1[i]%,装备者对生命值百分比小于等于#2[i]%的敌方目标暴击率额外提高#3[i]%。当装备者消灭敌方目标后,攻击力提高#4[i]%,持续#5[i]回合。", - "params": [ - [ - 0.08, - 0.5, - 0.08, - 0.2, - 2 - ], - [ - 0.1, - 0.5, - 0.1, - 0.25, - 2 - ], - [ - 0.12, - 0.5, - 0.12, - 0.3, - 2 - ], - [ - 0.14, - 0.5, - 0.14, - 0.35, - 2 - ], - [ - 0.16, - 0.5, - 0.16, - 0.4, - 2 - ] - ], - "properties": [ - [ - { - "type": "CriticalChanceBase", - "value": 0.08 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.1 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.12 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.14 - } - ], - [ - { - "type": "CriticalChanceBase", - "value": 0.16 - } - ] - ] - }, - "24002": { - "id": "24002", - "skill": "珍存", - "desc": "使装备者的效果抵抗提高#1[i]%,当装备者受到攻击后,如果自身未持有护盾,则获得1个等同于装备者#2[i]%生命上限的护盾,持续#3[i]回合。该效果每#4[i]回合只能触发1次。如果装备者持有护盾,则使自身受到的伤害降低#5[i]%。", - "params": [ - [ - 0.08, - 0.16, - 2, - 3, - 0.12 - ], - [ - 0.1, - 0.2, - 2, - 3, - 0.15 - ], - [ - 0.12, - 0.24, - 2, - 3, - 0.18 - ], - [ - 0.14, - 0.28, - 2, - 3, - 0.21 - ], - [ - 0.16, - 0.32, - 2, - 3, - 0.24 - ] - ], - "properties": [ - [ - { - "type": "StatusResistanceBase", - "value": 0.08 - } - ], - [ - { - "type": "StatusResistanceBase", - "value": 0.1 - } - ], - [ - { - "type": "StatusResistanceBase", - "value": 0.12 - } - ], - [ - { - "type": "StatusResistanceBase", - "value": 0.14 - } - ], - [ - { - "type": "StatusResistanceBase", - "value": 0.16 - } - ] - ] - }, - "24003": { - "id": "24003", - "skill": "混沌灵药", - "desc": "使装备者的击破特攻提高#1[i]%。当装备者施放终结技时,使装备者造成的持续伤害提高#2[i]%,持续#3[i]回合。陷入装备者施加的持续伤害效果的敌方目标被消灭时,装备者恢复#4[f1]点能量。", - "params": [ - [ - 0.2, - 0.24, - 2, - 4 - ], - [ - 0.25, - 0.3, - 2, - 4.5 - ], - [ - 0.3, - 0.36, - 2, - 5 - ], - [ - 0.35, - 0.42, - 2, - 5.5 - ], - [ - 0.4, - 0.48, - 2, - 6 - ] - ], - "properties": [ - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.2 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.25 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.3 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.35 - } - ], - [ - { - "type": "BreakDamageAddedRatioBase", - "value": 0.4 - } - ] - ] - }, - "24004": { - "id": "24004", - "skill": "无界之思", - "desc": "使装备者的攻击力提高#1[i]%。施放攻击后,每击中一名敌方目标,使攻击力额外提高#2[i]%,该效果最多叠加5次,持续至下次攻击后,若击中大于等于#3[i]名敌方目标,使自身速度提高#4[i]%,持续#5[i]回合。", - "params": [ - [ - 0.08, - 0.04, - 3, - 0.08, - 1 - ], - [ - 0.09, - 0.05, - 3, - 0.1, - 1 - ], - [ - 0.1, - 0.06, - 3, - 0.12, - 1 - ], - [ - 0.11, - 0.07, - 3, - 0.14, - 1 - ], - [ - 0.12, - 0.08, - 3, - 0.16, - 1 - ] - ], - "properties": [ - [ - { - "type": "AttackAddedRatio", - "value": 0.08 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.09 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.1 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.11 - } - ], - [ - { - "type": "AttackAddedRatio", - "value": 0.12 - } - ] - ] - } -} \ No newline at end of file diff --git a/starrail_damage_cal/excel/model.py b/starrail_damage_cal/excel/model.py index 8b5ea86..4a94aff 100644 --- a/starrail_damage_cal/excel/model.py +++ b/starrail_damage_cal/excel/model.py @@ -1,13 +1,10 @@ +import json +from pathlib import Path from typing import List, Union from msgspec import Struct, convert -from ..excel.read_excel import ( - AvatarPromotion, - EquipmentPromotion, - RelicMainAffix, - RelicSubAffix, -) +EXCEL = Path(__file__).parent class PromotionCost(Struct): @@ -70,8 +67,14 @@ class SingleRelicSubAffix(Struct): StepValue: PromotionAttr StepNum: int +with Path.open(EXCEL / "RelicMainAffixConfig.json", encoding="utf8") as f: + RelicMainAffixConfig = convert(json.load(f), List[SingleRelicMainAffix]) -AvatarPromotionConfig = convert(AvatarPromotion, List[SingleAvatarPromotion]) -EquipmentPromotionConfig = convert(EquipmentPromotion, List[SingleEquipmentPromotion]) -RelicMainAffixConfig = convert(RelicMainAffix, List[SingleRelicMainAffix]) -RelicSubAffixConfig = convert(RelicSubAffix, List[SingleRelicSubAffix]) +with Path.open(EXCEL / "RelicSubAffixConfig.json", encoding="utf8") as f: + RelicSubAffixConfig = convert(json.load(f), List[SingleRelicSubAffix]) + +with Path.open(EXCEL / "AvatarPromotionConfig.json", encoding="utf8") as f: + AvatarPromotionConfig = convert(json.load(f), List[SingleAvatarPromotion]) + +with Path.open(EXCEL / "EquipmentPromotionConfig.json", encoding="utf8") as f: + EquipmentPromotionConfig = convert(json.load(f), List[SingleEquipmentPromotion]) diff --git a/starrail_damage_cal/excel/read_excel.py b/starrail_damage_cal/excel/read_excel.py deleted file mode 100644 index e17547a..0000000 --- a/starrail_damage_cal/excel/read_excel.py +++ /dev/null @@ -1,19 +0,0 @@ -import json -from pathlib import Path - -EXCEL = Path(__file__).parent - -with Path.open(EXCEL / "RelicMainAffixConfig.json", encoding="utf8") as f: - RelicMainAffix = json.load(f) - -with Path.open(EXCEL / "RelicSubAffixConfig.json", encoding="utf8") as f: - RelicSubAffix = json.load(f) - -with Path.open(EXCEL / "AvatarPromotionConfig.json", encoding="utf8") as f: - AvatarPromotion = json.load(f) - -with Path.open(EXCEL / "EquipmentPromotionConfig.json", encoding="utf8") as f: - EquipmentPromotion = json.load(f) - -with Path.open(EXCEL / "light_cone_ranks.json", encoding="utf8") as f: - light_cone_ranks = json.load(f) diff --git a/starrail_damage_cal/map/SR_MAP_PATH.py b/starrail_damage_cal/map/SR_MAP_PATH.py index 5433542..1eee1c4 100644 --- a/starrail_damage_cal/map/SR_MAP_PATH.py +++ b/starrail_damage_cal/map/SR_MAP_PATH.py @@ -1,10 +1,9 @@ -import json from pathlib import Path from typing import Dict, List, TypedDict, Union +from msgspec import Struct from msgspec import json as msgjson -from ..map.model.RelicSetSkill import RelicSetSkillModel from ..version import StarRail_version MAP = Path(__file__).parent / "data" @@ -39,11 +38,50 @@ class TS(TypedDict): Icon: Dict[str, str] -class LU(TypedDict): +class LU(Struct): id: str num: int +class TV(Struct): + type: str + value: float + + +class AbilityPropertyValue(Struct): + Value: float + + +class AbilityProperty(Struct): + PropertyType: str + Value: AbilityPropertyValue + + +class SkillTreeLevel(Struct): + promotion: int + level: int + properties: List[TV] + materials: List[LU] + + +class CharacterSkillTreeModel(Struct): + id: str + name: str + max_level: int + desc: str + params: List[List[float]] + anchor: str + pre_points: List[str] + level_up_skills: List[LU] + levels: List[SkillTreeLevel] + icon: str + + +class RelicSetStatusAdd(Struct): + Property: str + Value: float + + with Path.open(MAP / avatarId2Name_fileName, encoding="UTF-8") as f: avatarId2Name = msgjson.decode(f.read(), type=Dict[str, str]) @@ -72,13 +110,15 @@ with Path.open(MAP / rankId2Name_fileName, encoding="UTF-8") as f: rankId2Name = msgjson.decode(f.read(), type=Dict[str, str]) with Path.open(MAP / characterSkillTree_fileName, encoding="UTF-8") as f: - characterSkillTree = msgjson.decode(f.read(), type=Dict[str, Dict]) + characterSkillTree = msgjson.decode( + f.read(), type=Dict[str, Dict[str, CharacterSkillTreeModel]] + ) with Path.open(MAP / avatarId2DamageType_fileName, encoding="UTF-8") as f: avatarId2DamageType = msgjson.decode(f.read(), type=Dict[str, str]) with Path.open(MAP / "char_alias.json", encoding="UTF-8") as f: - alias_data = msgjson.decode(f.read(), type=Dict[str, Dict[str, List]]) + alias_data = msgjson.decode(f.read(), type=Dict[str, Dict[str, List[str]]]) with Path.open(MAP / avatarId2Rarity_fileName, encoding="UTF-8") as f: avatarId2Rarity = msgjson.decode(f.read(), type=Dict[str, str]) @@ -86,11 +126,13 @@ with Path.open(MAP / avatarId2Rarity_fileName, encoding="UTF-8") as f: with Path.open(MAP / EquipmentID2AbilityProperty_fileName, encoding="UTF-8") as f: EquipmentID2AbilityProperty = msgjson.decode( f.read(), - type=Dict[str, Dict[str, List]], + type=Dict[str, Dict[str, List[AbilityProperty]]], ) with Path.open(MAP / RelicSetSkill_fileName, encoding="UTF-8") as f: - RelicSetSkill = RelicSetSkillModel.from_json(json.load(f)) + RelicSetSkill = msgjson.decode( + f.read(), type=Dict[str, Dict[str, RelicSetStatusAdd]] + ) with Path.open(MAP / skillId2AttackType_fileName, encoding="UTF-8") as f: skillId2AttackType = msgjson.decode(f.read(), type=Dict[str, str]) diff --git a/starrail_damage_cal/map/data/RelicSetSkill_mapping_2.5.0.json b/starrail_damage_cal/map/data/RelicSetSkill_mapping_2.5.0.json index 99feed5..cf0af31 100644 --- a/starrail_damage_cal/map/data/RelicSetSkill_mapping_2.5.0.json +++ b/starrail_damage_cal/map/data/RelicSetSkill_mapping_2.5.0.json @@ -3,8 +3,7 @@ "2": { "Property": "HealRatioBase", "Value": 0.1 - }, - "4": {} + } }, "102": { "2": { @@ -20,54 +19,44 @@ "2": { "Property": "DefenceAddedRatio", "Value": 0.15 - }, - "4": {} + } }, "104": { "2": { "Property": "IceAddedRatio", "Value": 0.1 - }, - "4": {} + } }, "105": { "2": { "Property": "PhysicalAddedRatio", "Value": 0.1 - }, - "4": {} - }, - "106": { - "2": {}, - "4": {} + } }, + "106": {}, "107": { "2": { "Property": "FireAddedRatio", "Value": 0.1 - }, - "4": {} + } }, "108": { "2": { "Property": "QuantumAddedRatio", "Value": 0.1 - }, - "4": {} + } }, "109": { "2": { "Property": "ThunderAddedRatio", "Value": 0.1 - }, - "4": {} + } }, "110": { "2": { "Property": "WindAddedRatio", "Value": 0.1 - }, - "4": {} + } }, "111": { "2": { @@ -83,8 +72,7 @@ "2": { "Property": "ImaginaryAddedRatio", "Value": 0.1 - }, - "4": {} + } }, "301": { "2": { @@ -150,26 +138,20 @@ "2": { "Property": "HPAddedRatio", "Value": 0.12 - }, - "4": {} + } }, "114": { "2": { "Property": "SpeedAddedRatio", "Value": 0.06 - }, - "4": {} - }, - "115": { - "2": {}, - "4": {} + } }, + "115": {}, "116": { "2": { "Property": "AttackAddedRatio", "Value": 0.12 - }, - "4": {} + } }, "311": { "2": { @@ -184,7 +166,6 @@ } }, "117": { - "2": {}, "4": { "Property": "CriticalChanceBase", "Value": 0.04 @@ -194,8 +175,7 @@ "2": { "Property": "BreakDamageAddedRatioBase", "Value": 0.16 - }, - "4": {} + } }, "313": { "2": { @@ -213,8 +193,7 @@ "2": { "Property": "BreakDamageAddedRatioBase", "Value": 0.16 - }, - "4": {} + } }, "120": { "2": { @@ -226,9 +205,7 @@ "Value": 0.06 } }, - "315": { - "2": {} - }, + "315": {}, "316": { "2": { "Property": "SpeedAddedRatio", diff --git a/starrail_damage_cal/map/model/RelicSetSkill.py b/starrail_damage_cal/map/model/RelicSetSkill.py deleted file mode 100644 index 6cadd7f..0000000 --- a/starrail_damage_cal/map/model/RelicSetSkill.py +++ /dev/null @@ -1,29 +0,0 @@ -from typing import Dict, Union - -from msgspec import Struct - - -class RelicSetStatusAdd(Struct): - Property: str - Value: float - - -class RelicSetSkillModel(Struct): - RelicSet: Dict[str, Dict[str, Union[RelicSetStatusAdd, None]]] - - @classmethod - def from_json(cls, data: Dict): - return cls( - RelicSet={ - str(k): { - str(k2): RelicSetStatusAdd( - Property=v2["Property"], - Value=v2["Value"], - ) - if v2 - else None - for k2, v2 in v.items() - } - for k, v in data.items() - }, - ) diff --git a/starrail_damage_cal/map/model/__init__.py b/starrail_damage_cal/map/model/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/starrail_damage_cal/map/name_covert.py b/starrail_damage_cal/map/name_covert.py index 12b09cb..70d3b06 100644 --- a/starrail_damage_cal/map/name_covert.py +++ b/starrail_damage_cal/map/name_covert.py @@ -1,4 +1,4 @@ -from starrail_damage_cal.map.SR_MAP_PATH import ( +from ..map.SR_MAP_PATH import ( alias_data, avatarId2Name, ) diff --git a/starrail_damage_cal/mihomo/__init__.py b/starrail_damage_cal/mihomo/__init__.py index 3c8b93b..4573cd1 100644 --- a/starrail_damage_cal/mihomo/__init__.py +++ b/starrail_damage_cal/mihomo/__init__.py @@ -1,6 +1,6 @@ """Mihomo.me api 包装""" -from starrail_damage_cal.mihomo.models import MihomoData -from starrail_damage_cal.mihomo.requests import get_char_card_info as requests +from ..mihomo.models import MihomoData +from ..mihomo.requests import get_char_card_info as requests __all__ = ["requests", "MihomoData"] diff --git a/starrail_damage_cal/model.py b/starrail_damage_cal/model.py index 014bed9..294f218 100644 --- a/starrail_damage_cal/model.py +++ b/starrail_damage_cal/model.py @@ -1,4 +1,4 @@ -from typing import List, Union +from typing import List from msgspec import Struct, field diff --git a/starrail_damage_cal/mono/Character.py b/starrail_damage_cal/mono/Character.py index 8a7ddff..e1cd169 100644 --- a/starrail_damage_cal/mono/Character.py +++ b/starrail_damage_cal/mono/Character.py @@ -1,5 +1,5 @@ from collections import Counter -from typing import List +from typing import Dict, List from ..map.SR_MAP_PATH import ( EquipmentID2AbilityProperty, @@ -22,10 +22,10 @@ class Character: self.attribute_bonus = card_prop.avatarAttributeBonus self.char_relic = card_prop.RelicInfo self.base_attributes = card_prop.baseAttributes - self.add_attr = {} self.equipment = card_prop.equipmentInfo self.rarity = card_prop.avatarRarity self.eidolons = card_prop.rankList + self.add_attr: Dict[str, float] = {} async def get_equipment_info(self): base_attr = self.base_attributes @@ -36,16 +36,15 @@ class Character: equip_ability_property = ability_property[str(equip_rank)] equip_add_base_attr = equip.baseAttributes - base_attr.hp = base_attr.hp + equip_add_base_attr.hp - base_attr.attack = base_attr.attack + equip_add_base_attr.attack - base_attr.defence = base_attr.defence + equip_add_base_attr.defence + base_attr.hp += equip_add_base_attr.hp + base_attr.attack += +equip_add_base_attr.attack + base_attr.defence += equip_add_base_attr.defence self.base_attributes = base_attr for equip_ability in equip_ability_property: - property_type: str = equip_ability["PropertyType"] - value: float = equip_ability["Value"]["Value"] + property_type = equip_ability.PropertyType + value = equip_ability.Value.Value self.add_attr[property_type] = value + self.add_attr.get(property_type, 0) - return self.add_attr async def get_char_attribute_bonus(self): attribute_bonus = self.attribute_bonus @@ -84,7 +83,7 @@ class Character: count = item[1] set_value = 0 if count >= 2: - status_add = RelicSetSkill.RelicSet[str(set_id)]["2"] + status_add = RelicSetSkill[str(set_id)].get("2", None) if status_add: set_property = status_add.Property set_value = status_add.Value @@ -94,7 +93,7 @@ class Character: 0, ) if count == 4: - status_add = RelicSetSkill.RelicSet[str(set_id)]["4"] + status_add = RelicSetSkill[str(set_id)].get("4", None) if status_add: set_property = status_add.Property set_value = status_add.Value diff --git a/starrail_damage_cal/to_data.py b/starrail_damage_cal/to_data.py index 932a387..0a187b1 100644 --- a/starrail_damage_cal/to_data.py +++ b/starrail_damage_cal/to_data.py @@ -175,17 +175,17 @@ async def get_data( value=0, ), ) - status_add = characterSkillTree[str(char.avatarId)][str(behavior.pointId)][ - "levels" - ][behavior.level - 1]["properties"] - if status_add: - for property_ in status_add: - attribute_bonus_temp.statusAdd.property_ = property_["type"] - attribute_bonus_temp.statusAdd.name = Property2Name[ - property_["type"] - ] - attribute_bonus_temp.statusAdd.value = property_["value"] - char_data.avatarAttributeBonus.append(attribute_bonus_temp) + status_add = ( + characterSkillTree[str(char.avatarId)][str(behavior.pointId)] + .levels[behavior.level - 1] + .properties + ) + # if status_add: + for property_ in status_add: + attribute_bonus_temp.statusAdd.property_ = property_.type + attribute_bonus_temp.statusAdd.name = Property2Name[property_.type] + attribute_bonus_temp.statusAdd.value = property_.value + char_data.avatarAttributeBonus.append(attribute_bonus_temp) # 处理遗器 if char.relicList: @@ -265,8 +265,8 @@ async def get_data( level_up_skill = AvatarRankSkillUp[str(rank_id)] if level_up_skill: for item in level_up_skill: - skill_id = item["id"] - skill_up_num = item["num"] + skill_id = item.id + skill_up_num = item.num # 查找skill_id在不在avatarSkill中 for index, skill_item in enumerate(char_data.avatarSkill): if str(skill_id) == str(skill_item.skillId): diff --git a/test.py b/test.py index 6977532..1a4ef41 100644 --- a/test.py +++ b/test.py @@ -8,6 +8,7 @@ async def test_get_damage_data_by_uid() -> None: print(char_data) char = await cal_char_info(char_data) + print(char.add_attr) avatar = AvatarInstance(char) print(avatar.base_attr) print(avatar.attribute_bonus)