Skip to content

Commit

Permalink
fix: Clorinde talent 1
Browse files Browse the repository at this point in the history
  • Loading branch information
wormtql committed Jun 5, 2024
1 parent ae82e9f commit 057c5dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mona_core/src/character/characters/electro/clorinde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,18 @@ impl<A: Attribute> ChangeAttribute<A> for ClorindeEffect {
if self.has_talent1 && self.talent1_stack > 0.0 {
let ratio = if self.constellation >= 2 { 0.3 } else { 0.2 };
let max = if self.constellation >= 2 { 2700.0 } else { 1800.0 };
let talent1_stack = self.talent1_stack;
attribute.add_edge1(
AttributeName::ATK,
AttributeName::ExtraDmgNormalAttack,
Box::new(move |atk, _| (atk * ratio).min(max)),
Box::new(move |atk, _| (atk * ratio * talent1_stack).min(max)),
Box::new(|_x, _y, _grad| (0.0, 0.0)),
"天赋1「破夜的明焰」",
);
attribute.add_edge1(
AttributeName::ATK,
AttributeName::ExtraDmgElementalBurst,
Box::new(move |atk, _| (atk * ratio).min(max)),
Box::new(move |atk, _| (atk * ratio * talent1_stack).min(max)),
Box::new(|_x, _y, _grad| (0.0, 0.0)),
"天赋1「破夜的明焰」",
)
Expand Down

0 comments on commit 057c5dc

Please sign in to comment.