mirror of
https://github.com/PaiGramTeam/StarRailDamageCal.git
synced 2024-11-30 18:59:26 +00:00
fix bug
This commit is contained in:
parent
89d3ac4a46
commit
092a9d8174
@ -1163,7 +1163,6 @@ class Fuxuan(BaseAvatar):
|
|||||||
self.avatar_level,
|
self.avatar_level,
|
||||||
1,
|
1,
|
||||||
)
|
)
|
||||||
damagelist2[2] += damage2
|
|
||||||
skill_info_list.append({"name": "终结技", "damagelist": damagelist2})
|
skill_info_list.append({"name": "终结技", "damagelist": damagelist2})
|
||||||
|
|
||||||
# 计算终结技治疗
|
# 计算终结技治疗
|
||||||
@ -4685,42 +4684,35 @@ class Robin(BaseAvatar):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def eidolons(self):
|
def eidolons(self):
|
||||||
if self.avatar_rank >= 2:
|
if self.avatar_rank >= 1:
|
||||||
self.eidolon_attribute["CriticalDamageBase"] = 0.2
|
self.eidolon_attribute["AllDamageResistancePenetration"] = 0.24
|
||||||
if self.avatar_rank >= 6:
|
|
||||||
self.eidolon_attribute["AllDamageResistancePenetration"] = 0.2
|
|
||||||
|
|
||||||
def extra_ability(self):
|
def extra_ability(self):
|
||||||
pass
|
self.extra_ability_attribute["Talent_CriticalDamageBase"] = 0.25
|
||||||
|
|
||||||
async def getdamage(
|
async def getdamage(
|
||||||
self,
|
self,
|
||||||
base_attr: Dict[str, float],
|
base_attr: Dict[str, float],
|
||||||
attribute_bonus: Dict[str, float],
|
attribute_bonus: Dict[str, float],
|
||||||
):
|
):
|
||||||
|
|
||||||
# 战技伤害加成
|
# 战技伤害加成
|
||||||
all_damage_added_ratio = attribute_bonus.get("AllDamageAddedRatio", 0)
|
all_damage_added_ratio = attribute_bonus.get("AllDamageAddedRatio", 0)
|
||||||
attribute_bonus["AllDamageAddedRatio"] = (
|
attribute_bonus["AllDamageAddedRatio"] = all_damage_added_ratio + self.Skill_num("BPSkill", "BPSkill")
|
||||||
all_damage_added_ratio + self.Skill_num("BPSkill", "BPSkill")
|
|
||||||
)
|
|
||||||
|
|
||||||
# 终结技攻击加成计算
|
# 终结技攻击加成计算
|
||||||
attack = (
|
attack = (
|
||||||
base_attr["attack"] * (1 + attribute_bonus["AttackAddedRatio"])
|
base_attr["attack"] * (1 + attribute_bonus["AttackAddedRatio"])
|
||||||
+ attribute_bonus["AttackDelta"]
|
+ attribute_bonus["AttackDelta"]
|
||||||
)
|
)
|
||||||
add_attack = (attack * self.Skill_num("Ultra", "Ultra_A")) + self.Skill_num(
|
add_attack = (attack * self.Skill_num("Ultra", "Ultra_A")) + self.Skill_num("Ultra", "Ultra_G")
|
||||||
"Ultra", "Ultra_G"
|
attribute_bonus["AttackDelta"] = attribute_bonus.get("AttackDelta", 0) + add_attack
|
||||||
)
|
|
||||||
attribute_bonus["AttackDelta"] = (
|
|
||||||
attribute_bonus.get("AttackDelta", 0) + add_attack
|
|
||||||
)
|
|
||||||
|
|
||||||
# 天赋爆伤加成
|
# 天赋爆伤加成
|
||||||
Critical_Damage_Base = attribute_bonus.get("CriticalDamageBase", 0)
|
Critical_Damage_Base = attribute_bonus.get("CriticalDamageBase", 0)
|
||||||
attribute_bonus["CriticalDamageBase"] = Critical_Damage_Base + self.Skill_num(
|
attribute_bonus["CriticalDamageBase"] = Critical_Damage_Base + self.Skill_num("Talent", "Talent")
|
||||||
"Talent", "Talent"
|
|
||||||
)
|
|
||||||
|
|
||||||
skill_info_list = []
|
skill_info_list = []
|
||||||
# 计算普攻伤害
|
# 计算普攻伤害
|
||||||
@ -4735,33 +4727,31 @@ class Robin(BaseAvatar):
|
|||||||
self.avatar_level,
|
self.avatar_level,
|
||||||
)
|
)
|
||||||
skill_info_list.append({"name": "普攻", "damagelist": damagelist1})
|
skill_info_list.append({"name": "普攻", "damagelist": damagelist1})
|
||||||
|
|
||||||
# 计算战技治疗量
|
# 计算战技治疗量
|
||||||
skill_num = self.Skill_num("BPSkill", "BPSkill")
|
skill_num = self.Skill_num("BPSkill", "BPSkill")
|
||||||
damagelist2 = {}
|
damagelist2 = {}
|
||||||
damagelist2[0] = add_attack
|
damagelist2[0] = add_attack
|
||||||
skill_info_list.append({"name": "终结技攻击提高", "damagelist": damagelist2})
|
skill_info_list.append({"name": "终结技攻击提高", "damagelist": damagelist2})
|
||||||
|
|
||||||
# 计算追击伤害
|
# 计算追击伤害
|
||||||
skill_multiplier = self.Skill_num("Ultra", "Ultra")
|
skill_multiplier = self.Skill_num("Ultra", "Ultra")
|
||||||
add_attr_bonus = copy.deepcopy(attribute_bonus)
|
add_attr_bonus = copy.deepcopy(attribute_bonus)
|
||||||
add_attr_bonus["CriticalDamageBase"] = 1
|
add_attr_bonus['CriticalDamageBase'] = 1
|
||||||
add_attr_bonus["CriticalChanceBase"] = 0.95
|
add_attr_bonus['CriticalChanceBase'] = 0.95
|
||||||
if self.avatar_rank >= 1:
|
|
||||||
skill_multiplier = skill_multiplier + 0.72
|
|
||||||
if self.avatar_rank >= 6:
|
if self.avatar_rank >= 6:
|
||||||
add_attr_bonus["CriticalDamageBase"] = 3
|
add_attr_bonus['CriticalDamageBase'] = 5.5
|
||||||
damagelist4 = await calculate_damage(
|
damagelist4 = await calculate_damage(
|
||||||
base_attr,
|
base_attr,
|
||||||
add_attr_bonus,
|
add_attr_bonus,
|
||||||
"Talent",
|
"fujia",
|
||||||
"Talent",
|
"fujia",
|
||||||
self.avatar_element,
|
self.avatar_element,
|
||||||
skill_multiplier,
|
skill_multiplier,
|
||||||
self.avatar_level,
|
self.avatar_level,
|
||||||
)
|
)
|
||||||
skill_info_list.append({"name": "【协奏】追加伤害", "damagelist": damagelist4})
|
skill_info_list.append({"name": "【协奏】附加伤害", "damagelist": damagelist4})
|
||||||
|
|
||||||
return skill_info_list
|
return skill_info_list
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user