Fix Mar7th defence clac

This commit is contained in:
baiqwerdvd 2024-04-28 11:14:37 +08:00
parent f96b7a9ed3
commit 89d3ac4a46
No known key found for this signature in database
GPG Key ID: 7717E46E1797411A
2 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,6 @@
[project]
name = "starrail_damage_cal"
version = "1.5.4"
version = "1.5.5"
description = "For StarRail Role Damage Cal"
authors = [
{name = "qwerdvd", email = "105906879+qwerdvd@users.noreply.github.com"},

View File

@ -2291,10 +2291,9 @@ class Mar7th(BaseAvatar):
self.avatar_level,
)
if self.avatar_rank >= 4:
defence = (
base_attr["defence"] * (1 + attribute_bonus["DefenceAddedRatio"])
+ attribute_bonus["DefenceDelta"]
)
defence = base_attr.get("defence", 0) * (
1 + attribute_bonus.get("DefenceAddedRatio", 0)
) + attribute_bonus.get("DefenceDelta", 0)
damage_add = defence * 0.3
damagelist4[0] += damage_add
damagelist4[1] += damage_add