Skip to content

Commit

Permalink
fix gaming missing xingqiu/yelan n0 timings
Browse files Browse the repository at this point in the history
  • Loading branch information
k0l11 committed Mar 17, 2024
1 parent 8d62c1e commit 400db89
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions internal/characters/gaming/gaming.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/genshinsim/gcsim/pkg/core/info"
"github.com/genshinsim/gcsim/pkg/core/keys"
"github.com/genshinsim/gcsim/pkg/core/player/character"
"github.com/genshinsim/gcsim/pkg/model"
)

func init() {
Expand Down Expand Up @@ -39,3 +40,14 @@ func (c *char) Init() error {
c.onExitField()
return nil
}

func (c *char) AnimationStartDelay(k model.AnimationDelayKey) int {
switch k {
case model.AnimationXingqiuN0StartDelay:
return 18
case model.AnimationYelanN0StartDelay:
return 18
default:
return c.Character.AnimationStartDelay(k)
}
}

0 comments on commit 400db89

Please sign in to comment.