Skip to content

Commit

Permalink
all element
Browse files Browse the repository at this point in the history
  • Loading branch information
keng committed Sep 8, 2024
1 parent 64bd9be commit df2cc7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/weapons/sword/peakpatrolsong/peakpatrolsong.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ func NewWeapon(c *core.Core, char *character.CharWrapper, p info.WeaponProfile)
if w.stacks == 2 {
crit[attributes.CR] = min((0.0075+0.0025*float64(r))*char.TotalDef()/1000.0, 0.024+0.008*float64(r))
crit[attributes.CD] = min((0.06+0.02*float64(r))*char.TotalDef()/1000.0, 0.192+0.064*float64(r))
bonus[attributes.DmgP] = min((0.06+0.02*float64(r))*char.TotalDef()/1000.0, 0.192+0.064*float64(r))
for i := attributes.PyroP; i <= attributes.DendroP; i++ {
bonus[i] = min((0.06+0.02*float64(r))*char.TotalDef()/1000.0, 0.192+0.064*float64(r))
}
char.AddAttackMod(character.AttackMod{
Base: modifier.NewBaseWithHitlag(buffCritKey, 15*60),
Amount: func(atk *combat.AttackEvent, t combat.Target) ([]float64, bool) {
Expand Down

0 comments on commit df2cc7c

Please sign in to comment.