mirror of
https://github.com/PaiGramTeam/StarRailDamageCal.git
synced 2024-11-16 04:45:43 +00:00
Fix Mar7th defence clac
This commit is contained in:
parent
f96b7a9ed3
commit
89d3ac4a46
@ -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"},
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user